# daulathussain/jarvis-starter-file architecture

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

- Interactive diagram: https://gitdiagram.com/daulathussain/jarvis-starter-file
- Repository: https://github.com/daulathussain/jarvis-starter-file

## Overview

The README presents a voice-controlled Jarvis automation assistant, but the sampled implementation is mostly placeholder components and does not demonstrate that workflow. The graph distinguishes the documented product flow from the small set of identifiable application routes and state modules; dashed, uncited links mark capabilities whose implementation is not shown.

Main entry points: [`src/ai/tools.ts`](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/ai/tools.ts) (AI tools), [`src/hooks/useRealtimeVoice.ts`](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/hooks/useRealtimeVoice.ts) (Realtime voice hook), [`src/app/page.tsx`](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/app/page.tsx) (Landing route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_landing["Landing route<br/>[page.tsx]"]
  node_auth["Authentication routes"]
  node_business_site["Business site route<br/>[page.tsx]"]
  node_widget_demo["Widget demo<br/>[page.tsx]"]
end

subgraph group_assistant["Assistant scaffolding"]
  node_voice["Realtime voice hook"]
  node_ai_tools["AI tools<br/>[tools.ts]"]
  node_widgets["Widget service<br/>[widgets.ts]"]
end

subgraph group_state["State and data"]
  node_business_provider["Business provider"]
  node_business_state["Business state<br/>[business.ts]"]
  node_voice_state["Voice state<br/>[voice.ts]"]
  node_database[("Database schema<br/>[schema.sql]")]
end

node_user(("User"))
node_connected_apps{{"Connected applications"}}
node_workflows["Automated workflows"]

node_user -.->|"gives voice commands"| node_voice
node_voice -.->|"requests task execution"| node_ai_tools
node_ai_tools -.->|"performs app actions"| node_connected_apps
node_ai_tools -.->|"executes workflows"| node_workflows
node_user -->|"opens app"| node_landing

click node_landing "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/app/page.tsx"
click node_auth "https://github.com/daulathussain/jarvis-starter-file/tree/main/src/app/(auth)"
click node_business_site "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/app/sites/%5Bslug%5D/page.tsx"
click node_widget_demo "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/app/widget-demo/page.tsx"
click node_voice "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/hooks/useRealtimeVoice.ts"
click node_ai_tools "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/ai/tools.ts"
click node_widgets "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/services/widgets.ts"
click node_business_provider "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/providers/BusinessProvider.tsx"
click node_business_state "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/store/business.ts"
click node_voice_state "https://github.com/daulathussain/jarvis-starter-file/blob/main/src/store/voice.ts"
click node_database "https://github.com/daulathussain/jarvis-starter-file/blob/main/supabase/schema.sql"

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_landing,node_auth,node_business_site,node_widget_demo,node_user toneBlue
class node_voice,node_ai_tools,node_widgets toneAmber
class node_business_provider,node_business_state,node_voice_state,node_database toneMint
class node_connected_apps,node_workflows toneIndigo
```

## Components

### Web application

- [Landing route](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Authentication routes](https://github.com/daulathussain/jarvis-starter-file/tree/main/src/app/(auth)): `src/app/(auth)`
- [Business site route](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/app/sites/%5Bslug%5D/page.tsx): `src/app/sites/[slug]/page.tsx`
- [Widget demo](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/app/widget-demo/page.tsx): `src/app/widget-demo/page.tsx`

### Assistant scaffolding

- [Realtime voice hook](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/hooks/useRealtimeVoice.ts): `src/hooks/useRealtimeVoice.ts`
- [AI tools](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/ai/tools.ts): `src/ai/tools.ts`
- [Widget service](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/services/widgets.ts): `src/services/widgets.ts`

### State and data

- [Business provider](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/providers/BusinessProvider.tsx): `src/providers/BusinessProvider.tsx`
- [Business state](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/store/business.ts): `src/store/business.ts`
- [Voice state](https://github.com/daulathussain/jarvis-starter-file/blob/main/src/store/voice.ts): `src/store/voice.ts`
- [Database schema](https://github.com/daulathussain/jarvis-starter-file/blob/main/supabase/schema.sql): `supabase/schema.sql`

### Other components

- **User**
- **Connected applications**
- **Automated workflows**

## Connections

- User → Realtime voice hook: gives voice commands (evidence: `README.md`)
- Realtime voice hook → AI tools: requests task execution
- AI tools → Connected applications: performs app actions (evidence: `README.md`)
- AI tools → Automated workflows: executes workflows (evidence: `README.md`)
- User → Landing route: opens app
