How bhavykhatri/dharmicdata works
Dharmic Data combines a structured sacred-text corpus with a web reader. The principal user journey is discovering a text, opening a section, and reading its verses; the app also offers search, bookmarks, reading progress, and verse sharing. The README documents the corpus’s major text collections, while the sampled web code confirms home-page widgets, local reading state, and transliteration-assisted search. Some routes and data-loading details were not excerpted, so their connections are omitted rather than inferred.
Main entry points: [unit]/page.tsx Section Reader · home-widgets.tsx Daily and Progress · app/page.tsx Home Dashboard · search-client.tsx Text Search
Components 20
Reader Experience
- Reader
web/app/layout.tsx - Home Dashboard
web/app/page.tsx - Text Library
web/app/library/page.tsx - Text Sections
web/app/read/[text]/page.tsx - Section Reader
web/app/read/[text]/[unit]/page.tsx - Daily and Progress
web/components/home-widgets.tsx
Sacred Text Corpus
- Text Catalog
web/lib/texts.ts - Bhagavad Gita
SrimadBhagvadGita - Mahabharata
Mahabharata - Valmiki Ramayana
ValmikiRamayana - Ramcharitmanas
Ramcharitmanas - Vedas
AtharvaVeda - Other Text Data
Rigveda
Reader State
- Local Reading State
web/lib/store.ts - Saved Verses
web/app/bookmarks/page.tsx
Search and Sharing
- Text Search
web/components/search-client.tsx - Query Variants
web/lib/query.ts - Verse Image Sharing
web/components/share-image.tsx - Verse Actions
web/components/verse-actions.tsx
Other components
- Reader
Connections 20
- Home Dashboard → Text Catalog: reads catalog
web/app/page.tsx - Home Dashboard → Daily and Progress: renders widgets
web/app/page.tsx - Daily and Progress → Local Reading State: reads progress
web/components/home-widgets.tsx - Daily and Progress → Text Catalog: looks up text
web/components/home-widgets.tsx - Daily and Progress → Verse Actions: renders sharing
web/components/home-widgets.tsx - Daily and Progress → Verse Image Sharing: renders image action
web/components/home-widgets.tsx - Saved Verses → Local Reading State: reads and updates
web/app/bookmarks/page.tsx - Text Search → Query Variants: expands queries
web/components/search-client.tsx - Text Search → Text Catalog: uses text filters
web/components/search-client.tsx - Reader → Home Dashboard: opens
- Reader → Text Library: chooses text
- Reader → Text Search: searches texts
- Text Library → Text Sections: opens text
- Text Sections → Section Reader: opens section
- Section Reader → Bhagavad Gita: reads verses
- Section Reader → Mahabharata: reads verses
- Section Reader → Valmiki Ramayana: reads verses
- Section Reader → Ramcharitmanas: reads verses
- Section Reader → Vedas: reads verses
- Section Reader → Other Text Data: reads verses