# 3ved9969/ai-startup-idea-validator--venturemindx architecture

> Architecture diagram of the GitHub repository 3ved9969/ai-startup-idea-validator--venturemindx, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/3ved9969/ai-startup-idea-validator--venturemindx
- Repository: https://github.com/3ved9969/ai-startup-idea-validator--venturemindx

## Overview

VentureMindX is a startup-idea validation platform with a React interface, FastAPI endpoints, analysis agents, and vector-based startup search. The visible UI workflow submits an idea and displays the API response; the pitch-deck endpoint separately runs the orchestrator, saves a report, and indexes it for similarity search. The README describes broader analysis capabilities, and the LangGraph source defines agent stages, but the sampled API’s `/analyze` response is hard-coded rather than wired to that graph. Some subsystem links are therefore documented rather than source-verified.

Main entry points: [`langgraph_flow/graph.py`](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/langgraph_flow/graph.py) (Agent workflow), [`backend/api/routes.py`](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/backend/api/routes.py) (FastAPI routes), [`frontend/vite-project/src/pages/Dashboard.jsx`](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/pages/Dashboard.jsx) (Insight dashboard), [`frontend/vite-project/src/App.jsx`](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/App.jsx) (App workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Founder interface"]
  node_app["App workflow<br/>[App.jsx]"]
  node_ideaform["Idea form<br/>[StartupForm.jsx]"]
  node_dashboard["Insight dashboard<br/>[Dashboard.jsx]"]
  node_score["Score card<br/>[ScoreCard.jsx]"]
  node_radar["Analysis chart<br/>[RadarChart.jsx]"]
  node_ragui["Similar-startup search<br/>[RAGSearch.jsx]"]
  node_client["API client<br/>[api.js]"]
end

subgraph group_api["API and reports"]
  node_api["FastAPI routes<br/>[routes.py]"]
  node_orchestrator["Report orchestrator<br/>[orchestrator.py]"]
  node_deck["Pitch deck generator"]
  node_reports[("Report storage")]
  node_mongodb[("MongoDB connection<br/>[mongodb.py]")]
end

subgraph group_analysis["Startup analysis"]
  node_workflow["Agent workflow<br/>[graph.py]"]
  node_market["Market analysis<br/>[market_agent.py]"]
  node_competitor["Competitor analysis"]
  node_persona["Customer personas<br/>[persona_agent.py]"]
  node_swot["SWOT analysis<br/>[swot_agent.py]"]
  node_viability["Viability score<br/>[viability_agent.py]"]
  node_revenue["Revenue forecast<br/>[revenue_agent.py]"]
  node_investor["Investor readiness<br/>[investor_agent.py]"]
  node_startupanalyzer["Idea analysis"]
  node_swotagent["SWOT generator<br/>[swot_agent.py]"]
end

subgraph group_research["Research and retrieval"]
  node_vectorrag["Startup retrieval<br/>[startup_rag.py]"]
  node_chroma[("ChromaDB collection<br/>[chroma_client.py]")]
  node_embedding["Text embeddings"]
  node_search["Web research<br/>[search_service.py]"]
  node_tavily["Tavily search<br/>[tavily_service.py]"]
  node_gemini["Gemini generation<br/>[gemini_service.py]"]
end

node_founder(("Founder"))

node_founder -->|"enters idea"| node_ideaform
node_ideaform -->|"submits idea"| node_app
node_app -->|"requests analysis"| node_client
node_client -.->|"calls API"| node_api
node_api -.->|"returns response"| node_app
node_app -->|"renders results"| node_dashboard
node_dashboard -->|"renders score"| node_score
node_dashboard -->|"renders chart"| node_radar
node_dashboard -->|"renders search"| node_ragui
node_ragui -->|"requests search"| node_client
node_api -->|"runs analysis"| node_orchestrator
node_api -->|"creates deck"| node_deck
node_orchestrator -->|"saves report"| node_reports
node_reports -->|"uses connection"| node_mongodb
node_orchestrator -->|"indexes research"| node_vectorrag
node_api -->|"searches startups"| node_vectorrag
node_vectorrag -->|"creates embeddings"| node_embedding
node_vectorrag -->|"queries collection"| node_chroma
node_workflow -->|"runs market node"| node_market
node_workflow -->|"runs competitor node"| node_competitor
node_workflow -->|"runs persona node"| node_persona
node_workflow -->|"runs SWOT node"| node_swot
node_workflow -->|"runs score node"| node_viability
node_workflow -->|"runs forecast node"| node_revenue
node_workflow -->|"runs readiness node"| node_investor
node_market -->|"fetches market data"| node_search
node_market -->|"generates analysis"| node_gemini
node_search -->|"searches web"| node_tavily
node_competitor -->|"fetches competitors"| node_search
node_competitor -->|"generates analysis"| node_gemini

click node_app "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/App.jsx"
click node_ideaform "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/StartupForm.jsx"
click node_dashboard "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/pages/Dashboard.jsx"
click node_score "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/ScoreCard.jsx"
click node_radar "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/RadarChart.jsx"
click node_ragui "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/RAGSearch.jsx"
click node_client "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/api/api.js"
click node_api "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/backend/api/routes.py"
click node_orchestrator "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/backend/orchestrator.py"
click node_deck "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/backend/pitch_deck_generator.py"
click node_reports "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/database/report_collection.py"
click node_mongodb "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/database/mongodb.py"
click node_workflow "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/langgraph_flow/graph.py"
click node_market "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/market_agent.py"
click node_competitor "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/competitor_agent.py"
click node_persona "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/persona_agent.py"
click node_swot "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/swot_agent.py"
click node_viability "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/viability_agent.py"
click node_revenue "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/revenue_agent.py"
click node_investor "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/investor_agent.py"
click node_startupanalyzer "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/startup_analyzer.py"
click node_swotagent "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/swot_agent.py"
click node_vectorrag "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/vector_db/startup_rag.py"
click node_chroma "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/vector_db/chroma_client.py"
click node_embedding "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/embedding_service.py"
click node_search "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/search_service.py"
click node_tavily "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/tavily_service.py"
click node_gemini "https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/gemini_service.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_app,node_ideaform,node_dashboard,node_score,node_radar,node_ragui,node_client toneBlue
class node_api,node_orchestrator,node_deck,node_reports,node_mongodb toneAmber
class node_workflow,node_market,node_competitor,node_persona,node_swot,node_viability,node_revenue,node_investor,node_startupanalyzer,node_swotagent toneMint
class node_vectorrag,node_chroma,node_embedding,node_search,node_tavily,node_gemini toneRose
class node_founder toneIndigo
```

## Components

### Founder interface

- [App workflow](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/App.jsx): `frontend/vite-project/src/App.jsx`
- [Idea form](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/StartupForm.jsx): `frontend/vite-project/src/components/StartupForm.jsx`
- [Insight dashboard](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/pages/Dashboard.jsx): `frontend/vite-project/src/pages/Dashboard.jsx`
- [Score card](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/ScoreCard.jsx): `frontend/vite-project/src/components/ScoreCard.jsx`
- [Analysis chart](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/RadarChart.jsx): `frontend/vite-project/src/components/RadarChart.jsx`
- [Similar-startup search](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/components/RAGSearch.jsx): `frontend/vite-project/src/components/RAGSearch.jsx`
- [API client](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/frontend/vite-project/src/api/api.js): `frontend/vite-project/src/api/api.js`

### API and reports

- [FastAPI routes](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/backend/api/routes.py): `backend/api/routes.py`
- [Report orchestrator](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/backend/orchestrator.py): `backend/orchestrator.py`
- [Pitch deck generator](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/backend/pitch_deck_generator.py): `backend/pitch_deck_generator.py`
- [Report storage](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/database/report_collection.py): `database/report_collection.py`
- [MongoDB connection](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/database/mongodb.py): `database/mongodb.py`

### Startup analysis

- [Agent workflow](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/langgraph_flow/graph.py): `langgraph_flow/graph.py`
- [Market analysis](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/market_agent.py): `agents/market_agent.py`
- [Competitor analysis](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/competitor_agent.py): `agents/competitor_agent.py`
- [Customer personas](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/persona_agent.py): `agents/persona_agent.py`
- [SWOT analysis](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/swot_agent.py): `agents/swot_agent.py`
- [Viability score](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/viability_agent.py): `agents/viability_agent.py`
- [Revenue forecast](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/revenue_agent.py): `agents/revenue_agent.py`
- [Investor readiness](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/investor_agent.py): `agents/investor_agent.py`
- [Idea analysis](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/startup_analyzer.py): `agents/startup_analyzer.py`
- [SWOT generator](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/agents/swot_agent.py): `agents/swot_agent.py`

### Research and retrieval

- [Startup retrieval](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/vector_db/startup_rag.py): `vector_db/startup_rag.py`
- [ChromaDB collection](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/vector_db/chroma_client.py): `vector_db/chroma_client.py`
- [Text embeddings](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/embedding_service.py): `services/embedding_service.py`
- [Web research](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/search_service.py): `services/search_service.py`
- [Tavily search](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/tavily_service.py): `services/tavily_service.py`
- [Gemini generation](https://github.com/3ved9969/ai-startup-idea-validator--venturemindx/blob/main/services/gemini_service.py): `services/gemini_service.py`

### Other components

- **Founder**

## Connections

- Founder → Idea form: enters idea
- Idea form → App workflow: submits idea (evidence: `frontend/vite-project/src/App.jsx`)
- App workflow → API client: requests analysis (evidence: `frontend/vite-project/src/App.jsx`)
- API client → FastAPI routes: calls API (evidence: `README.md`)
- FastAPI routes → App workflow: returns response (evidence: `README.md`)
- App workflow → Insight dashboard: renders results (evidence: `frontend/vite-project/src/App.jsx`)
- Insight dashboard → Score card: renders score (evidence: `frontend/vite-project/src/pages/Dashboard.jsx`)
- Insight dashboard → Analysis chart: renders chart (evidence: `frontend/vite-project/src/pages/Dashboard.jsx`)
- Insight dashboard → Similar-startup search: renders search (evidence: `frontend/vite-project/src/pages/Dashboard.jsx`)
- Similar-startup search → API client: requests search (evidence: `frontend/vite-project/src/components/RAGSearch.jsx`)
- FastAPI routes → Report orchestrator: runs analysis (evidence: `backend/api/routes.py`)
- FastAPI routes → Pitch deck generator: creates deck (evidence: `backend/api/routes.py`)
- Report orchestrator → Report storage: saves report (evidence: `backend/orchestrator.py`)
- Report storage → MongoDB connection: uses connection (evidence: `database/report_collection.py`)
- Report orchestrator → Startup retrieval: indexes research (evidence: `backend/orchestrator.py`)
- FastAPI routes → Startup retrieval: searches startups (evidence: `backend/api/routes.py`)
- Startup retrieval → Text embeddings: creates embeddings (evidence: `vector_db/startup_rag.py`)
- Startup retrieval → ChromaDB collection: queries collection (evidence: `vector_db/startup_rag.py`)
- Agent workflow → Market analysis: runs market node (evidence: `langgraph_flow/graph.py`)
- Agent workflow → Competitor analysis: runs competitor node (evidence: `langgraph_flow/graph.py`)
- Agent workflow → Customer personas: runs persona node (evidence: `langgraph_flow/graph.py`)
- Agent workflow → SWOT analysis: runs SWOT node (evidence: `langgraph_flow/graph.py`)
- Agent workflow → Viability score: runs score node (evidence: `langgraph_flow/graph.py`)
- Agent workflow → Revenue forecast: runs forecast node (evidence: `langgraph_flow/graph.py`)
- Agent workflow → Investor readiness: runs readiness node (evidence: `langgraph_flow/graph.py`)
- Market analysis → Web research: fetches market data (evidence: `agents/market_agent.py`)
- Market analysis → Gemini generation: generates analysis (evidence: `agents/market_agent.py`)
- Web research → Tavily search: searches web (evidence: `services/search_service.py`)
- Competitor analysis → Web research: fetches competitors (evidence: `agents/competitor_agent.py`)
- Competitor analysis → Gemini generation: generates analysis (evidence: `agents/competitor_agent.py`)
