# tnesh833-eng/radhima-ideabridge-argent- architecture

> Architecture diagram of the GitHub repository tnesh833-eng/radhima-ideabridge-argent-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tnesh833-eng/radhima-ideabridge-argent-
- Repository: https://github.com/tnesh833-eng/radhima-ideabridge-argent-

## Overview

Radhima is a mobile-first AI agent for project ideation, SIH problem solving, planning, campus insights, and events, with chat and voice interfaces plus a task-and-notes workspace. The primary flow is user request → React app/chat → Express API → agent engine and its tools → response and workspace updates. The README describes intended capabilities; source excerpts confirm the chat/API/engine path and several workspace operations. Several view implementations and tool paths were not sampled, so their internal links are omitted.

Main entry points: [`src/App.tsx`](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/App.tsx) (App shell), [`src/types/agent.ts`](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/types/agent.ts) (Agent data types), [`src/components/AgentChatView.tsx`](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/AgentChatView.tsx) (Agent chat), [`src/components/HomeHubView.tsx`](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/HomeHubView.tsx) (Home hub)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Mobile app"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App shell<br/>[App.tsx]"]
  node_chat["Agent chat<br/>[AgentChatView.tsx]"]
  node_home["Home hub<br/>[HomeHubView.tsx]"]
  node_voice["Voice mode<br/>[VoiceModeModal.tsx]"]
  node_navigation["App navigation"]
  node_topbar["Top bar<br/>[TopBar.tsx]"]
end

subgraph group_server["Agent service"]
  node_api["HTTP API<br/>[server.ts]"]
  node_engine["Agent engine<br/>[agentEngine.ts]"]
  node_store[("Workspace state<br/>[agentEngine.ts]")]
end

subgraph group_domain["Product capabilities"]
  node_sih["SIH and ideas<br/>[SihIdeasView.tsx]"]
  node_events["Events and colleges"]
  node_workspace["Saved workspace"]
  node_quickdata["Skills and prompts<br/>[ideabridgeData.ts]"]
end

subgraph group_shared["Shared UI and types"]
  node_mascot["Radhima mascot<br/>[RadhimaMascot.tsx]"]
  node_types["Agent data types<br/>[agent.ts]"]
end

node_user(("User"))
node_genai["Google GenAI"]

node_user -->|"uses app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_home
node_app -->|"renders"| node_chat
node_app -->|"renders"| node_voice
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_topbar
node_app -->|"renders"| node_sih
node_app -->|"renders"| node_events
node_app -->|"renders"| node_workspace
node_app -->|"loads"| node_quickdata
node_home -->|"opens chat"| node_chat
node_voice -->|"submits transcript"| node_app
node_app -->|"fetches workspace and chat"| node_api
node_api -->|"reads and updates"| node_store
node_api -->|"runs agent turn"| node_engine
node_engine -.->|"uses workspace state"| node_store
node_engine -.->|"calls model"| node_genai
node_chat -->|"renders"| node_mascot
node_home -->|"renders"| node_mascot
node_voice -->|"renders"| node_mascot
node_chat -->|"uses contracts"| node_types
node_workspace -->|"uses contracts"| node_types
node_sih -->|"uses contracts"| node_types
node_events -->|"uses contracts"| node_types
node_quickdata -->|"uses contracts"| node_types

