# vanjikumar6383/define architecture

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

- Interactive diagram: https://gitdiagram.com/vanjikumar6383/define
- Repository: https://github.com/vanjikumar6383/define

## Overview

Nimad is a conversation copilot for meetings: users manage accounts and sessions, capture or import meeting conversations, and use AI-backed assistance and summaries. Its backend also exposes meeting-platform integrations and text-to-speech. The graph preserves the browser companion and frontend as product surfaces, but their connections to the API are not shown in the available source evidence. Backend wiring is clearer from the application and route imports; unsampled route behavior is represented only at the subsystem level.

Main entry points: [`pr007-conversation-copilot/backend/app/main.py`](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/main.py) (FastAPI application), [`pr007-conversation-copilot/backend/app/db/database.py`](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/db/database.py) (Database access), [`pr007-conversation-copilot/backend/app/api/routes/copilot.py`](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/copilot.py) (Copilot assistance), [`pr007-conversation-copilot/backend/app/api/routes/integrations.py`](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/integrations.py) (Integration routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client surfaces"]
  node_extension["Browser companion"]
  node_gmeet_capture["Meet capture<br/>[content-gmeet.js]"]
  node_teams_capture["Teams capture<br/>[content-teams.js]"]
  node_zoom_capture["Zoom capture<br/>[content-zoom.js]"]
  node_extension_background["Extension background<br/>[background.js]"]
  node_extension_popup["Extension popup<br/>[popup.js]"]
  node_extension_options["Extension options<br/>[options.js]"]
  node_frontend_api["Frontend API client<br/>[api.js]"]
  node_frontend_ui["Frontend UI<br/>[ui.js]"]
end

subgraph group_api["API and identity"]
  node_app["FastAPI application<br/>[main.py]"]
  node_auth_routes["Authentication routes<br/>[auth.py]"]
  node_auth_security["Token and password security<br/>[auth.py]"]
end

subgraph group_conversation["Conversation workflow"]
  node_session_routes["Session management<br/>[sessions.py]"]
  node_copilot_routes["Copilot assistance<br/>[copilot.py]"]
  node_ai_adapter["AI provider adapter<br/>[ai_adapter.py]"]
  node_tts_routes["Speech synthesis<br/>[tts.py]"]
end

subgraph group_integrations["Meeting integrations"]
  node_integration_routes["Integration routes<br/>[integrations.py]"]
  node_integration_manager["Integration manager"]
  node_google_meet["Google Meet service"]
  node_teams["Teams service"]
  node_zoom["Zoom service<br/>[zoom_service.py]"]
end

subgraph group_data["Persistence and configuration"]
  node_schemas["API schemas<br/>[schemas.py]"]
  node_models["Domain models<br/>[models.py]"]
  node_database[("Database access<br/>[database.py]")]
  node_config["Application settings<br/>[config.py]"]
end

node_user(("Meeting user"))
node_meeting_platforms(("Meeting platforms"))
node_ai_provider(("AI provider API"))
node_speech_provider(("Speech provider"))

node_user -->|"uses"| node_extension
node_user -->|"uses"| node_frontend_api
node_app -->|"registers"| node_auth_routes
node_app -->|"registers"| node_session_routes
node_app -->|"registers"| node_copilot_routes
node_app -->|"registers"| node_integration_routes
node_app -->|"registers"| node_tts_routes
node_app -->|"creates tables"| node_database
node_auth_routes -->|"uses"| node_auth_security
node_auth_routes -->|"queries"| node_database
node_auth_routes -->|"reads and writes"| node_models
node_auth_routes -->|"validates with"| node_schemas
node_session_routes -->|"authenticates with"| node_auth_security
node_session_routes -->|"queries"| node_database
node_session_routes -->|"reads and writes"| node_models
node_session_routes -->|"validates with"| node_schemas
node_copilot_routes -->|"authenticates with"| node_auth_security
node_copilot_routes -->|"queries"| node_database
node_copilot_routes -->|"reads and writes"| node_models
node_copilot_routes -->|"validates with"| node_schemas
node_copilot_routes -->|"requests AI"| node_ai_adapter
node_ai_adapter -->|"sends prompts"| node_ai_provider
node_tts_routes -->|"authenticates with"| node_auth_security
node_tts_routes -->|"reads"| node_models
node_tts_routes -->|"reads settings"| node_config
node_tts_routes -.->|"requests speech"| node_speech_provider
node_integration_routes -->|"authenticates with"| node_auth_security
node_integration_routes -->|"queries"| node_database
node_integration_routes -->|"reads and writes"| node_models
node_integration_routes -->|"validates with"| node_schemas
node_integration_routes -->|"delegates to"| node_integration_manager
node_integration_manager -->|"dispatches to"| node_google_meet
node_integration_manager -->|"dispatches to"| node_teams
node_integration_manager -->|"dispatches to"| node_zoom
node_google_meet -->|"configures OAuth"| node_meeting_platforms
node_teams -->|"configures OAuth"| node_meeting_platforms
node_zoom -.->|"integrates"| node_meeting_platforms
node_database -->|"loads settings"| node_config
node_models -->|"uses base"| node_database

click node_extension "https://github.com/vanjikumar6383/define/tree/main/pr007-conversation-copilot/chrome-extension"
click node_gmeet_capture "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/content-gmeet.js"
click node_teams_capture "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/content-teams.js"
click node_zoom_capture "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/content-zoom.js"
click node_extension_background "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/background.js"
click node_extension_popup "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/popup.js"
click node_extension_options "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/options.js"
click node_frontend_api "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/frontend/js/api.js"
click node_frontend_ui "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/frontend/js/components/ui.js"
click node_app "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/main.py"
click node_auth_routes "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/auth.py"
click node_auth_security "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/security/auth.py"
click node_session_routes "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/sessions.py"
click node_copilot_routes "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/copilot.py"
click node_ai_adapter "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/providers/ai_adapter.py"
click node_tts_routes "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/tts.py"
click node_integration_routes "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/integrations.py"
click node_integration_manager "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/integration_manager.py"
click node_google_meet "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/google_meet_service.py"
click node_teams "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/microsoft_teams_service.py"
click node_zoom "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/zoom_service.py"
click node_schemas "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/schemas/schemas.py"
click node_models "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/models/models.py"
click node_database "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/db/database.py"
click node_config "https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/core/config.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_extension,node_gmeet_capture,node_teams_capture,node_zoom_capture,node_extension_background,node_extension_popup,node_extension_options,node_frontend_api,node_frontend_ui,node_user toneBlue
class node_app,node_auth_routes,node_auth_security toneAmber
class node_session_routes,node_copilot_routes,node_ai_adapter,node_tts_routes,node_ai_provider toneMint
class node_integration_routes,node_integration_manager,node_google_meet,node_teams,node_zoom toneRose
class node_schemas,node_models,node_database,node_config,node_meeting_platforms,node_speech_provider toneIndigo
```

## Components

### Client surfaces

- [Browser companion](https://github.com/vanjikumar6383/define/tree/main/pr007-conversation-copilot/chrome-extension): `pr007-conversation-copilot/chrome-extension`
- [Meet capture](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/content-gmeet.js): `pr007-conversation-copilot/chrome-extension/content-gmeet.js`
- [Teams capture](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/content-teams.js): `pr007-conversation-copilot/chrome-extension/content-teams.js`
- [Zoom capture](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/content-zoom.js): `pr007-conversation-copilot/chrome-extension/content-zoom.js`
- [Extension background](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/background.js): `pr007-conversation-copilot/chrome-extension/background.js`
- [Extension popup](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/popup.js): `pr007-conversation-copilot/chrome-extension/popup.js`
- [Extension options](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/chrome-extension/options.js): `pr007-conversation-copilot/chrome-extension/options.js`
- [Frontend API client](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/frontend/js/api.js): `pr007-conversation-copilot/frontend/js/api.js`
- [Frontend UI](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/frontend/js/components/ui.js): `pr007-conversation-copilot/frontend/js/components/ui.js`

### API and identity

- [FastAPI application](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/main.py): `pr007-conversation-copilot/backend/app/main.py`
- [Authentication routes](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/auth.py): `pr007-conversation-copilot/backend/app/api/routes/auth.py`
- [Token and password security](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/security/auth.py): `pr007-conversation-copilot/backend/app/security/auth.py`

### Conversation workflow

- [Session management](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/sessions.py): `pr007-conversation-copilot/backend/app/api/routes/sessions.py`
- [Copilot assistance](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/copilot.py): `pr007-conversation-copilot/backend/app/api/routes/copilot.py`
- [AI provider adapter](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/providers/ai_adapter.py): `pr007-conversation-copilot/backend/app/services/providers/ai_adapter.py`
- [Speech synthesis](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/tts.py): `pr007-conversation-copilot/backend/app/api/routes/tts.py`

### Meeting integrations

- [Integration routes](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/api/routes/integrations.py): `pr007-conversation-copilot/backend/app/api/routes/integrations.py`
- [Integration manager](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/integration_manager.py): `pr007-conversation-copilot/backend/app/services/integrations/integration_manager.py`
- [Google Meet service](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/google_meet_service.py): `pr007-conversation-copilot/backend/app/services/integrations/google_meet_service.py`
- [Teams service](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/microsoft_teams_service.py): `pr007-conversation-copilot/backend/app/services/integrations/microsoft_teams_service.py`
- [Zoom service](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/services/integrations/zoom_service.py): `pr007-conversation-copilot/backend/app/services/integrations/zoom_service.py`

### Persistence and configuration

- [API schemas](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/schemas/schemas.py): `pr007-conversation-copilot/backend/app/schemas/schemas.py`
- [Domain models](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/models/models.py): `pr007-conversation-copilot/backend/app/models/models.py`
- [Database access](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/db/database.py): `pr007-conversation-copilot/backend/app/db/database.py`
- [Application settings](https://github.com/vanjikumar6383/define/blob/main/pr007-conversation-copilot/backend/app/core/config.py): `pr007-conversation-copilot/backend/app/core/config.py`

### Other components

- **Meeting user**
- **Meeting platforms**
- **AI provider API**
- **Speech provider**

## Connections

- Meeting user → Browser companion: uses
- Meeting user → Frontend API client: uses
- FastAPI application → Authentication routes: registers (evidence: `pr007-conversation-copilot/backend/app/main.py`)
- FastAPI application → Session management: registers (evidence: `pr007-conversation-copilot/backend/app/main.py`)
- FastAPI application → Copilot assistance: registers (evidence: `pr007-conversation-copilot/backend/app/main.py`)
- FastAPI application → Integration routes: registers (evidence: `pr007-conversation-copilot/backend/app/main.py`)
- FastAPI application → Speech synthesis: registers (evidence: `pr007-conversation-copilot/backend/app/main.py`)
- FastAPI application → Database access: creates tables (evidence: `pr007-conversation-copilot/backend/app/main.py`)
- Authentication routes → Token and password security: uses (evidence: `pr007-conversation-copilot/backend/app/api/routes/auth.py`)
- Authentication routes → Database access: queries (evidence: `pr007-conversation-copilot/backend/app/api/routes/auth.py`)
- Authentication routes → Domain models: reads and writes (evidence: `pr007-conversation-copilot/backend/app/api/routes/auth.py`)
- Authentication routes → API schemas: validates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/auth.py`)
- Session management → Token and password security: authenticates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/sessions.py`)
- Session management → Database access: queries (evidence: `pr007-conversation-copilot/backend/app/api/routes/sessions.py`)
- Session management → Domain models: reads and writes (evidence: `pr007-conversation-copilot/backend/app/api/routes/sessions.py`)
- Session management → API schemas: validates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/sessions.py`)
- Copilot assistance → Token and password security: authenticates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/copilot.py`)
- Copilot assistance → Database access: queries (evidence: `pr007-conversation-copilot/backend/app/api/routes/copilot.py`)
- Copilot assistance → Domain models: reads and writes (evidence: `pr007-conversation-copilot/backend/app/api/routes/copilot.py`)
- Copilot assistance → API schemas: validates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/copilot.py`)
- Copilot assistance → AI provider adapter: requests AI (evidence: `pr007-conversation-copilot/backend/app/api/routes/copilot.py`)
- AI provider adapter → AI provider API: sends prompts (evidence: `pr007-conversation-copilot/backend/app/services/providers/ai_adapter.py`)
- Speech synthesis → Token and password security: authenticates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/tts.py`)
- Speech synthesis → Domain models: reads (evidence: `pr007-conversation-copilot/backend/app/api/routes/tts.py`)
- Speech synthesis → Application settings: reads settings (evidence: `pr007-conversation-copilot/backend/app/api/routes/tts.py`)
- Speech synthesis → Speech provider: requests speech
- Integration routes → Token and password security: authenticates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/integrations.py`)
- Integration routes → Database access: queries (evidence: `pr007-conversation-copilot/backend/app/api/routes/integrations.py`)
- Integration routes → Domain models: reads and writes (evidence: `pr007-conversation-copilot/backend/app/api/routes/integrations.py`)
- Integration routes → API schemas: validates with (evidence: `pr007-conversation-copilot/backend/app/api/routes/integrations.py`)
- Integration routes → Integration manager: delegates to (evidence: `pr007-conversation-copilot/backend/app/api/routes/integrations.py`)
- Integration manager → Google Meet service: dispatches to (evidence: `pr007-conversation-copilot/backend/app/services/integrations/integration_manager.py`)
- Integration manager → Teams service: dispatches to (evidence: `pr007-conversation-copilot/backend/app/services/integrations/integration_manager.py`)
- Integration manager → Zoom service: dispatches to (evidence: `pr007-conversation-copilot/backend/app/services/integrations/integration_manager.py`)
- Google Meet service → Meeting platforms: configures OAuth (evidence: `pr007-conversation-copilot/backend/app/services/integrations/google_meet_service.py`)
- Teams service → Meeting platforms: configures OAuth (evidence: `pr007-conversation-copilot/backend/app/services/integrations/microsoft_teams_service.py`)
- Zoom service → Meeting platforms: integrates
- Database access → Application settings: loads settings (evidence: `pr007-conversation-copilot/backend/app/db/database.py`)
- Domain models → Database access: uses base (evidence: `pr007-conversation-copilot/backend/app/models/models.py`)
