# reddypramodhadalam/nextgen architecture

> Architecture diagram of the GitHub repository reddypramodhadalam/nextgen, 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/nextgen
- Repository: https://github.com/reddypramodhadalam/nextgen

## Overview

This repository is a web-based enterprise test-automation platform. Its main user journey is authoring or generating test cases, running them against an application, and reviewing execution outcomes; it also provides agentic automation, knowledge ingestion, governance, and analytics capabilities. The tree and source index establish these major subsystems, but the README is empty and most page and route implementations were not sampled, so UI-to-server links are omitted unless supported by inspected references.

Main entry points: [`server/knowledge/ingestion-engine.ts`](https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/ingestion-engine.ts) (Knowledge Ingestion), [`server/agentic/agent-loop.ts`](https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agent-loop.ts) (Agent Loop), [`server/services/execution-orchestrator.service.ts`](https://github.com/reddypramodhadalam/nextgen/blob/main/server/services/execution-orchestrator.service.ts) (Execution Orchestrator), [`server/agentic/agents.ts`](https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agents.ts) (Agent Tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Product UI"]
  node_webapp["Web Application<br/>[App.tsx]"]
  node_generator["Test Generation<br/>[generator.tsx]"]
  node_executions_ui["Execution Console<br/>[executions.tsx]"]
  node_knowledge_ui["Knowledge Base<br/>[knowledge-base.tsx]"]
  node_compliance_ui["Compliance UI<br/>[compliance.tsx]"]
  node_reports_ui["Reports<br/>[reports.tsx]"]
end

subgraph group_author["Authoring and Knowledge"]
  node_generation["Requirement Generation"]
  node_test_cases["Test Cases"]
  node_knowledge_ingest["Knowledge Ingestion"]
  node_extractors["Document Extractors<br/>[registry.ts]"]
  node_knowledge_structure["Knowledge Structuring"]
  node_knowledge_validation["Knowledge Validation"]
  node_knowledge_store[("Knowledge Storage")]
  node_vector_index[("Vector Index<br/>[vector-index.ts]")]
end

subgraph group_runtime["Automation Runtime"]
  node_orchestrator["Execution Orchestrator"]
  node_queue["Execution Queue<br/>[execution-queue.ts]"]
  node_worker["Execution Worker"]
  node_adapter["Browser Execution"]
  node_locator_engine["Locator Intelligence<br/>[engine.ts]"]
  node_agent_routes["Agentic Routes<br/>[agentic-routes.ts]"]
  node_agent_loop["Agent Loop<br/>[agent-loop.ts]"]
  node_agent_tools["Agent Tools<br/>[agents.ts]"]
  node_ai_client["AI Client<br/>[ai-client.ts]"]
end

subgraph group_platform["Governance and Data"]
  node_governance["Governance Rules<br/>[rules-engine.ts]"]
  node_review["Human Review<br/>[review-service.ts]"]
  node_storage[("Platform Storage<br/>[storage.ts]")]
  node_sqlite[("SQLite Backend<br/>[sqlite-storage.ts]")]
  node_database[("SQLite Database<br/>[db-sqlite.ts]")]
  node_llm_tests["LLM Test Engine<br/>[llm-test-engine.ts]"]
end

node_user(("User"))

node_user -.->|"uses"| node_webapp
node_knowledge_ingest -->|"extracts"| node_extractors
node_knowledge_ingest -->|"structures"| node_knowledge_structure
node_knowledge_ingest -->|"validates"| node_knowledge_validation
node_knowledge_ingest -->|"stores"| node_knowledge_store
node_knowledge_ingest -->|"indexes"| node_vector_index
node_orchestrator -->|"reads cases"| node_storage
node_orchestrator -->|"queues runs"| node_queue
node_worker -->|"uses queue"| node_queue
node_worker -->|"uses storage"| node_storage
node_orchestrator -->|"executes steps"| node_adapter
node_locator_engine -.->|"resolves locators"| node_agent_loop
node_agent_routes -->|"invokes"| node_agent_loop
node_agent_routes -->|"uses agents"| node_agent_tools
node_agent_tools -->|"runs loop"| node_agent_loop
node_agent_loop -.->|"dispatches tools"| node_agent_tools
node_agent_loop -.->|"uses AI"| node_ai_client
node_review -->|"checks rules"| node_governance
node_storage -->|"selects backend"| node_sqlite
node_sqlite -->|"uses connection"| node_database
node_llm_tests -->|"calls AI"| node_ai_client
node_generation -->|"uses AI"| node_ai_client

click node_webapp "https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/App.tsx"
click node_generator "https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/generator.tsx"
click node_executions_ui "https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/executions.tsx"
click node_knowledge_ui "https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/knowledge-base.tsx"
click node_compliance_ui "https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/compliance.tsx"
click node_reports_ui "https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/reports.tsx"
click node_generation "https://github.com/reddypramodhadalam/nextgen/blob/main/server/test-generation/requirement-test-generator.service.ts"
click node_test_cases "https://github.com/reddypramodhadalam/nextgen/blob/main/server/canonical-test-case.ts"
click node_knowledge_ingest "https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/ingestion-engine.ts"
click node_extractors "https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/extractors/registry.ts"
click node_knowledge_structure "https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/knowledge-structurer.ts"
click node_knowledge_validation "https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/knowledge-validator.ts"
click node_knowledge_store "https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge-storage.ts"
click node_vector_index "https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/vector-index.ts"
click node_orchestrator "https://github.com/reddypramodhadalam/nextgen/blob/main/server/services/execution-orchestrator.service.ts"
click node_queue "https://github.com/reddypramodhadalam/nextgen/blob/main/server/infrastructure/queue/execution-queue.ts"
click node_worker "https://github.com/reddypramodhadalam/nextgen/blob/main/server/infrastructure/queue/execution-worker.ts"
click node_adapter "https://github.com/reddypramodhadalam/nextgen/blob/main/server/domain/adapters/execution-engine-fixed.ts"
click node_locator_engine "https://github.com/reddypramodhadalam/nextgen/blob/main/server/locator-intelligence/engine.ts"
click node_agent_routes "https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agentic-routes.ts"
click node_agent_loop "https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agent-loop.ts"
click node_agent_tools "https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agents.ts"
click node_ai_client "https://github.com/reddypramodhadalam/nextgen/blob/main/server/ai-client.ts"
click node_governance "https://github.com/reddypramodhadalam/nextgen/blob/main/server/governance/rules-engine.ts"
click node_review "https://github.com/reddypramodhadalam/nextgen/blob/main/server/governance/review-service.ts"
click node_storage "https://github.com/reddypramodhadalam/nextgen/blob/main/server/storage.ts"
click node_sqlite "https://github.com/reddypramodhadalam/nextgen/blob/main/server/sqlite-storage.ts"
click node_database "https://github.com/reddypramodhadalam/nextgen/blob/main/server/db-sqlite.ts"
click node_llm_tests "https://github.com/reddypramodhadalam/nextgen/blob/main/server/llm-test-engine.ts"

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_webapp,node_generator,node_executions_ui,node_knowledge_ui,node_compliance_ui,node_reports_ui,node_user toneBlue
class node_generation,node_test_cases,node_knowledge_ingest,node_extractors,node_knowledge_structure,node_knowledge_validation,node_knowledge_store,node_vector_index toneAmber
class node_orchestrator,node_queue,node_worker,node_adapter,node_locator_engine,node_agent_routes,node_agent_loop,node_agent_tools,node_ai_client toneMint
class node_governance,node_review,node_storage,node_sqlite,node_database,node_llm_tests toneRose
```

## Components

### Product UI

- [Web Application](https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Test Generation](https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/generator.tsx): `client/src/pages/generator.tsx`
- [Execution Console](https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/executions.tsx): `client/src/pages/executions.tsx`
- [Knowledge Base](https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/knowledge-base.tsx): `client/src/pages/knowledge-base.tsx`
- [Compliance UI](https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/compliance.tsx): `client/src/pages/compliance.tsx`
- [Reports](https://github.com/reddypramodhadalam/nextgen/blob/main/client/src/pages/reports.tsx): `client/src/pages/reports.tsx`

### Authoring and Knowledge

- [Requirement Generation](https://github.com/reddypramodhadalam/nextgen/blob/main/server/test-generation/requirement-test-generator.service.ts): `server/test-generation/requirement-test-generator.service.ts`
- [Test Cases](https://github.com/reddypramodhadalam/nextgen/blob/main/server/canonical-test-case.ts): `server/canonical-test-case.ts`
- [Knowledge Ingestion](https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/ingestion-engine.ts): `server/knowledge/ingestion-engine.ts`
- [Document Extractors](https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/extractors/registry.ts): `server/knowledge/extractors/registry.ts`
- [Knowledge Structuring](https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/knowledge-structurer.ts): `server/knowledge/knowledge-structurer.ts`
- [Knowledge Validation](https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/knowledge-validator.ts): `server/knowledge/knowledge-validator.ts`
- [Knowledge Storage](https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge-storage.ts): `server/knowledge-storage.ts`
- [Vector Index](https://github.com/reddypramodhadalam/nextgen/blob/main/server/knowledge/vector-index.ts): `server/knowledge/vector-index.ts`

### Automation Runtime

- [Execution Orchestrator](https://github.com/reddypramodhadalam/nextgen/blob/main/server/services/execution-orchestrator.service.ts): `server/services/execution-orchestrator.service.ts`
- [Execution Queue](https://github.com/reddypramodhadalam/nextgen/blob/main/server/infrastructure/queue/execution-queue.ts): `server/infrastructure/queue/execution-queue.ts`
- [Execution Worker](https://github.com/reddypramodhadalam/nextgen/blob/main/server/infrastructure/queue/execution-worker.ts): `server/infrastructure/queue/execution-worker.ts`
- [Browser Execution](https://github.com/reddypramodhadalam/nextgen/blob/main/server/domain/adapters/execution-engine-fixed.ts): `server/domain/adapters/execution-engine-fixed.ts`
- [Locator Intelligence](https://github.com/reddypramodhadalam/nextgen/blob/main/server/locator-intelligence/engine.ts): `server/locator-intelligence/engine.ts`
- [Agentic Routes](https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agentic-routes.ts): `server/agentic/agentic-routes.ts`
- [Agent Loop](https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agent-loop.ts): `server/agentic/agent-loop.ts`
- [Agent Tools](https://github.com/reddypramodhadalam/nextgen/blob/main/server/agentic/agents.ts): `server/agentic/agents.ts`
- [AI Client](https://github.com/reddypramodhadalam/nextgen/blob/main/server/ai-client.ts): `server/ai-client.ts`

### Governance and Data

- [Governance Rules](https://github.com/reddypramodhadalam/nextgen/blob/main/server/governance/rules-engine.ts): `server/governance/rules-engine.ts`
- [Human Review](https://github.com/reddypramodhadalam/nextgen/blob/main/server/governance/review-service.ts): `server/governance/review-service.ts`
- [Platform Storage](https://github.com/reddypramodhadalam/nextgen/blob/main/server/storage.ts): `server/storage.ts`
- [SQLite Backend](https://github.com/reddypramodhadalam/nextgen/blob/main/server/sqlite-storage.ts): `server/sqlite-storage.ts`
- [SQLite Database](https://github.com/reddypramodhadalam/nextgen/blob/main/server/db-sqlite.ts): `server/db-sqlite.ts`
- [LLM Test Engine](https://github.com/reddypramodhadalam/nextgen/blob/main/server/llm-test-engine.ts): `server/llm-test-engine.ts`

### Other components

- **User**

## Connections

- User → Web Application: uses
- Knowledge Ingestion → Document Extractors: extracts (evidence: `server/knowledge/ingestion-engine.ts`)
- Knowledge Ingestion → Knowledge Structuring: structures (evidence: `server/knowledge/ingestion-engine.ts`)
- Knowledge Ingestion → Knowledge Validation: validates (evidence: `server/knowledge/ingestion-engine.ts`)
- Knowledge Ingestion → Knowledge Storage: stores (evidence: `server/knowledge/ingestion-engine.ts`)
- Knowledge Ingestion → Vector Index: indexes (evidence: `server/knowledge/ingestion-engine.ts`)
- Execution Orchestrator → Platform Storage: reads cases (evidence: `server/services/execution-orchestrator.service.ts`)
- Execution Orchestrator → Execution Queue: queues runs (evidence: `server/services/execution-orchestrator.service.ts`)
- Execution Worker → Execution Queue: uses queue (evidence: `server/infrastructure/queue/execution-worker.ts`)
- Execution Worker → Platform Storage: uses storage (evidence: `server/infrastructure/queue/execution-worker.ts`)
- Execution Orchestrator → Browser Execution: executes steps (evidence: `server/services/execution-orchestrator.service.ts`)
- Locator Intelligence → Agent Loop: resolves locators
- Agentic Routes → Agent Loop: invokes (evidence: `server/agentic/agentic-routes.ts`)
- Agentic Routes → Agent Tools: uses agents (evidence: `server/agentic/agentic-routes.ts`)
- Agent Tools → Agent Loop: runs loop (evidence: `server/agentic/agents.ts`)
- Agent Loop → Agent Tools: dispatches tools (evidence: `server/agentic/agents.ts`)
- Agent Loop → AI Client: uses AI
- Human Review → Governance Rules: checks rules (evidence: `server/governance/review-service.ts`)
- Platform Storage → SQLite Backend: selects backend (evidence: `server/storage.ts`)
- SQLite Backend → SQLite Database: uses connection (evidence: `server/sqlite-storage.ts`)
- LLM Test Engine → AI Client: calls AI (evidence: `server/llm-test-engine.ts`)
- Requirement Generation → AI Client: uses AI (evidence: `server/test-generation/requirement-test-generator.service.ts`)
