Afunana
Afunana Documentation

Product Overview

What Afunana does, the business case, and how it transforms legacy system management.

← Back to Docs

The Problem

Afunana is an enterprise platform that uses AI to automatically analyze, document, and make searchable the legacy COBOL, RPG, and CL codebases running on IBM i (AS/400) systems — without modifying any production code.

Organizations running IBM i systems face compounding risks:

What Afunana Does

Afunana connects to your IBM i system, extracts all source code and metadata, and uses AI to produce complete documentation — automatically, in days rather than months.

Source Extraction

Connects directly to IBM i via JDBC. Extracts source members, call relationships, file structures, and field definitions automatically.

AI-Powered Documentation

Uses large language models (Claude, GPT-4) to generate three levels of documentation for every program:

LevelAudienceContent
Business SpecificationStakeholders, auditorsWhat the program does in business terms
Systems AnalysisAnalysts, PMsData flows, business rules, file usage
Program SpecsDevelopersIO structures, call graphs, error handling, change impact

System-Level Analysis

Generates a complete system overview: architecture narrative, module identification, call hierarchy and dependency graphs, data dictionary with field lineage, cross-reference and impact analysis, and risk identification (dead code, circular dependencies).

AI Chat Interface

Ask questions about your codebase in natural language. The chat uses hybrid RAG (semantic + full-text search) to find relevant programs and generates answers with line-level citations.

Interactive Visualizations

VisualizationDescription
Call TreeInteractive expandable call hierarchy with lazy loading
FlowchartsIPO model, business logic, data flow, sequence diagrams
Field LineageTrace any field across programs and files
ERDFile relationships and key structures
Cross-ReferenceImpact analysis sorted by dependency count

VS Code Extension

The Afunana VS Code extension brings AI-generated documentation directly into the IDE. Developers can view program analysis, look up field definitions by right-clicking, and navigate source code — all without leaving VS Code. Install via VSIX from the admin panel.

CommandDescription
Afunana: LoginAuthenticate with your server
Afunana: Show ProgramDisplay program documentation in sidebar
Afunana: Lookup FieldLook up field definition and cross-system usage
Afunana: Pop OutOpen docs in a full editor tab
Afunana: Open Full AppLaunch web app in browser for current program

Business Value

AreaImpact
Knowledge PreservationCaptures institutional knowledge in permanent, searchable documentation before it's lost to attrition
Onboarding AccelerationNew developers understand systems in days instead of months via self-service documentation
Change ConfidenceImpact analysis shows exactly what breaks when you change a program, file, or field
Compliance ReadinessGenerated documentation satisfies auditor requirements for system documentation and data flow mapping
Modernization EnablementComplete dependency maps and business logic extraction — prerequisites for any migration
Risk ReductionDead code identification, circular dependency detection, and missing documentation flags

ROI Indicators

Who Uses Afunana

RoleValue
IT ManagementVisibility into legacy systems, risk assessment, compliance documentation
Business AnalystsUnderstand what programs do without reading COBOL
DevelopersNavigate unfamiliar code, understand impact of changes
QA TeamsIdentify test coverage gaps, understand data flows
AuditorsAccess complete system documentation with audit trails
Modernization TeamsMap dependencies before migration projects

Technology Stack

LayerTechnology
FrontendReact 18, TypeScript, Tailwind CSS, Shadcn UI
BackendPython FastAPI, Uvicorn
DatabaseSQL Server 2022 (containerized or external)
AI / LLMAnthropic Claude Sonnet 4.6 / Haiku 4.5, OpenAI GPT-4.1 / GPT-4.1-mini, Ollama (local models)
SearchChromaDB (semantic), BM25 (full-text)
AS/400JDBC via jt400.jar (jaydebeapi)
DeploymentDocker Compose, Caddy reverse proxy
IDEVS Code Extension (TypeScript)

Deployment Model

Afunana runs on-premise inside your network. No data leaves your environment unless you choose cloud LLM providers. For air-gapped environments, local models via Ollama are supported.

curl -sL https://afunana.io/install.sh | bash

One-command installation on Linux (Ubuntu, Debian, AlmaLinux, Rocky, RHEL). The installer handles Docker, SQL Server, secrets generation, initial configuration, and admin user creation. The platform is self-contained — no ongoing vendor access is required after installation.

Getting Started

  1. Install — Run the one-line installer on a Linux server with 16GB+ RAM
  2. Connect — Configure your IBM i connection in the admin panel
  3. Extract — Submit an extraction job (30–60 minutes for a typical library)
  4. Build — Trigger AI analysis (1–4 hours depending on program count and LLM speed)
  5. Use — Browse documentation, ask questions, explore visualizations