# reddypramodhadalam/nextgennew architecture

> Architecture diagram of the GitHub repository reddypramodhadalam/nextgennew, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/reddypramodhadalam/nextgennew
- Repository: https://github.com/reddypramodhadalam/nextgennew

## Overview

Kavach is a web-based test automation platform: users manage applications, survey application requirements and interfaces, review proposed test cases, generate and run automated tests, then inspect results and recover from failures. It also provides application crawling, dashboards, help, scheduling, and ALM/Jira integrations. The graph captures documented and indexed relationships; several backend stages are represented by their exact source paths, but unsampled implementation details are not inferred.

Main entry points: [`backend/api/main.py`](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/main.py) (FastAPI application), [`backend/service/app_map_crawler.py`](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/app_map_crawler.py) (Application crawler), [`backend/core/db/connection.py`](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/core/db/connection.py) (PostgreSQL), [`frontend/app/new-test-suite/page.js`](https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/app/new-test-suite/page.js) (Suite creation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_suite_ui["Suite creation<br/>[page.js]"]
  node_scenario_review["Scenario review<br/>[ScenarioReview.jsx]"]
  node_dashboard_ui["Dashboard<br/>[page.js]"]
  node_api_client["API client<br/>[api.js]"]
end

subgraph group_api["API and workflows"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_application_routes["Application routes<br/>[applications.py]"]
  node_run_routes["Run routes<br/>[run.py]"]
  node_workflow_routes["Workflow routes<br/>[workflows.py]"]
end

subgraph group_automation["Test automation"]
  node_survey["Application survey<br/>[survey_runner.py]"]
  node_fast_generation["Test generation<br/>[fast_generation.py]"]
  node_execution["Test execution"]
  node_healing["Failure healing<br/>[healing.py]"]
  node_crawler["Application crawler<br/>[app_map_crawler.py]"]
  node_crawl_agent["Crawl agent<br/>[crawl_agent.py]"]
end

subgraph group_knowledge["Knowledge and insights"]
  node_dashboard_routes["Dashboard routes<br/>[dashboard.py]"]
  node_help["Help service<br/>[help_service.py]"]
end

subgraph group_platform["Data and integrations"]
  node_database[("PostgreSQL<br/>[connection.py]")]
  node_application_queries["Application queries<br/>[applications.py]"]
  node_llm_factory["LLM providers"]
  node_auth_gateway["Authentication gateway<br/>[auth_gateway.py]"]
  node_scheduler["Scheduler<br/>[scheduler.py]"]
  node_alm["ALM integration<br/>[alm.py]"]
  node_jira_sync["Jira synchronization<br/>[jira_sync.py]"]
end

node_engineer(("Test engineer"))

node_engineer -->|"creates tests"| node_suite_ui
node_suite_ui -->|"requests workflows"| node_api_client
node_suite_ui -->|"reviews proposals"| node_scenario_review
node_engineer -->|"checks results"| node_dashboard_ui
node_dashboard_ui -.->|"requests data"| node_api_client
node_api_client -->|"calls API"| node_api_app
node_api_app -->|"registers routes"| node_application_routes
node_api_app -->|"registers routes"| node_run_routes
node_api_app -->|"registers routes"| node_dashboard_routes
node_api_app -->|"starts scheduler"| node_scheduler
node_application_routes -->|"reads applications"| node_application_queries
node_application_routes -->|"starts crawl"| node_crawler
node_application_queries -->|"queries database"| node_database
node_crawler -->|"uses agent"| node_crawl_agent
node_crawler -->|"persists map data"| node_application_queries
node_crawler -->|"gets provider"| node_llm_factory
node_crawler -->|"checks authentication"| node_auth_gateway
node_run_routes -.->|"runs survey"| node_survey
node_run_routes -.->|"runs tests"| node_execution
node_workflow_routes -.->|"generates tests"| node_fast_generation
node_survey -.->|"uses provider"| node_llm_factory
node_dashboard_routes -->|"reads metrics"| node_database
node_engineer -.->|"seeks guidance"| node_help
node_help -->|"reads and writes"| node_database
node_alm -->|"supports ingestion"| node_workflow_routes
node_jira_sync -.->|"syncs records"| node_database

click node_suite_ui "https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/app/new-test-suite/page.js"
click node_scenario_review "https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/components/ScenarioReview/ScenarioReview.jsx"
click node_dashboard_ui "https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/app/dashboard/page.js"
click node_api_client "https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/lib/api.js"
click node_api_app "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/main.py"
click node_application_routes "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/applications.py"
click node_run_routes "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/run.py"
click node_workflow_routes "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/workflows.py"
click node_survey "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/survey_runner.py"
click node_fast_generation "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/fast_generation.py"
click node_execution "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/execution_runner.py"
click node_healing "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/healing.py"
click node_crawler "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/app_map_crawler.py"
click node_crawl_agent "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/agents/crawl_agent.py"
click node_dashboard_routes "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/dashboard.py"
click node_help "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/help_service.py"
click node_database "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/core/db/connection.py"
click node_application_queries "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/core/db/queries/applications.py"
click node_llm_factory "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/llm/provider_factory.py"
click node_auth_gateway "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/auth_gateway.py"
click node_scheduler "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/scheduler.py"
click node_alm "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/alm.py"
click node_jira_sync "https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/jira_sync.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_suite_ui,node_scenario_review,node_dashboard_ui,node_api_client toneBlue
class node_api_app,node_application_routes,node_run_routes,node_workflow_routes toneAmber
class node_survey,node_fast_generation,node_execution,node_healing,node_crawler,node_crawl_agent toneMint
class node_dashboard_routes,node_help toneRose
class node_database,node_application_queries,node_llm_factory,node_auth_gateway,node_scheduler,node_alm,node_jira_sync,node_engineer toneIndigo
```

## Components

### User interface

- [Suite creation](https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/app/new-test-suite/page.js): `frontend/app/new-test-suite/page.js`
- [Scenario review](https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/components/ScenarioReview/ScenarioReview.jsx): `frontend/components/ScenarioReview/ScenarioReview.jsx`
- [Dashboard](https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/app/dashboard/page.js): `frontend/app/dashboard/page.js`
- [API client](https://github.com/reddypramodhadalam/nextgennew/blob/main/frontend/lib/api.js): `frontend/lib/api.js`

### API and workflows

- [FastAPI application](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/main.py): `backend/api/main.py`
- [Application routes](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/applications.py): `backend/api/routes/applications.py`
- [Run routes](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/run.py): `backend/api/routes/run.py`
- [Workflow routes](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/workflows.py): `backend/api/routes/workflows.py`

### Test automation

- [Application survey](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/survey_runner.py): `backend/service/survey_runner.py`
- [Test generation](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/fast_generation.py): `backend/service/fast_generation.py`
- [Test execution](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/execution_runner.py): `backend/service/execution_runner.py`
- [Failure healing](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/healing.py): `backend/service/healing.py`
- [Application crawler](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/app_map_crawler.py): `backend/service/app_map_crawler.py`
- [Crawl agent](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/agents/crawl_agent.py): `backend/agents/crawl_agent.py`

### Knowledge and insights

- [Dashboard routes](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/dashboard.py): `backend/api/routes/dashboard.py`
- [Help service](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/help_service.py): `backend/service/help_service.py`

### Data and integrations

- [PostgreSQL](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/core/db/connection.py): `backend/core/db/connection.py`
- [Application queries](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/core/db/queries/applications.py): `backend/core/db/queries/applications.py`
- [LLM providers](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/llm/provider_factory.py): `backend/llm/provider_factory.py`
- [Authentication gateway](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/auth_gateway.py): `backend/service/auth_gateway.py`
- [Scheduler](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/scheduler.py): `backend/service/scheduler.py`
- [ALM integration](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/api/routes/alm.py): `backend/api/routes/alm.py`
- [Jira synchronization](https://github.com/reddypramodhadalam/nextgennew/blob/main/backend/service/jira_sync.py): `backend/service/jira_sync.py`

### Other components

- **Test engineer**

## Connections

- Test engineer → Suite creation: creates tests (evidence: `frontend/app/new-test-suite/page.js`)
- Suite creation → API client: requests workflows (evidence: `frontend/app/new-test-suite/page.js`)
- Suite creation → Scenario review: reviews proposals (evidence: `frontend/app/new-test-suite/page.js`)
- Test engineer → Dashboard: checks results
- Dashboard → API client: requests data
- API client → FastAPI application: calls API (evidence: `backend/api/main.py`)
- FastAPI application → Application routes: registers routes (evidence: `backend/api/main.py`)
- FastAPI application → Run routes: registers routes (evidence: `backend/api/main.py`)
- FastAPI application → Dashboard routes: registers routes (evidence: `backend/api/main.py`)
- FastAPI application → Scheduler: starts scheduler (evidence: `backend/api/main.py`)
- Application routes → Application queries: reads applications (evidence: `backend/api/routes/applications.py`)
- Application routes → Application crawler: starts crawl (evidence: `backend/api/routes/applications.py`)
- Application queries → PostgreSQL: queries database (evidence: `backend/core/db/queries/applications.py`)
- Application crawler → Crawl agent: uses agent (evidence: `backend/service/app_map_crawler.py`)
- Application crawler → Application queries: persists map data (evidence: `backend/service/app_map_crawler.py`)
- Application crawler → LLM providers: gets provider (evidence: `backend/service/app_map_crawler.py`)
- Application crawler → Authentication gateway: checks authentication (evidence: `backend/service/app_map_crawler.py`)
- Run routes → Application survey: runs survey
- Run routes → Test execution: runs tests
- Workflow routes → Test generation: generates tests
- Application survey → LLM providers: uses provider
- Dashboard routes → PostgreSQL: reads metrics (evidence: `backend/api/routes/dashboard.py`)
- Test engineer → Help service: seeks guidance
- Help service → PostgreSQL: reads and writes (evidence: `backend/service/help_service.py`)
- ALM integration → Workflow routes: supports ingestion (evidence: `backend/api/routes/alm.py`)
- Jira synchronization → PostgreSQL: syncs records
