REST API v1
Stable `/api/v1/*` contracts for surahs, ayahs, search, divisions, and metadata in local or self-hosted deployments.
Sharded JSON source, versioned API contracts, verified npm SDK, and reproducible database exports for production apps, docs, and research tooling. The public hosted site is documentation-first right now; run the API locally or on your own hosting.
Stable `/api/v1/*` contracts for surahs, ayahs, search, divisions, and metadata in local or self-hosted deployments.
Flexible query layer for multi-entity reads with GET debug support and POST app usage.
ESM npm package with typed methods for REST, GraphQL, metadata, and research refs.
SQLite and PostgreSQL artifacts generated from committed JSON source of truth.
npm install @faha1999/al-quran-database
import { QuranDevSDK } from '@faha1999/al-quran-database';
const quran = new QuranDevSDK({ baseUrl: 'http://localhost:3000' });
const data = await quran.getSurah(1, 'en.sahih');query GetMetaAndAyah($id: Int!) {
meta {
dataset {
counts {
ayahs
}
}
}
ayah(id: $id, includeWords: true) {
text
knowledge {
themes
}
}
}Built around `v1` contracts, cache headers, strict TypeScript, and deterministic JSON to SQL export pipeline.