Offline SDK (npm)
getSurah(), getAyah(), searchAyahs() work immediately after npm install — no server, no network call. 4 editions bundled.
Complete Quran dataset with TypeScript SDK — works offline with no server. Includes sharded JSON source, versioned REST + GraphQL API, 134 translations, word-by-word data, scholarly knowledge base, and SQL exports.
getSurah(), getAyah(), searchAyahs() work immediately after npm install — no server, no network call. 4 editions bundled.
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.
Full server-based SDK with typed methods for REST, GraphQL, 134 editions, 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.