PWA · Product · AI (planned) In development
Muqri
A free, offline-first Quran reading app with two riwayat — Hafs and Warsh.
01 — Overview
Muqri is a free Quran reading application, designed first for reading well: clean mushaf-style pages, a text you can trust, and two canonical transmissions (riwayat) — Hafs and Warsh — treated as equals, with their differences shown word by word.
02 — Problem and objectives
Most Quran apps treat one riwaya as the default and the others as an afterthought. Yet the two differ in real ways: word variants, and even verse numbering — Hafs 2:132 is Warsh 2:131. A reader who follows Warsh rarely gets an accurate text. And AI features in this space are often ungrounded: they answer from nowhere in particular.
The objectives:
- An accurate text for both riwayat, from verified sources.
- A reading experience that stays out of the way: pages, bookmarks, audio follow-along.
- AI that, when it comes, speaks only from cited sources.
03 — My role
Creator and sole developer: product direction, the data pipeline, the API, the web application and deployment.
04 — Architecture
- A corpus pipeline loads the sources into a database through an idempotent command-line tool, and verifies them against known facts.
- A FastAPI service exposes the content through a contract-first API: surahs, pages, verses with their word-level variants, translations, commentary and audio.
- A React and TypeScript web app renders the mushaf and works as an installable PWA. Server data is loaded through query hooks; bookmarks and reading settings stay on the device.
05 — Engineering decisions
A data pipeline that checks itself
The corpus — Hafs (6,236 verses), Warsh (6,214 verses), a translation and a commentary — is loaded by a repeatable command and validated by automated cross-checks against known facts. Verse counts are compared with what the tradition records for each riwaya. A defective source file fails the check instead of reaching a reader.
Two riwayat in one model
Verses are keyed per riwaya from the start, and differences are classified at the word level. Switching between Hafs and Warsh takes one tap, and the reader sees the variants where they occur — not an option bolted on afterwards.
The API before the interface
The HTTP contract was specified and tested before any screen existed. Every endpoint has a defined shape, which made the reader — and the features that followed — consumers of a stable API, rather than the other way round.
AI that is grounded, or absent
The rule for AI in Muqri is simple: answer only from cited sources — the Quranic text, its commentary and the hadith collections. Recitation correction, memorisation follow-along, hybrid search and a cited assistant are designed around that rule. They are planned, not yet built, and they will not ship until they meet it.
06 — What works today, what is planned
| Works today | Planned |
|---|---|
| Corpus pipeline with verification | Recitation correction (speech recognition and pronunciation assessment) |
| Full text of the Hafs and Warsh riwayat | Memorisation follow-along |
| Word-level variant display | Hybrid search |
| Riwaya switch | Cited assistant |
| Translation (Saheeh International) | Public release, after source-licensing checks |
| Per-verse commentary (Ibn Kathir, English) | — |
| Mushaf-style page rendering | — |
| Local bookmarks | — |
| Audio follow-along, ayah by ayah | — |
| Keyboard recitation shortcuts on desktop | — |
| Prayer times and qibla | — |
| Multi-language interface | — |
| Installable PWA | — |
07 — Status
In development, not yet public. The reader works end to end with both riwayat. The public release waits on source-licensing checks.
Technologies
- Python
- FastAPI
- PostgreSQL
- React
- TypeScript
- Tailwind CSS
- Docker