How akg418/quraan works
قرآني is a Quran reader for the web and Android. Readers navigate printed mushaf pages, then use search, tafsir and meanings, recitation, or memorization tools; the frontend requests Quran and study data from a Go API. The API also serves offline inside the Android app. Browser-local stores keep reader settings and personal study data. The README documents major capabilities and API roles; sampled frontend excerpts show page loading, search requests, and app routing, but most backend route-to-search calls and several UI implementations were not sampled, so those links rely on README evidence.
Main entry points: MushafPage.tsx Page rendering · app.go Go API routes · App.tsx Quran reader · Book.tsx Book navigation
Components 28
Reading experience
- Quran reader
frontend/src/App.tsx - Page rendering
frontend/src/components/MushafPage.tsx - Book navigation
frontend/src/components/Book.tsx - Scroll reading
frontend/src/components/ScrollView.tsx - Page data client
frontend/src/api.ts
Study tools
- Quran search
frontend/src/components/Search.tsx - Page find
frontend/src/components/FindBar.tsx - Tafsir panel
frontend/src/components/TafsirPanel.tsx - Meanings and tafsir state
frontend/src/meanings.ts - Similar verses
frontend/src/components/Similar.tsx - Memorization drills
frontend/src/components/Hifz.tsx - Next-verse drill
frontend/src/components/Recite.tsx - Recitation queue
frontend/src/player.ts
API and search
- Go API routes
backend/app/app.go - Search index
backend/search/index.go - Search and counts
backend/search/query.go - Verse similarity engine
backend/search/similar.go
Local state and offline
- Memorization schedule
frontend/src/hifz.ts - Bookmarks and highlights
frontend/src/marks.ts - Reader notes
frontend/src/notes.ts - Reader settings
frontend/src/settings.ts
App platform
- Offline content
frontend/src/offline.ts - Offline downloads
frontend/src/components/Downloads.tsx - Android WebView
android/app/src/main/java/app/quraan/MainActivity.java
Other components
- Reader
- Quran.com tafsir
- Word audio CDN
- EveryAyah audio
Connections 29
- Reader → Quran reader: uses
- Quran reader → Book navigation: renders
frontend/src/App.tsx - Quran reader → Quran search: routes to
frontend/src/App.tsx - Quran reader → Memorization drills: routes to
frontend/src/App.tsx - Quran reader → Offline downloads: routes to
frontend/src/App.tsx - Book navigation → Page rendering: renders
frontend/src/components/Book.tsx - Book navigation → Page data client: loads pages
frontend/src/components/Book.tsx - Scroll reading → Page rendering: renders
- Quran search → Go API routes: requests search
frontend/src/components/Search.tsx - Page find → Go API routes: requests find
- Go API routes → Search and counts: dispatches queries
- Search and counts → Search index: queries index
- Go API routes → Verse similarity engine: serves similarity
- Tafsir panel → Meanings and tafsir state: reads content
frontend/src/components/TafsirPanel.tsx - Meanings and tafsir state → Go API routes: requests asbab
frontend/src/meanings.ts - Meanings and tafsir state → Quran.com tafsir: fetches tafsir
- Similar verses → Go API routes: requests verses
- Memorization drills → Memorization schedule: uses schedule
frontend/src/components/Hifz.tsx - Next-verse drill → Go API routes: requests verses
- Page rendering → Bookmarks and highlights: reads marks
frontend/src/components/MushafPage.tsx - Page rendering → Reader notes: reads notes
frontend/src/components/MushafPage.tsx - Page rendering → Memorization schedule: reads drill state
frontend/src/components/MushafPage.tsx - Page rendering → Recitation queue: reads playback
frontend/src/components/MushafPage.tsx - Page rendering → Reader settings: reads settings
frontend/src/components/MushafPage.tsx - Recitation queue → EveryAyah audio: streams verses
- Offline downloads → Offline content: manages downloads
frontend/src/components/Downloads.tsx - Android WebView → Go API routes: hosts offline API
- Android WebView → Offline downloads: hosts WebView
- Page rendering → Word audio CDN: plays word audio