click node_entry "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/main.tsx"
click node_app "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/App.tsx"
click node_chat "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/AgentChatView.tsx"
click node_home "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/HomeHubView.tsx"
click node_voice "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/VoiceModeModal.tsx"
click node_navigation "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/MobileBottomNav.tsx"
click node_topbar "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/TopBar.tsx"
click node_sih "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/SihIdeasView.tsx"
click node_events "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/EventsCollegesView.tsx"
click node_workspace "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/SavedWorkspaceView.tsx"
click node_quickdata "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/data/ideabridgeData.ts"
click node_api "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/server.ts"
click node_engine "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/server/agentEngine.ts"
click node_store "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/server/agentEngine.ts"
click node_mascot "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/RadhimaMascot.tsx"
click node_types "https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/types/agent.ts"

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_entry,node_app,node_chat,node_home,node_voice,node_navigation,node_topbar,node_user toneBlue
class node_api,node_engine,node_store toneAmber
class node_sih,node_events,node_workspace,node_quickdata toneMint
class node_mascot,node_types toneRose
class node_genai toneIndigo
```

## Components

### Mobile app

- [React entry](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/App.tsx): `src/App.tsx`
- [Agent chat](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/AgentChatView.tsx): `src/components/AgentChatView.tsx`
- [Home hub](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/HomeHubView.tsx): `src/components/HomeHubView.tsx`
- [Voice mode](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/VoiceModeModal.tsx): `src/components/VoiceModeModal.tsx`
- [App navigation](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/MobileBottomNav.tsx): `src/components/MobileBottomNav.tsx`
- [Top bar](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/TopBar.tsx): `src/components/TopBar.tsx`

### Agent service

- [HTTP API](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/server.ts): `server.ts`
- [Agent engine](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/server/agentEngine.ts): `server/agentEngine.ts`
- [Workspace state](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/server/agentEngine.ts): `server/agentEngine.ts`

### Product capabilities

- [SIH and ideas](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/SihIdeasView.tsx): `src/components/SihIdeasView.tsx`
- [Events and colleges](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/EventsCollegesView.tsx): `src/components/EventsCollegesView.tsx`
- [Saved workspace](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/SavedWorkspaceView.tsx): `src/components/SavedWorkspaceView.tsx`
- [Skills and prompts](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/data/ideabridgeData.ts): `src/data/ideabridgeData.ts`

### Shared UI and types

- [Radhima mascot](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/components/RadhimaMascot.tsx): `src/components/RadhimaMascot.tsx`
- [Agent data types](https://github.com/tnesh833-eng/radhima-ideabridge-argent-/blob/main/src/types/agent.ts): `src/types/agent.ts`

### Other components

- **User**
- **Google GenAI**

## Connections

- User → React entry: uses app (evidence: `src/main.tsx`)
- React entry → App shell: renders (evidence: `src/main.tsx`)
- App shell → Home hub: renders (evidence: `src/App.tsx`)
- App shell → Agent chat: renders (evidence: `src/App.tsx`)
- App shell → Voice mode: renders (evidence: `src/App.tsx`)
- App shell → App navigation: renders (evidence: `src/App.tsx`)
- App shell → Top bar: renders (evidence: `src/App.tsx`)
- App shell → SIH and ideas: renders (evidence: `src/App.tsx`)
- App shell → Events and colleges: renders (evidence: `src/App.tsx`)
- App shell → Saved workspace: renders (evidence: `src/App.tsx`)
- App shell → Skills and prompts: loads (evidence: `src/App.tsx`)
- Home hub → Agent chat: opens chat (evidence: `src/components/HomeHubView.tsx`)
- Voice mode → App shell: submits transcript (evidence: `src/App.tsx`)
- App shell → HTTP API: fetches workspace and chat (evidence: `src/App.tsx`)
- HTTP API → Workspace state: reads and updates (evidence: `server.ts`)
- HTTP API → Agent engine: runs agent turn (evidence: `server.ts`)
- Agent engine → Workspace state: uses workspace state (evidence: `server/agentEngine.ts`)
- Agent engine → Google GenAI: calls model
- Agent chat → Radhima mascot: renders (evidence: `src/components/AgentChatView.tsx`)
- Home hub → Radhima mascot: renders (evidence: `src/components/HomeHubView.tsx`)
- Voice mode → Radhima mascot: renders (evidence: `src/components/VoiceModeModal.tsx`)
- Agent chat → Agent data types: uses contracts (evidence: `src/components/AgentChatView.tsx`)
- Saved workspace → Agent data types: uses contracts (evidence: `src/components/SavedWorkspaceView.tsx`)
- SIH and ideas → Agent data types: uses contracts (evidence: `src/components/SihIdeasView.tsx`)
- Events and colleges → Agent data types: uses contracts (evidence: `src/components/EventsCollegesView.tsx`)
- Skills and prompts → Agent data types: uses contracts (evidence: `src/data/ideabridgeData.ts`)
