# techstack-ujjwal/arya-codeverse architecture

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

- Interactive diagram: https://gitdiagram.com/techstack-ujjwal/arya-codeverse
- Repository: https://github.com/techstack-ujjwal/arya-codeverse

## Overview

Juryx is an AI-powered hackathon evaluation engine. Participants submit projects for idea, presentation, and product evaluation; the backend runs specialized agents and supporting checks, persists evaluations, and exposes results for participants and judges. The README also describes instant feedback, similarity detection, cross-stage consistency, confidence calibration, and final judging. Endpoint-to-agent and persistence relationships are based on the SOURCE INDEX; some frontend-to-backend wiring and unsampled cross-cutting agent orchestration are not shown, so those links are marked unverified.

Main entry points: [`backend/app/api/v1/router.py`](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/router.py) (API router), [`backend/app/main.py`](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/main.py) (FastAPI application), [`backend/app/api/v1/endpoints/projects.py`](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/projects.py) (Project management), [`backend/app/agents/orchestrator/base_agent.py`](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/orchestrator/base_agent.py) (Agent runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Participant and judge UI"]
  node_project_ui["Project workspace<br/>[page.tsx]"]
  node_evaluation_ui["Evaluation results<br/>[page.tsx]"]
  node_dashboard_ui["Dashboard and rankings<br/>[page.tsx]"]
  node_judge_ui["Judge workspace<br/>[page.tsx]"]
end

subgraph group_api["API and access"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_api_router["API router<br/>[router.py]"]
  node_auth["Authentication and roles<br/>[security.py]"]
  node_project_api["Project management<br/>[projects.py]"]
  node_idea_api["Idea evaluation API<br/>[idea.py]"]
  node_ppt_api["Presentation evaluation API<br/>[ppt.py]"]
  node_product_api["Product evaluation API<br/>[product.py]"]
  node_feedback_api["Instant feedback API<br/>[feedback.py]"]
  node_final_api["Evaluation and finalization<br/>[finalization.py]"]
end

subgraph group_stages["Evaluation stages"]
  node_idea_stage["Idea agents"]
  node_ppt_stage["Presentation agents"]
  node_product_stage["Product agents"]
end

subgraph group_analysis["Shared analysis"]
  node_feedback_agent["Instant diagnostics"]
  node_crosscut_agents["Cross-stage analysis"]
  node_final_judge["Final judge synthesis"]
  node_agent_runtime["Agent runtime<br/>[base_agent.py]"]
  node_llm_client["Structured LLM client<br/>[llm_client.py]"]
  node_quality_tools["Code and security checks<br/>[security_scan.py]"]
  node_uptime_tool["Deployment health check<br/>[uptime_checker.py]"]
end

subgraph group_data["Persistence"]
  node_project_repo["Project repository<br/>[project_repo.py]"]
  node_hackathon_repo["Hackathon repository<br/>[hackathon_repo.py]"]
  node_db_session["Async database session<br/>[session.py]"]
  node_db_models[("Relational data models<br/>[models.py]")]
end

node_participant(("Participant"))
node_judge(("Human judge"))
node_llm_provider["OpenAI / Gemini"]

node_participant -->|"submits project"| node_project_ui
node_judge -->|"reviews entries"| node_judge_ui
node_project_ui -.->|"uses API"| node_api_app
node_evaluation_ui -.->|"loads results"| node_api_app
node_dashboard_ui -.->|"loads projects"| node_api_app
node_judge_ui -.->|"requests judging data"| node_api_app
node_api_app -->|"mounts routes"| node_api_router
node_api_router -->|"registers"| node_project_api
node_api_router -->|"registers"| node_idea_api
node_api_router -->|"registers"| node_ppt_api
node_api_router -->|"registers"| node_product_api
node_api_router -->|"registers"| node_feedback_api
node_api_router -->|"registers"| node_final_api
node_project_api -->|"checks access"| node_auth
node_project_api -->|"uses repository"| node_project_repo
node_project_api -->|"uses repository"| node_hackathon_repo
node_idea_api -->|"runs agents"| node_idea_stage
node_ppt_api -->|"runs agents"| node_ppt_stage
node_product_api -->|"runs agents"| node_product_stage
node_feedback_api -->|"runs diagnostics"| node_feedback_agent
node_final_api -->|"runs synthesis"| node_final_judge
node_feedback_agent -->|"checks deployment"| node_uptime_tool
node_feedback_agent -->|"runs scans"| node_quality_tools
node_feedback_api -->|"uses repository"| node_project_repo
node_final_api -->|"uses repository"| node_project_repo
node_agent_runtime -->|"requests structured output"| node_llm_client
node_llm_client -->|"sends prompts"| node_llm_provider
node_idea_stage -.->|"uses runtime"| node_agent_runtime
node_ppt_stage -.->|"uses runtime"| node_agent_runtime
node_product_stage -.->|"uses runtime"| node_agent_runtime
node_crosscut_agents -.->|"informs synthesis"| node_final_judge
node_project_repo -.->|"uses sessions"| node_db_session
node_hackathon_repo -.->|"uses sessions"| node_db_session
node_db_session -->|"initializes schema"| node_db_models

click node_project_ui "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/projects/%5Bid%5D/page.tsx"
click node_evaluation_ui "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/projects/%5Bid%5D/evaluation/page.tsx"
click node_dashboard_ui "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/dashboard/page.tsx"
click node_judge_ui "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/judge/page.tsx"
click node_api_app "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/main.py"
click node_api_router "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/router.py"
click node_auth "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/core/security.py"
click node_project_api "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/projects.py"
click node_idea_api "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/idea.py"
click node_ppt_api "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/ppt.py"
click node_product_api "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/product.py"
click node_feedback_api "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/feedback.py"
click node_final_api "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/finalization.py"
click node_idea_stage "https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/idea"
click node_ppt_stage "https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/ppt"
click node_product_stage "https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/product"
click node_feedback_agent "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/shared/instant_feedback_agent.py"
click node_crosscut_agents "https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/shared"
click node_final_judge "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/shared/final_judge_agent.py"
click node_agent_runtime "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/orchestrator/base_agent.py"
click node_llm_client "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/orchestrator/llm_client.py"
click node_quality_tools "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/tools/security_scan.py"
click node_uptime_tool "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/tools/uptime_checker.py"
click node_project_repo "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/db/repositories/project_repo.py"
click node_hackathon_repo "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/db/repositories/hackathon_repo.py"
click node_db_session "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/db/session.py"
click node_db_models "https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/models/db_models/models.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_project_ui,node_evaluation_ui,node_dashboard_ui,node_judge_ui toneBlue
class node_api_app,node_api_router,node_auth,node_project_api,node_idea_api,node_ppt_api,node_product_api,node_feedback_api,node_final_api toneAmber
class node_idea_stage,node_ppt_stage,node_product_stage toneMint
class node_feedback_agent,node_crosscut_agents,node_final_judge,node_agent_runtime,node_llm_client,node_quality_tools,node_uptime_tool toneRose
class node_project_repo,node_hackathon_repo,node_db_session,node_db_models,node_participant,node_judge,node_llm_provider toneIndigo
```

## Components

### Participant and judge UI

- [Project workspace](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/projects/%5Bid%5D/page.tsx): `frontend/src/app/projects/[id]/page.tsx`
- [Evaluation results](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/projects/%5Bid%5D/evaluation/page.tsx): `frontend/src/app/projects/[id]/evaluation/page.tsx`
- [Dashboard and rankings](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/dashboard/page.tsx): `frontend/src/app/dashboard/page.tsx`
- [Judge workspace](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/frontend/src/app/judge/page.tsx): `frontend/src/app/judge/page.tsx`

### API and access

- [FastAPI application](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/main.py): `backend/app/main.py`
- [API router](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/router.py): `backend/app/api/v1/router.py`
- [Authentication and roles](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/core/security.py): `backend/app/core/security.py`
- [Project management](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/projects.py): `backend/app/api/v1/endpoints/projects.py`
- [Idea evaluation API](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/idea.py): `backend/app/api/v1/endpoints/idea.py`
- [Presentation evaluation API](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/ppt.py): `backend/app/api/v1/endpoints/ppt.py`
- [Product evaluation API](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/product.py): `backend/app/api/v1/endpoints/product.py`
- [Instant feedback API](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/feedback.py): `backend/app/api/v1/endpoints/feedback.py`
- [Evaluation and finalization](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/api/v1/endpoints/finalization.py): `backend/app/api/v1/endpoints/finalization.py`

### Evaluation stages

- [Idea agents](https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/idea): `backend/app/agents/idea`
- [Presentation agents](https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/ppt): `backend/app/agents/ppt`
- [Product agents](https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/product): `backend/app/agents/product`

### Shared analysis

- [Instant diagnostics](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/shared/instant_feedback_agent.py): `backend/app/agents/shared/instant_feedback_agent.py`
- [Cross-stage analysis](https://github.com/techstack-ujjwal/arya-codeverse/tree/main/backend/app/agents/shared): `backend/app/agents/shared`
- [Final judge synthesis](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/shared/final_judge_agent.py): `backend/app/agents/shared/final_judge_agent.py`
- [Agent runtime](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/orchestrator/base_agent.py): `backend/app/agents/orchestrator/base_agent.py`
- [Structured LLM client](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/agents/orchestrator/llm_client.py): `backend/app/agents/orchestrator/llm_client.py`
- [Code and security checks](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/tools/security_scan.py): `backend/app/tools/security_scan.py`
- [Deployment health check](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/tools/uptime_checker.py): `backend/app/tools/uptime_checker.py`

### Persistence

- [Project repository](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/db/repositories/project_repo.py): `backend/app/db/repositories/project_repo.py`
- [Hackathon repository](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/db/repositories/hackathon_repo.py): `backend/app/db/repositories/hackathon_repo.py`
- [Async database session](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/db/session.py): `backend/app/db/session.py`
- [Relational data models](https://github.com/techstack-ujjwal/arya-codeverse/blob/main/backend/app/models/db_models/models.py): `backend/app/models/db_models/models.py`

### Other components

- **Participant**
- **Human judge**
- **OpenAI / Gemini**

## Connections

- Participant → Project workspace: submits project
- Human judge → Judge workspace: reviews entries
- Project workspace → FastAPI application: uses API
- Evaluation results → FastAPI application: loads results
- Dashboard and rankings → FastAPI application: loads projects
- Judge workspace → FastAPI application: requests judging data
- FastAPI application → API router: mounts routes (evidence: `backend/app/main.py`)
- API router → Project management: registers (evidence: `backend/app/api/v1/router.py`)
- API router → Idea evaluation API: registers (evidence: `backend/app/api/v1/router.py`)
- API router → Presentation evaluation API: registers (evidence: `backend/app/api/v1/router.py`)
- API router → Product evaluation API: registers (evidence: `backend/app/api/v1/router.py`)
- API router → Instant feedback API: registers (evidence: `backend/app/api/v1/router.py`)
- API router → Evaluation and finalization: registers (evidence: `backend/app/api/v1/router.py`)
- Project management → Authentication and roles: checks access (evidence: `backend/app/api/v1/endpoints/projects.py`)
- Project management → Project repository: uses repository (evidence: `backend/app/api/v1/endpoints/projects.py`)
- Project management → Hackathon repository: uses repository (evidence: `backend/app/api/v1/endpoints/projects.py`)
- Idea evaluation API → Idea agents: runs agents (evidence: `backend/app/api/v1/endpoints/idea.py`)
- Presentation evaluation API → Presentation agents: runs agents (evidence: `backend/app/api/v1/endpoints/ppt.py`)
- Product evaluation API → Product agents: runs agents (evidence: `backend/app/api/v1/endpoints/product.py`)
- Instant feedback API → Instant diagnostics: runs diagnostics (evidence: `backend/app/api/v1/endpoints/feedback.py`)
- Evaluation and finalization → Final judge synthesis: runs synthesis (evidence: `backend/app/api/v1/endpoints/finalization.py`)
- Instant diagnostics → Deployment health check: checks deployment (evidence: `backend/app/agents/shared/instant_feedback_agent.py`)
- Instant diagnostics → Code and security checks: runs scans (evidence: `backend/app/agents/shared/instant_feedback_agent.py`)
- Instant feedback API → Project repository: uses repository (evidence: `backend/app/api/v1/endpoints/feedback.py`)
- Evaluation and finalization → Project repository: uses repository (evidence: `backend/app/api/v1/endpoints/finalization.py`)
- Agent runtime → Structured LLM client: requests structured output (evidence: `backend/app/agents/orchestrator/base_agent.py`)
- Structured LLM client → OpenAI / Gemini: sends prompts (evidence: `backend/app/agents/orchestrator/llm_client.py`)
- Idea agents → Agent runtime: uses runtime
- Presentation agents → Agent runtime: uses runtime
- Product agents → Agent runtime: uses runtime
- Cross-stage analysis → Final judge synthesis: informs synthesis
- Project repository → Async database session: uses sessions
- Hackathon repository → Async database session: uses sessions
- Async database session → Relational data models: initializes schema (evidence: `backend/app/db/session.py`)
