# nanaji-garikina/signal-ai-investor-matchmaking architecture

> Architecture diagram of the GitHub repository nanaji-garikina/signal-ai-investor-matchmaking, 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/nanaji-garikina/signal-ai-investor-matchmaking
- Repository: https://github.com/nanaji-garikina/signal-ai-investor-matchmaking

## Overview

Signal guides founders from startup profiling and investor-list import through transparent match ranking, match intelligence, and founder-reviewed outreach. The README documents the file-parsing and AI fallback capabilities; sampled source confirms key UI orchestration, scoring, and provider calls. Some component-to-route links are documented rather than visible in the excerpts, so those edges cite the README.

Main entry points: [`app/page.js`](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/page.js) (Workflow shell), [`components/MatchDashboard.js`](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/MatchDashboard.js) (Match dashboard), [`app/api/extract/route.js`](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/extract/route.js) (Document extraction), [`components/StartupForm.js`](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/StartupForm.js) (Startup profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Founder workflow"]
  node_page["Workflow shell<br/>[page.js]"]
  node_startup["Startup profile<br/>[StartupForm.js]"]
  node_investors["Investor import<br/>[InvestorImport.js]"]
  node_ui["Shared UI elements<br/>[UI.js]"]
end

subgraph group_matching["Matching and intelligence"]
  node_matching_ui["Match dashboard<br/>[MatchDashboard.js]"]
  node_scoring["Scoring and CSV mapping<br/>[matching.js]"]
  node_agent_ui["Investor agent panel<br/>[InvestorAgent.js]"]
  node_agent_api["Investor agent route<br/>[route.js]"]
  node_enrich["Match enrichment<br/>[route.js]"]
end

subgraph group_services["Parsing and AI services"]
  node_blob_api["Blob upload route<br/>[route.js]"]
  node_blob[("Vercel Blob")]
  node_extract["Document extraction<br/>[route.js]"]
  node_gemini["Gemini client<br/>[gemini.js]"]
  node_groq["Groq client<br/>[groq.js]"]
end

subgraph group_outreach["Outreach"]
  node_emails_ui["Outreach drafts<br/>[Outreach.js]"]
  node_emails_api["Email generation<br/>[route.js]"]
  node_gmail["Gmail compose"]
end

node_founder(("Founder"))

node_founder -->|"uses"| node_page
node_page -->|"renders"| node_startup
node_page -->|"renders"| node_investors
node_page -->|"renders"| node_matching_ui
node_page -->|"renders"| node_emails_ui
node_startup -->|"requests upload"| node_blob_api
node_blob_api -->|"stages files"| node_blob
node_startup -->|"submits profile file"| node_extract
node_investors -->|"imports files"| node_extract
node_extract -->|"reads staged file"| node_blob
node_extract -->|"extracts fields"| node_gemini
node_extract -->|"falls back"| node_groq
node_investors -->|"maps CSV"| node_scoring
node_matching_ui -->|"computes scores"| node_scoring
node_matching_ui -->|"opens for match"| node_agent_ui
node_agent_ui -->|"asks questions"| node_agent_api
node_agent_api -->|"requests answers"| node_gemini
node_agent_api -->|"falls back"| node_groq
node_matching_ui -->|"requests rationale"| node_enrich
node_enrich -->|"generates rationale"| node_gemini
node_emails_ui -->|"requests drafts"| node_emails_api
node_emails_api -->|"drafts emails"| node_gemini
node_emails_api -->|"falls back"| node_groq
node_emails_ui -->|"opens compose"| node_gmail
node_startup -->|"uses fields"| node_ui
node_matching_ui -->|"uses gauges"| node_ui
node_emails_ui -->|"uses fields"| node_ui

click node_page "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/page.js"
click node_startup "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/StartupForm.js"
click node_investors "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/InvestorImport.js"
click node_blob_api "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/blob-upload/route.js"
click node_extract "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/extract/route.js"
click node_matching_ui "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/MatchDashboard.js"
click node_scoring "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/lib/matching.js"
click node_agent_ui "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/InvestorAgent.js"
click node_agent_api "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/investor-agent/route.js"
click node_enrich "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/enrich/route.js"
click node_emails_ui "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/Outreach.js"
click node_emails_api "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/emails/route.js"
click node_ui "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/UI.js"
click node_gemini "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/lib/gemini.js"
click node_groq "https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/lib/groq.js"

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_page,node_startup,node_investors,node_ui toneBlue
class node_matching_ui,node_scoring,node_agent_ui,node_agent_api,node_enrich toneAmber
class node_blob_api,node_blob,node_extract,node_gemini,node_groq toneMint
class node_emails_ui,node_emails_api,node_gmail toneRose
class node_founder toneIndigo
```

## Components

### Founder workflow

- [Workflow shell](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/page.js): `app/page.js`
- [Startup profile](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/StartupForm.js): `components/StartupForm.js`
- [Investor import](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/InvestorImport.js): `components/InvestorImport.js`
- [Shared UI elements](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/UI.js): `components/UI.js`

### Matching and intelligence

- [Match dashboard](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/MatchDashboard.js): `components/MatchDashboard.js`
- [Scoring and CSV mapping](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/lib/matching.js): `lib/matching.js`
- [Investor agent panel](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/InvestorAgent.js): `components/InvestorAgent.js`
- [Investor agent route](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/investor-agent/route.js): `app/api/investor-agent/route.js`
- [Match enrichment](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/enrich/route.js): `app/api/enrich/route.js`

### Parsing and AI services

- [Blob upload route](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/blob-upload/route.js): `app/api/blob-upload/route.js`
- **Vercel Blob**
- [Document extraction](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/extract/route.js): `app/api/extract/route.js`
- [Gemini client](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/lib/gemini.js): `lib/gemini.js`
- [Groq client](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/lib/groq.js): `lib/groq.js`

### Outreach

- [Outreach drafts](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/components/Outreach.js): `components/Outreach.js`
- [Email generation](https://github.com/nanaji-garikina/signal-ai-investor-matchmaking/blob/main/app/api/emails/route.js): `app/api/emails/route.js`
- **Gmail compose**

### Other components

- **Founder**

## Connections

- Founder → Workflow shell: uses (evidence: `README.md`)
- Workflow shell → Startup profile: renders (evidence: `app/page.js`)
- Workflow shell → Investor import: renders (evidence: `app/page.js`)
- Workflow shell → Match dashboard: renders (evidence: `app/page.js`)
- Workflow shell → Outreach drafts: renders (evidence: `app/page.js`)
- Startup profile → Blob upload route: requests upload (evidence: `components/StartupForm.js`)
- Blob upload route → Vercel Blob: stages files (evidence: `README.md`)
- Startup profile → Document extraction: submits profile file (evidence: `components/StartupForm.js`)
- Investor import → Document extraction: imports files (evidence: `README.md`)
- Document extraction → Vercel Blob: reads staged file (evidence: `README.md`)
- Document extraction → Gemini client: extracts fields (evidence: `app/api/extract/route.js`)
- Document extraction → Groq client: falls back (evidence: `app/api/extract/route.js`)
- Investor import → Scoring and CSV mapping: maps CSV (evidence: `components/InvestorImport.js`)
- Match dashboard → Scoring and CSV mapping: computes scores (evidence: `components/MatchDashboard.js`)
- Match dashboard → Investor agent panel: opens for match (evidence: `components/MatchDashboard.js`)
- Investor agent panel → Investor agent route: asks questions (evidence: `README.md`)
- Investor agent route → Gemini client: requests answers (evidence: `app/api/investor-agent/route.js`)
- Investor agent route → Groq client: falls back (evidence: `app/api/investor-agent/route.js`)
- Match dashboard → Match enrichment: requests rationale (evidence: `README.md`)
- Match enrichment → Gemini client: generates rationale (evidence: `app/api/enrich/route.js`)
- Outreach drafts → Email generation: requests drafts (evidence: `components/Outreach.js`)
- Email generation → Gemini client: drafts emails (evidence: `app/api/emails/route.js`)
- Email generation → Groq client: falls back (evidence: `app/api/emails/route.js`)
- Outreach drafts → Gmail compose: opens compose (evidence: `components/Outreach.js`)
- Startup profile → Shared UI elements: uses fields (evidence: `components/StartupForm.js`)
- Match dashboard → Shared UI elements: uses gauges (evidence: `components/MatchDashboard.js`)
- Outreach drafts → Shared UI elements: uses fields (evidence: `components/Outreach.js`)
