How himanshumohanty-git24/gitaviswa works
GitaViśva is an offline-capable Bhagavad Gita study and reflection application. Users enter through the home view, then explore the knowledge graph, trace verse relationships, read verses and commentaries, listen to recitations, ask graph-grounded questions, or keep private reflections. The central data layer loads scripture and graph data, builds graph structures and search indexes, and supports both browser retrieval and an optional server-backed LLM path. Several view implementations are unsampled; their capabilities are documented in the README, so those branches are shown without speculative internal call edges.
Main entry points: page.tsx Home and navigation · engine.ts Graph retrieval · loader.ts Scripture data loader · route.ts Chat API
Components 22
Study experience
- Home and navigation
src/app/page.tsx - 3D graph explore
src/components/graph/CosmicGraph3D.tsx - Lineage view
src/components/graph/LineageGraph2D.tsx - Path finder
src/lib/graph/pathfinder.ts - Verse reader
src/components/reader/ChapterReader.tsx - Commentary perspectives
src/components/reader/Perspectives.tsx - Recitation player
src/components/reader/AudioDock.tsx - Home graph preview
src/components/home/GraphPreview.tsx - Ask chatbot
src/components/chat/GraphRagChatbot.tsx
Knowledge and retrieval
- Scripture data loader
src/lib/data/loader.ts - Graph structures
src/lib/graph/graphStore.ts - App graph state
src/lib/store/useGitaStore.ts - Hybrid search index
src/lib/graphrag/search.ts - Graph retrieval
src/lib/graphrag/engine.ts
Personal reflection
- Personal mind map
src/components/manas/PersonalMindMapper.tsx - Thought storage
src/lib/store/personalStore.ts - Draft storage
src/lib/store/draftStore.ts
Optional AI services
- BYOK settings
src/lib/store/settingsStore.ts - Chat API
src/app/api/chat/route.ts - LLM client
src/lib/llm/client.ts - LLM providers
src/lib/llm/providers.ts
Other components
- LLM service
Connections 32
- Home and navigation → 3D graph explore: opens
src/app/page.tsx - Home and navigation → Lineage view: opens
src/app/page.tsx - Home and navigation → Verse reader: opens
src/app/page.tsx - Home and navigation → Recitation player: opens
src/app/page.tsx - Home and navigation → Ask chatbot: opens
src/app/page.tsx - Home and navigation → Personal mind map: opens
src/app/page.tsx - Home and navigation → Home graph preview: renders
src/app/page.tsx - 3D graph explore → App graph state: reads state
src/components/graph/CosmicGraph3D.tsx - 3D graph explore → Graph structures: uses graph
src/components/graph/CosmicGraph3D.tsx - 3D graph explore → Scripture data loader: loads data
src/components/graph/CosmicGraph3D.tsx - Lineage view → Path finder: shows paths
README.md - Verse reader → Scripture data loader: loads verses
README.md - Commentary perspectives → Scripture data loader: loads commentary
src/components/reader/Perspectives.tsx - Home graph preview → Scripture data loader: loads graph
src/components/home/GraphPreview.tsx - Home graph preview → Graph structures: uses graph
src/components/home/GraphPreview.tsx - App graph state → Scripture data loader: loads scripture
src/lib/store/useGitaStore.ts - App graph state → Graph structures: builds graphs
src/lib/store/useGitaStore.ts - App graph state → Hybrid search index: builds index
src/lib/store/useGitaStore.ts - Ask chatbot → Graph retrieval: retrieves context
src/components/chat/GraphRagChatbot.tsx - Ask chatbot → Hybrid search index: embeds query
src/components/chat/GraphRagChatbot.tsx - Graph retrieval → Hybrid search index: searches index
src/lib/graphrag/engine.ts - Graph retrieval → Graph structures: traverses graph
src/lib/graphrag/engine.ts - Personal mind map → Thought storage: loads thoughts
src/components/manas/PersonalMindMapper.tsx - Personal mind map → Draft storage: uses drafts
src/components/manas/PersonalMindMapper.tsx - Personal mind map → Graph retrieval: suggests links
src/components/manas/PersonalMindMapper.tsx - Chat API → Graph retrieval: retrieves context
src/app/api/chat/route.ts - Chat API → LLM client: opens stream
src/app/api/chat/route.ts - Chat API → LLM providers: resolves provider
src/app/api/chat/route.ts - LLM client → LLM providers: uses registry
src/lib/llm/client.ts - LLM client → LLM service: sends requests
src/lib/llm/client.ts - BYOK settings → LLM providers: selects provider
src/lib/store/settingsStore.ts - Chat API → LLM service: generates answer