# rajeevkumar-bit/launchmate-ai architecture

> Architecture diagram of the GitHub repository rajeevkumar-bit/launchmate-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rajeevkumar-bit/launchmate-ai
- Repository: https://github.com/rajeevkumar-bit/launchmate-ai

## Overview

LaunchMate AI is a browser-based startup-building workspace: users sign in, describe an idea, receive an AI-generated report or chat response, and can save or continue building startup assets. The tree also exposes dedicated CRM, IVR, website, studio, logo, and project areas. Excerpts show the startup generation route and selected Firebase and AI-provider calls; several feature modules are indexed but unsampled, so their internal links are omitted.

Main entry points: [`js/startup.js`](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/startup.js) (Startup generator), [`firebase/config.js`](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/firebase/config.js) (Firebase client), [`js/chat.js`](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/chat.js) (Startup chat), [`js/auth.js`](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/auth.js) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_auth["Authentication<br/>[auth.js]"]
  node_firebase_config["Firebase client<br/>[config.js]"]
  node_firestore[("Firestore")]
  node_home["Landing page<br/>[script.js]"]
end

subgraph group_creation["Startup creation"]
  node_chat["Startup chat<br/>[chat.js]"]
  node_startup_builder["Startup generator<br/>[startup.js]"]
  node_generation_api["Generation API<br/>[generate.js]"]
  node_chat_api["Chat API<br/>[chat.js]"]
end

subgraph group_workspace["Workspace tools"]
  node_projects["Project management<br/>[projects.js]"]
  node_dashboard["Dashboard<br/>[dashboard.js]"]
  node_crm["CRM<br/>[crm.js]"]
  node_ivr["IVR<br/>[ivr.js]"]
  node_website["Website builder<br/>[website.js]"]
  node_studio["Creative studio<br/>[studio.js]"]
  node_logo["Logo creation<br/>[logo.js]"]
  node_marketing["Marketing page<br/>[marketing.html]"]
end

subgraph group_generation["AI generation"]
  node_ai_provider["AI provider<br/>[provider.js]"]
  node_openrouter["OpenRouter adapter<br/>[openrouter.js]"]
  node_image_router["Image router<br/>[image.js]"]
  node_flux["Flux image provider<br/>[flux.js]"]
  node_gemini_image["Gemini image provider<br/>[geminiImage.js]"]
  node_gemini_text["Gemini provider<br/>[gemini.js]"]
  node_groq["Groq provider<br/>[groq.js]"]
  node_openai["OpenAI provider<br/>[openai.js]"]
  node_openai_image["OpenAI image provider<br/>[openaiImage.js]"]
end

node_user(("User"))

node_user -->|"signs in"| node_auth
node_auth -->|"uses client"| node_firebase_config
node_firebase_config -->|"initializes"| node_firestore
node_user -->|"submits idea"| node_startup_builder
node_startup_builder -->|"requests report"| node_generation_api
node_generation_api -->|"requests generation"| node_ai_provider
node_ai_provider -->|"delegates generation"| node_openrouter
node_openrouter -.-> node_firestore
node_startup_builder -->|"uses client"| node_firebase_config
node_startup_builder -->|"saves projects"| node_firestore
node_user -->|"starts conversation"| node_chat
node_chat -->|"uses client"| node_firebase_config
node_chat -->|"loads and saves chats"| node_firestore
node_chat_api -->|"requests generation"| node_ai_provider
node_image_router -->|"delegates image work"| node_flux
node_image_router -->|"delegates image work"| node_gemini_image
node_home -->|"starts login"| node_auth

