# ak9848515-dev/vedmoulya architecture

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

- Interactive diagram: https://gitdiagram.com/ak9848515-dev/vedmoulya
- Repository: https://github.com/ak9848515-dev/vedmoulya

## Overview

VedMoulya is an execution operating system intended to turn knowledge into livelihood. Its documented product progression is knowledge → understanding → decision → execution → value; the sampled implementation shows one concrete path: a user idea is analyzed into requirements, handed to the application factory, and can be refined through the loop engine. Execution, AI routing, retrieval, discovery, and intelligence are significant neighboring capabilities. The graph is grounded in the supplied README and source excerpts/index; unsampled UI and subsystem wiring is not assumed.

Main entry points: [`packages/app-factory/src/domain/FactoryEngine.ts`](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/app-factory/src/domain/FactoryEngine.ts) (Application factory), [`packages/intelligence/src/domain/services/PipelineBuilderService.ts`](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/intelligence/src/domain/services/PipelineBuilderService.ts) (Intelligence pipeline), [`packages/requirements/src/domain/ProductIntelligenceEngine.ts`](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/requirements/src/domain/ProductIntelligenceEngine.ts) (Product requirements), [`packages/agent-execution/src/domain/AgentExecutionEngine.ts`](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/agent-execution/src/domain/AgentExecutionEngine.ts) (Agent execution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Product creation"]
  node_requirements["Product requirements"]
  node_factory["Application factory<br/>[FactoryEngine.ts]"]
  node_generator["Project generator<br/>[generator.ts]"]
end

subgraph group_runtime["Execution runtime"]
  node_loop["Refinement loop<br/>[LoopEngine.ts]"]
  node_agent["Agent execution"]
  node_adaptive["Adaptive decisions<br/>[adaptive-engine.ts]"]
  node_orchestrator["Execution orchestration"]
  node_fabric["Work coordination"]
end

subgraph group_intelligence["Intelligence services"]
  node_ai["AI orchestration"]
  node_ai_domain["AI request domain<br/>[AIDomainService.ts]"]
  node_pipeline["Intelligence pipeline"]
  node_rag["Knowledge retrieval"]
  node_discovery["AI World discovery"]
  node_ecosystem["Task intelligence"]
  node_brain["Outcome prioritization"]
  node_rag_repository[("RAG repository")]
end

subgraph group_experience["User experience"]
  node_web["Web application<br/>[page.tsx]"]
end

node_user(("User"))

node_user -.->|"submits idea"| node_requirements
node_requirements -->|"hands off"| node_factory
node_factory -->|"generates files"| node_generator
node_factory -->|"refines with"| node_loop
node_adaptive -->|"validates actions"| node_agent
node_agent -.->|"delegates AI actions"| node_ai
node_ai -->|"uses AI domain"| node_ai_domain
node_pipeline -->|"uses execution orchestration"| node_orchestrator
node_pipeline -.->|"uses execution strategy"| node_fabric
node_rag -->|"reads and writes chunks"| node_rag_repository

click node_requirements "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/requirements/src/domain/ProductIntelligenceEngine.ts"
click node_factory "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/app-factory/src/domain/FactoryEngine.ts"
click node_generator "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/app-factory/src/catalog/generator.ts"
click node_loop "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/loop-engine/src/domain/LoopEngine.ts"
click node_agent "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/agent-execution/src/domain/AgentExecutionEngine.ts"
click node_adaptive "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/adaptive-loop/src/domain/adaptive-engine.ts"
click node_orchestrator "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/execution-orchestrator/src/application/OrchestratorApplicationService.ts"
click node_fabric "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/orchestration-fabric/src/domain/OrchestratorService.ts"
click node_ai "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/services/src/ai/AIOrchestrationService.ts"
click node_ai_domain "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/ai/src/domain/services/AIDomainService.ts"
click node_pipeline "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/intelligence/src/domain/services/PipelineBuilderService.ts"
click node_rag "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/rag/src/application/RagApplicationService.ts"
click node_discovery "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/ai-world/src/domain/RecommendationEngine.ts"
click node_ecosystem "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/ecosystem-intelligence/src/domain/TaskIntelligenceEngine.ts"
click node_brain "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/brain/src/domain/OutcomePriorityEngine.ts"
click node_web "https://github.com/ak9848515-dev/vedmoulya/blob/main/apps/web/src/app/page.tsx"
click node_rag_repository "https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/rag/src/infrastructure/PostgresRagRepository.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_requirements,node_factory,node_generator,node_user toneBlue
class node_loop,node_agent,node_adaptive,node_orchestrator,node_fabric toneAmber
class node_ai,node_ai_domain,node_pipeline,node_rag,node_discovery,node_ecosystem,node_brain,node_rag_repository toneMint
class node_web toneRose
```

## Components

### Product creation

- [Product requirements](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/requirements/src/domain/ProductIntelligenceEngine.ts): `packages/requirements/src/domain/ProductIntelligenceEngine.ts`
- [Application factory](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/app-factory/src/domain/FactoryEngine.ts): `packages/app-factory/src/domain/FactoryEngine.ts`
- [Project generator](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/app-factory/src/catalog/generator.ts): `packages/app-factory/src/catalog/generator.ts`

### Execution runtime

- [Refinement loop](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/loop-engine/src/domain/LoopEngine.ts): `packages/loop-engine/src/domain/LoopEngine.ts`
- [Agent execution](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/agent-execution/src/domain/AgentExecutionEngine.ts): `packages/agent-execution/src/domain/AgentExecutionEngine.ts`
- [Adaptive decisions](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/adaptive-loop/src/domain/adaptive-engine.ts): `packages/adaptive-loop/src/domain/adaptive-engine.ts`
- [Execution orchestration](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/execution-orchestrator/src/application/OrchestratorApplicationService.ts): `packages/execution-orchestrator/src/application/OrchestratorApplicationService.ts`
- [Work coordination](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/orchestration-fabric/src/domain/OrchestratorService.ts): `packages/orchestration-fabric/src/domain/OrchestratorService.ts`

### Intelligence services

- [AI orchestration](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/services/src/ai/AIOrchestrationService.ts): `packages/services/src/ai/AIOrchestrationService.ts`
- [AI request domain](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/ai/src/domain/services/AIDomainService.ts): `packages/ai/src/domain/services/AIDomainService.ts`
- [Intelligence pipeline](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/intelligence/src/domain/services/PipelineBuilderService.ts): `packages/intelligence/src/domain/services/PipelineBuilderService.ts`
- [Knowledge retrieval](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/rag/src/application/RagApplicationService.ts): `packages/rag/src/application/RagApplicationService.ts`
- [AI World discovery](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/ai-world/src/domain/RecommendationEngine.ts): `packages/ai-world/src/domain/RecommendationEngine.ts`
- [Task intelligence](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/ecosystem-intelligence/src/domain/TaskIntelligenceEngine.ts): `packages/ecosystem-intelligence/src/domain/TaskIntelligenceEngine.ts`
- [Outcome prioritization](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/brain/src/domain/OutcomePriorityEngine.ts): `packages/brain/src/domain/OutcomePriorityEngine.ts`
- [RAG repository](https://github.com/ak9848515-dev/vedmoulya/blob/main/packages/rag/src/infrastructure/PostgresRagRepository.ts): `packages/rag/src/infrastructure/PostgresRagRepository.ts`

### User experience

- [Web application](https://github.com/ak9848515-dev/vedmoulya/blob/main/apps/web/src/app/page.tsx): `apps/web/src/app/page.tsx`

### Other components

- **User**

## Connections

- User → Product requirements: submits idea
- Product requirements → Application factory: hands off (evidence: `packages/requirements/src/domain/ProductIntelligenceEngine.ts`)
- Application factory → Project generator: generates files (evidence: `packages/app-factory/src/domain/FactoryEngine.ts`)
- Application factory → Refinement loop: refines with (evidence: `packages/app-factory/src/domain/FactoryEngine.ts`)
- Adaptive decisions → Agent execution: validates actions (evidence: `packages/adaptive-loop/src/domain/adaptive-engine.ts`)
- Agent execution → AI orchestration: delegates AI actions
- AI orchestration → AI request domain: uses AI domain (evidence: `packages/services/src/ai/AIOrchestrationService.ts`)
- Intelligence pipeline → Execution orchestration: uses execution orchestration (evidence: `packages/intelligence/src/domain/services/PipelineBuilderService.ts`)
- Intelligence pipeline → Work coordination: uses execution strategy
- Knowledge retrieval → RAG repository: reads and writes chunks (evidence: `packages/rag/src/application/RagApplicationService.ts`)
