How youssef-atef-20/quran-kareem works
Quran Kareem is a browser-based Quran reader. Users enter through the home page, browse or search the Surah list, then open a Surah to read verses and play its recitation. The reader also lets users change text size and save a verse position for later. Provider and hook internals expose Quran, settings, and reading-progress state to the interface. The main flow is supported by excerpts and the SOURCE INDEX; settings internals and some documented behavior were not sampled.
Main entry points: SurahPage.tsx Surah reader · hooks State hooks · App.tsx Route application · SurahList.tsx Surah list
Components 18
Reading interface
- Route application
src/App.tsx - Home page
src/pages/Home.tsx - Surah list
src/components/SurahList.tsx - Surah reader
src/pages/SurahPage.tsx
Quran content
- Quran provider
src/context/QuranProvider.tsx - Quran text
src/data/quran.json - Surah names
src/data/surahNames.ts - Quran types
src/types/quran.types.ts
Application state
- Quran context
src/context/QuranContext.ts - State hooks
src/hooks - Reading progress provider
src/context/LastReadProvider.tsx - Progress context
src/context/last-read-context.ts - Settings provider
src/context/SettingsProvider.tsx - Settings context
src/context/SettingsContext.tsx
External services
- Browser storage
- Recitation audio
- Vercel Analytics
Other components
- User
Connections 23
- User → Route application: opens
README.md - Route application → Home page: routes to
src/App.tsx - Route application → Surah list: routes to
src/App.tsx - Route application → Surah reader: routes to
src/App.tsx - Route application → Vercel Analytics: renders
src/App.tsx - User → Surah list: searches
src/components/SurahList.tsx - Surah list → Surah reader: links to
src/components/SurahList.tsx - Home page → Surah reader: resumes at
src/pages/Home.tsx - Surah list → State hooks: reads Quran state
src/components/SurahList.tsx - Surah list → Surah names: uses names
src/components/SurahList.tsx - Surah reader → State hooks: reads state
src/pages/SurahPage.tsx - Surah reader → Surah names: uses names
src/pages/SurahPage.tsx - Home page → State hooks: reads progress
src/pages/Home.tsx - Quran provider → Quran text: loads text
src/context/QuranProvider.tsx - Quran provider → Quran context: provides data
src/context/QuranProvider.tsx - Quran provider → Quran types: types data
src/context/QuranProvider.tsx - State hooks → Quran context: reads context
src/hooks/useQuran.ts - State hooks → Progress context: reads context
src/hooks/useLastRead.ts - State hooks → Settings context: reads context
src/hooks/useSettings.ts - Reading progress provider → Progress context: provides progress
src/context/LastReadProvider.tsx - Reading progress provider → Browser storage: reads and writes
src/context/LastReadProvider.tsx - Settings provider → Settings context: provides settings
src/context/SettingsProvider.tsx - Surah reader → Recitation audio: plays audio
src/pages/SurahPage.tsx