click node_auth "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/auth.js"
click node_firebase_config "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/firebase/config.js"
click node_home "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/script.js"
click node_chat "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/chat.js"
click node_startup_builder "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/startup.js"
click node_generation_api "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/api/generate.js"
click node_chat_api "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/api/chat.js"
click node_ai_provider "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/provider.js"
click node_openrouter "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/openrouter.js"
click node_image_router "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/image.js"
click node_flux "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/flux.js"
click node_gemini_image "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/geminiImage.js"
click node_gemini_text "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/gemini.js"
click node_groq "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/groq.js"
click node_openai "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/openai.js"
click node_openai_image "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/openaiImage.js"
click node_projects "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/projects.js"
click node_dashboard "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/dashboard.js"
click node_crm "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/crm.js"
click node_ivr "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/ivr.js"
click node_website "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/website.js"
click node_studio "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/studio.js"
click node_logo "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/logo.js"
click node_marketing "https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/marketing.html"

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_auth,node_firebase_config,node_firestore,node_home,node_user toneBlue
class node_chat,node_startup_builder,node_generation_api,node_chat_api toneAmber
class node_projects,node_dashboard,node_crm,node_ivr,node_website,node_studio,node_logo,node_marketing toneMint
class node_ai_provider,node_openrouter,node_image_router,node_flux,node_gemini_image,node_gemini_text,node_groq,node_openai,node_openai_image toneRose
```

## Components

### User experience

- [Authentication](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/auth.js): `js/auth.js`
- [Firebase client](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/firebase/config.js): `firebase/config.js`
- **Firestore**
- [Landing page](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/script.js): `js/script.js`

### Startup creation

- [Startup chat](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/chat.js): `js/chat.js`
- [Startup generator](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/startup.js): `js/startup.js`
- [Generation API](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/api/generate.js): `api/generate.js`
- [Chat API](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/api/chat.js): `api/chat.js`

### Workspace tools

- [Project management](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/projects.js): `js/projects.js`
- [Dashboard](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/dashboard.js): `js/dashboard.js`
- [CRM](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/crm.js): `js/crm.js`
- [IVR](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/ivr.js): `js/ivr.js`
- [Website builder](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/website.js): `js/website.js`
- [Creative studio](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/studio.js): `js/studio.js`
- [Logo creation](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/js/logo.js): `js/logo.js`
- [Marketing page](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/marketing.html): `marketing.html`

### AI generation

- [AI provider](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/provider.js): `ai/provider.js`
- [OpenRouter adapter](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/openrouter.js): `ai/openrouter.js`
- [Image router](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/image.js): `ai/image.js`
- [Flux image provider](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/flux.js): `ai/flux.js`
- [Gemini image provider](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/geminiImage.js): `ai/geminiImage.js`
- [Gemini provider](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/gemini.js): `ai/gemini.js`
- [Groq provider](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/groq.js): `ai/groq.js`
- [OpenAI provider](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/openai.js): `ai/openai.js`
- [OpenAI image provider](https://github.com/rajeevkumar-bit/launchmate-ai/blob/main/ai/openaiImage.js): `ai/openaiImage.js`

### Other components

- **User**

## Connections

- User → Authentication: signs in (evidence: `js/auth.js`)
- Authentication → Firebase client: uses client (evidence: `js/auth.js`)
- Firebase client → Firestore: initializes (evidence: `firebase/config.js`)
- User → Startup generator: submits idea (evidence: `js/startup.js`)
- Startup generator → Generation API: requests report (evidence: `js/startup.js`)
- Generation API → AI provider: requests generation (evidence: `api/generate.js`)
- AI provider → OpenRouter adapter: delegates generation (evidence: `ai/provider.js`)
- OpenRouter adapter → Firestore
- Startup generator → Firebase client: uses client (evidence: `js/startup.js`)
- Startup generator → Firestore: saves projects (evidence: `js/startup.js`)
- User → Startup chat: starts conversation (evidence: `js/chat.js`)
- Startup chat → Firebase client: uses client (evidence: `js/chat.js`)
- Startup chat → Firestore: loads and saves chats (evidence: `js/chat.js`)
- Chat API → AI provider: requests generation (evidence: `api/chat.js`)
- Image router → Flux image provider: delegates image work (evidence: `ai/image.js`)
- Image router → Gemini image provider: delegates image work (evidence: `ai/image.js`)
- Landing page → Authentication: starts login (evidence: `js/script.js`)
