# mutukulamahesh/vedasaarathi architecture

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

- Interactive diagram: https://gitdiagram.com/mutukulamahesh/vedasaarathi
- Repository: https://github.com/mutukulamahesh/vedasaarathi

## Overview

VedaSaarathi is a bilingual Hindu Panchangam and puja companion. The main workflow is to save a location, view location-based daily timings and calendar observances, then prepare a Sankalpam or follow the available Vinayaka Chavithi puja guide. The graph also preserves search, offline use, and reviewer/content-authority capabilities. Edges are limited to README statements and source-index references or excerpts; unsampled implementation details are not inferred.

Main entry points: [`app/page.tsx`](https://github.com/mutukulamahesh/vedasaarathi/blob/main/app/page.tsx) (App coordinator), [`components/platform/calendar-screen.tsx`](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/calendar-screen.tsx) (Calendar screen), [`components/platform/location-screen.tsx`](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/location-screen.tsx) (Location screen), [`lib/search/index.ts`](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/search/index.ts) (Local search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App experience"]
  node_app["App coordinator<br/>[page.tsx]"]
  node_home["Home screen<br/>[home-screen.tsx]"]
  node_calendar_ui["Calendar screen"]
  node_search["Local search<br/>[index.ts]"]
  node_entry["Bilingual entry pages<br/>[entry-page.tsx]"]
end

subgraph group_calendar["Panchangam and location"]
  node_location_ui["Location screen"]
  node_location["Location model<br/>[model.ts]"]
  node_panchanga_api["Panchangam API<br/>[index.ts]"]
  node_engine["Panchangam engine<br/>[engine.ts]"]
  node_timings["Daily timings<br/>[day-timings.ts]"]
  node_festival_rules["Festival rules<br/>[festival-rules.ts]"]
  node_festival_schedules["Festival schedules"]
end

subgraph group_ritual["Puja and Sankalpam"]
  node_puja_catalogue["Puja catalogue<br/>[catalogue.ts]"]
  node_puja_service["Vinayaka puja service<br/>[service.ts]"]
  node_puja_ui["Guided puja screens<br/>[puja-screen.tsx]"]
  node_sankalpam_ui["Sankalpam setup"]
  node_sankalpam["Sankalpam generator<br/>[generator.ts]"]
  node_participants["Participant details<br/>[participants.ts]"]
end

subgraph group_trust["Content and review"]
  node_review_status["Review authority labels<br/>[review-status.ts]"]
  node_provenance["Content provenance<br/>[provenance.ts]"]
  node_review_ui["Candidate review"]
  node_review_store[("Reviewer decisions")]
end

subgraph group_local["Local capabilities"]
  node_offline["Offline downloads"]
  node_offline_data["Offline download support<br/>[download.ts]"]
  node_calendar_cache[("Calendar cache<br/>[calendar-cache.ts]")]
  node_speech["Speech voices<br/>[voices.ts]"]
end

node_family(("Family user"))

node_family -->|"sets location"| node_location_ui
node_family -->|"views timings"| node_home
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_location_ui
node_app -->|"routes to"| node_calendar_ui
node_app -->|"routes to"| node_search
node_app -->|"routes to"| node_puja_ui
node_app -->|"routes to"| node_sankalpam_ui
node_app -->|"renders"| node_offline
node_entry -->|"opens with topic"| node_app
node_location_ui -->|"uses model"| node_location
node_calendar_ui -->|"reads location"| node_location
node_calendar_ui -->|"requests calendar data"| node_panchanga_api
node_panchanga_api -->|"calls calculations"| node_engine
node_engine -->|"resolves schedules"| node_festival_schedules
node_calendar_ui -->|"uses timings"| node_timings
node_calendar_ui -->|"uses festival rules"| node_festival_rules
node_calendar_ui -->|"uses cache"| node_calendar_cache
node_search -->|"searches observances"| node_festival_rules
node_puja_ui -.->|"loads puja"| node_puja_catalogue
node_puja_catalogue -->|"provides definition"| node_puja_service
node_puja_service -->|"marks provenance"| node_provenance
node_sankalpam_ui -.->|"requests statement"| node_sankalpam
node_sankalpam -->|"uses participant data"| node_participants
node_review_ui -->|"records decisions"| node_review_store
node_provenance -->|"uses authority labels"| node_review_status
node_offline -.->|"uses download support"| node_offline_data
node_speech -.->|"supports spoken guidance"| node_family

click node_app "https://github.com/mutukulamahesh/vedasaarathi/blob/main/app/page.tsx"
click node_home "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/home-screen.tsx"
click node_calendar_ui "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/calendar-screen.tsx"
click node_search "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/search/index.ts"
click node_entry "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/entry/entry-page.tsx"
click node_location_ui "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/location-screen.tsx"
click node_location "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/location/model.ts"
click node_panchanga_api "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/index.ts"
click node_engine "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/engine.ts"
click node_timings "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/day-timings.ts"
click node_festival_rules "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/festival-rules.ts"
click node_festival_schedules "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/festival-schedules.ts"
click node_puja_catalogue "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/puja/catalogue.ts"
click node_puja_service "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/pujas/vinayaka/service.ts"
click node_puja_ui "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/puja-screen.tsx"
click node_sankalpam_ui "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/sankalpam-setup-screen.tsx"
click node_sankalpam "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/sankalpam/generator.ts"
click node_participants "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/content/participants.ts"
click node_review_status "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/content/review-status.ts"
click node_provenance "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/content/provenance.ts"
click node_review_ui "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/candidate-review-screen.tsx"
click node_review_store "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/storage/reviewer-decisions.ts"
click node_offline "https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/offline-download.tsx"
click node_offline_data "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/offline/download.ts"
click node_calendar_cache "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/storage/calendar-cache.ts"
click node_speech "https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/speech/voices.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_app,node_home,node_calendar_ui,node_search,node_entry,node_family toneBlue
class node_location_ui,node_location,node_panchanga_api,node_engine,node_timings,node_festival_rules,node_festival_schedules toneAmber
class node_puja_catalogue,node_puja_service,node_puja_ui,node_sankalpam_ui,node_sankalpam,node_participants toneMint
class node_review_status,node_provenance,node_review_ui,node_review_store toneRose
class node_offline,node_offline_data,node_calendar_cache,node_speech toneIndigo
```

## Components

### App experience

- [App coordinator](https://github.com/mutukulamahesh/vedasaarathi/blob/main/app/page.tsx): `app/page.tsx`
- [Home screen](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/home-screen.tsx): `components/platform/home-screen.tsx`
- [Calendar screen](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/calendar-screen.tsx): `components/platform/calendar-screen.tsx`
- [Local search](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/search/index.ts): `lib/search/index.ts`
- [Bilingual entry pages](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/entry/entry-page.tsx): `components/entry/entry-page.tsx`

### Panchangam and location

- [Location screen](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/location-screen.tsx): `components/platform/location-screen.tsx`
- [Location model](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/location/model.ts): `lib/location/model.ts`
- [Panchangam API](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/index.ts): `lib/panchanga/index.ts`
- [Panchangam engine](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/engine.ts): `lib/panchanga/engine.ts`
- [Daily timings](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/day-timings.ts): `lib/panchanga/day-timings.ts`
- [Festival rules](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/festival-rules.ts): `lib/panchanga/festival-rules.ts`
- [Festival schedules](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/panchanga/festival-schedules.ts): `lib/panchanga/festival-schedules.ts`

### Puja and Sankalpam

- [Puja catalogue](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/puja/catalogue.ts): `lib/puja/catalogue.ts`
- [Vinayaka puja service](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/pujas/vinayaka/service.ts): `lib/pujas/vinayaka/service.ts`
- [Guided puja screens](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/puja-screen.tsx): `components/platform/puja-screen.tsx`
- [Sankalpam setup](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/sankalpam-setup-screen.tsx): `components/platform/sankalpam-setup-screen.tsx`
- [Sankalpam generator](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/sankalpam/generator.ts): `lib/sankalpam/generator.ts`
- [Participant details](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/content/participants.ts): `lib/content/participants.ts`

### Content and review

- [Review authority labels](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/content/review-status.ts): `lib/content/review-status.ts`
- [Content provenance](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/content/provenance.ts): `lib/content/provenance.ts`
- [Candidate review](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/candidate-review-screen.tsx): `components/platform/candidate-review-screen.tsx`
- [Reviewer decisions](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/storage/reviewer-decisions.ts): `lib/storage/reviewer-decisions.ts`

### Local capabilities

- [Offline downloads](https://github.com/mutukulamahesh/vedasaarathi/blob/main/components/platform/offline-download.tsx): `components/platform/offline-download.tsx`
- [Offline download support](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/offline/download.ts): `lib/offline/download.ts`
- [Calendar cache](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/storage/calendar-cache.ts): `lib/storage/calendar-cache.ts`
- [Speech voices](https://github.com/mutukulamahesh/vedasaarathi/blob/main/lib/speech/voices.ts): `lib/speech/voices.ts`

### Other components

- **Family user**

## Connections

- Family user → Location screen: sets location (evidence: `README.md`)
- Family user → Home screen: views timings (evidence: `README.md`)
- App coordinator → Home screen: routes to (evidence: `app/page.tsx`)
- App coordinator → Location screen: routes to (evidence: `app/page.tsx`)
- App coordinator → Calendar screen: routes to (evidence: `app/page.tsx`)
- App coordinator → Local search: routes to (evidence: `app/page.tsx`)
- App coordinator → Guided puja screens: routes to (evidence: `app/page.tsx`)
- App coordinator → Sankalpam setup: routes to (evidence: `app/page.tsx`)
- App coordinator → Offline downloads: renders (evidence: `app/page.tsx`)
- Bilingual entry pages → App coordinator: opens with topic (evidence: `components/entry/entry-page.tsx`)
- Location screen → Location model: uses model (evidence: `app/page.tsx`)
- Calendar screen → Location model: reads location (evidence: `components/platform/calendar-screen.tsx`)
- Calendar screen → Panchangam API: requests calendar data (evidence: `components/platform/calendar-screen.tsx`)
- Panchangam API → Panchangam engine: calls calculations (evidence: `lib/panchanga/index.ts`)
- Panchangam engine → Festival schedules: resolves schedules (evidence: `lib/panchanga/engine.ts`)
- Calendar screen → Daily timings: uses timings (evidence: `components/platform/calendar-screen.tsx`)
- Calendar screen → Festival rules: uses festival rules (evidence: `components/platform/calendar-screen.tsx`)
- Calendar screen → Calendar cache: uses cache (evidence: `components/platform/calendar-screen.tsx`)
- Local search → Festival rules: searches observances (evidence: `lib/search/index.ts`)
- Guided puja screens → Puja catalogue: loads puja
- Puja catalogue → Vinayaka puja service: provides definition (evidence: `lib/pujas/vinayaka/service.ts`)
- Vinayaka puja service → Content provenance: marks provenance (evidence: `lib/pujas/vinayaka/service.ts`)
- Sankalpam setup → Sankalpam generator: requests statement
- Sankalpam generator → Participant details: uses participant data (evidence: `lib/sankalpam/generator.ts`)
- Candidate review → Reviewer decisions: records decisions (evidence: `components/platform/candidate-review-screen.tsx`)
- Content provenance → Review authority labels: uses authority labels (evidence: `lib/content/provenance.ts`)
- Offline downloads → Offline download support: uses download support
- Speech voices → Family user: supports spoken guidance
