尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Connecting Quran Next JS version
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Quran reader with Urdu and English translations, several tafseers per ayah, word grammar, word-by-word meanings, tajweed colours, Indo-Pak script, recitation player, Mushaf mode, search, surah quizzes and video lectures.
Built with Next.js 16 (App Router), React 19 and Tailwind CSS v4.
npm install
npm run dev # http://localhost:3000
npm run build && npm start # production
Node 20.9 or newer is needed.
| Folder | What is in it |
|---|---|
app/ | Pages (one folder per URL) and API routes in app/api/ |
components/ | React components. AppProvider holds settings, bookmarks and panels; PlayerProvider holds the audio player |
lib/ | Data and helpers. quran.ts talks to the outside APIs (server only, cached for 24 hours); views.ts builds what each page shows |
tests/ | Offline mock API and an end-to-end test |
| URL | Page |
|---|---|
/, /juz | Surah and Juz lists |
/surah/2, /surah/2/255 | Reader (the second number jumps to an ayah) |
/juz/30 | Juz reader |
/mushaf/1 … /mushaf/604 | Mushaf, page by page |
/tafseer/2/255, /videos/2/255 | Tafseer page, video lectures tab |
/search?q=mercy&scope=en | Search (scope = ar, ur or en) |
/quiz, /quiz/2/1 | Quiz list, quiz (surah 2, part 1) |
/bookmarks | Bookmarks |
Old links from the single-file site (#/surah/2/255) still work; they redirect.
Settings are saved in the browser (localStorage) and copied to a small cookie
(noor_settings), so the server can render the chosen translations, script, tajweed and
word-by-word meanings straight away. Bookmarks and "continue reading" stay in the browser
for now. Phase 2 (login) will move them to the user's account.
| Route | Returns |
|---|---|
/api/editions | Translation and tafseer lists |
/api/tafsir/{slug}/{s}/{a} | Tafseer text for one ayah |
/api/word/{s}/{a}?w= | Grammar and meaning of one word |
/api/search?q=&scope= | Search results |
/api/quiz/{s} | Data for building a surah quiz |
Each source URL can be changed with an environment variable; see .env.example.
npm run build
./tests/start-test-server.sh # mock API on :4010, app on :3100
npx playwright install chromium # first time only
node tests/e2e.mjs # about 60 feature checks
node tests/visual.mjs # screenshots of every screen (desktop + phone, light + dark) in /tmp/vis
The mock API uses real Arabic, Urdu and English text for Surah Al-Fatiha (1) and Al-Ikhlas (112), so fonts and vowel marks can be checked by eye. Other surahs use placeholder words.