How diyanet-bid/kuran works
This is a frontend Qur’an reading application. The principal workflow is browsing surahs or opening a page/surah, loading content through the API client and rendering verses; readers and bookmark management also use client-side Quran state. The README additionally describes audio, search, multiple translations/tafsir, personalization, and accessibility, but the supplied tree and excerpts do not establish implementations for several of these. Those capabilities are shown as documented but unverified. Evidence for unsampled route behavior is limited to the README and API client endpoint names.
Main entry points: quran-reader.tsx Page reader · quran-api.ts Quran data service · surah-list.tsx Surah browser · api-client.ts API client
Components 18
Reading experience
- Page reader
components/quran/quran-reader.tsx - Surah reader
components/quran/surah-reader.tsx - Surah browser
components/quran/surah-list.tsx - Reader navigation
components/quran/quran-navigation.tsx - Verse display
components/quran/verse-component.tsx - Page route
app/quran/page/[number]/page.tsx - Surah route
app/quran/surah/[id]/page.tsx - Surah list route
app/quran/surahs/page.tsx - Documented Quran capabilities
components/quran
Quran content
- Quran data service
services/quran-api.ts - API client
services/api-client.ts - Quran API routes
app/api/quran
User state
- Bookmarks and notes
app/quran/bookmarks/page.tsx - Quran state
stores/quran-store.ts
Application shell
- Language provider
components/language-provider.tsx - Site navigation
components/layout/header.tsx - Landing page
app/page.tsx
Other components
- Diyanet Quran API
Connections 13
- Page route → Page reader: renders
app/quran/page/[number]/page.tsx - Surah route → Surah reader: renders
app/quran/surah/[id]/page.tsx - Surah list route → Surah browser: renders
app/quran/surahs/page.tsx - Page reader → Quran data service: loads content
components/quran/quran-reader.tsx - Page reader → Quran state: uses state
components/quran/quran-reader.tsx - Page reader → Verse display: renders verses
components/quran/quran-reader.tsx - Surah browser → Quran data service: loads surahs
components/quran/surah-list.tsx - Bookmarks and notes → Quran state: reads and updates
app/quran/bookmarks/page.tsx - Quran data service → API client: requests data
services/quran-api.ts - API client → Quran API routes: fetches endpoints
services/api-client.ts - Quran API routes → Diyanet Quran API: gets Quran data
README.md - Documented Quran capabilities → Diyanet Quran API: documents audio and texts
README.md - Landing page → Site navigation: renders
app/page.tsx