How 7urish/mushaf works
المصحف is an Arabic Quran-reading web app. Its main user journey starts at the surah index, where readers can search or choose a surah and continue into a verse-based reading view; audio playback, settings, bookmarks, and saved reading position support that journey. The repository also contains authentication, connector-backed app data, multiplayer, and preview-embed capabilities. The README documents the reading, index, and listening features; relationships for several additional subsystems are not shown in the sampled excerpts, so they are represented without speculative links.
Main entry points: home-view.tsx Surah index · reader-view.tsx Reader · audio.tsx Audio player · quran.ts Quran utilities
Components 22
Quran experience
- Reader
src/components/quran/reader-view.tsx - Surah index
src/components/quran/home-view.tsx - Audio player
src/components/quran/audio.tsx - Reader settings
src/components/quran/settings.tsx - Index route
src/routes/index.tsx - Reading route
src/routes/read/$surah.tsx - App root
src/routes/__root.tsx
Reading services
- Quran utilities
src/lib/quran.ts - Quran metadata
src/data/meta.ts - Reader preferences
src/lib/store.ts - Quran text
src/data/text.json
Identity and data
- Auth provider
src/lib/auth/provider.tsx - Auth server
src/lib/auth/server.ts - Auth database
src/lib/db.ts - Connector client
src/lib/app-data/client.server.ts
App integrations
- Peer multiplayer
src/lib/multiplayer/p2p.ts - Preview bridge mount
src/components/preview-host-bridge.tsx - Preview bridge
src/lib/preview-host-bridge.ts - PWA middleware
server/middleware/grok-pwa.ts
Other components
- Reader
- Audio CDN
- Preview host
Connections 20
- Reader → Index route: opens
src/routes/index.tsx - Index route → Surah index: renders
src/routes/index.tsx - Surah index → Reading route: navigates
src/components/quran/home-view.tsx - Reading route → Reader: renders
src/routes/read/$surah.tsx - Surah index → Quran utilities: searches and indexes
src/components/quran/home-view.tsx - Reader → Quran utilities: locates verses
src/components/quran/reader-view.tsx - Quran utilities → Quran metadata: reads
src/lib/quran.ts - Surah index → Audio player: renders player
src/components/quran/home-view.tsx - Reader → Audio player: renders controls
src/components/quran/reader-view.tsx - Surah index → Reader settings: opens
src/components/quran/home-view.tsx - Reader → Reader settings: opens
src/components/quran/reader-view.tsx - Surah index → Reader preferences: reads preferences
src/components/quran/home-view.tsx - Reader → Reader preferences: reads preferences
src/components/quran/reader-view.tsx - Audio player → Reader preferences: reads playback settings
src/components/quran/audio.tsx - App root → Audio player: provides audio context
src/routes/__root.tsx - App root → Auth provider: wraps routes
src/routes/__root.tsx - Auth server → Auth database: initializes and uses
src/lib/auth/server.ts - Audio player → Audio CDN: requests audio
- Preview bridge mount → Preview bridge: installs bridge
src/components/preview-host-bridge.tsx - Preview bridge → Preview host: exchanges messages
src/lib/preview-host-bridge.ts