Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

quran-meta

quran-center3.3kMIT6.0.12TypeScript support: included

Library with meta data and functionality related to Holy Quran

quran, koran, metadata, surah, juz

readme

Quran Meta

Static Badge Static Badge

GitHub License GitHub Repo stars GitHub package.json version

NPM Version npms.io npms.io npms.io npms.io NPM Downloads

NPM Type Definitions GitHub top language Quality Gate Status Static Badge

GitHub repo size GitHub code size in bytes npm bundle size npm bundle size

Welcome to Quran Meta Project - the most comprehensive Quran metadata library!

This project is to help with Quran related meta queries.

Answering Questions like:

  • How many ayahs in given surah of Hafs Riwaya or Warsh or Qalun (getAyahCountinSurah)
  • What is the juz of given ayah (getAyahMeta)?
  • What is the next ayah after given ayah (nextAyah)?
  • Is given ayah
    • a sajdah ayah (getAyahMeta)?
    • beginnning of a page (isAyahPageFirst)?
    • beginnning of a juz (isAyahJuzFirst)?
  • Find
    • next or previous ayah (nextAyah/prevAyah)
    • juz findJuz and findJuzByAyahId
    • maqra/rub-el-hizb findRubAlHizb, getRubAlHizbMetaByAyahId
    • page findPage by surah/ayah
    • AyahId of a given surah/ayah (findAyahIdBySurah)
    • find range around ayah (findRangeAroundAyah)
  • Get meta data for
    • ayah (getAyahMeta)
    • surah (getSurahInfo, getSurahInfo)
    • page (getPageMeta)
    • juz (findJuzMetaBySurah)
    • maqra/rub-el-hizb (getRubAlHizbMeta, getRubAlHizbMetaByAyahId)
  • Validates ayah/surah id (checkValidAyahId,checkValidSurah, checkValidSurahAyah, etc)
  • Typescript type guards (isValidAyahId, isValidAyahNo, isValidSurah, isValidSurahAyah, isValidJuz, isValidHizb, isValidRubAlHizb, isValidPage)
  • converts [surah, ayah] to ayahId and vice-verse ( findSurahByAyahId and findAyahIdBySurah)
  • Checks and turns strings of type "x:y" or "x:y1-y2" to surah/ayah range (ayaStringSplitter).
  • Checks and parses strings of type "x" to Surah (surahStringParser).

Features

  • Supports multiple riwayas (Hafs, Qalun, Warsh are ready. Douri, Shuba, Sousi are on the way) with riwaya-specific data and features.
  • Type-safe riwaya-specific methods (e.g., Qalun's Thumun al-Hizb).
  • Custom riwaya instances for advanced use cases. If you want to use quran-meta library with your own data (e.g another riwaya or different pagination than we support) just create your own instance of QuranRiwaya with your data.
  • Fully documented with examples.
  • 100% unit test covered with data correctness validation against multiple data sources.
  • Fully typed with Typescript types and type guards.
  • Zero dependencies, lightweight and fast.
  • Works in both browser and Node.js environments.
  • Compatible with modern JavaScript and TypeScript projects.
  • Supports modern module systems (ESM, CommonJS, IIFE).
  • Open source and community driven.
  • Easy to use API with both functional and class-based approaches.
  • Tree-shakeable riwaya-specific imports for optimal bundle size.
  • Supports various build systems and bundlers.
  • Comprehensive error handling and input validation.
  • Suitable for a wide range of Quran-related applications.
  • Modular and extensible architecture.
  • Clear and consistent naming conventions.
  • Rich set of utility functions for Quranic metadata.
  • Easy integration with other Quranic libraries and tools.
  • Actively maintained and updated.
  • Actively seeks community feedback and contributions.

Upcoming Features

  • Supports multiple mushaf page numbering systems (planned for future updates).
  • More riwayas and recitations (planned for future updates).
  • Enhanced performance optimizations (planned for future updates).
  • Additional utility functions (planned for future updates).
  • Community contributions and plugins (Submissions welcome).
  • Support for additional languages and locales .
  • Improved documentation and tutorials.
  • Interactive online tools and demos (please, submit in issues).
  • More data sources for cross-validation (please, suggest in discussions).

Future Roadmap

  • Integration with Quran text rendering libraries.
  • Collaboration with Quranic studies platforms.
  • Integration with Quranic search engines.
  • Advanced analytics and reporting features.
  • Community-driven feature requests and voting.

APi Reference Documentation

See here for API documentation

Playground

See in action and try it without installing anything:

  • Static Badge - interactive playground for Quran-Meta

Installation

In a browser:

<script src="quran-meta.js"></script>

Also modern browsers allow

<script type="module">
import quranMeta from "quran-meta.esm.js"
</script>

The library is available from various CDNs

Using npm:

$ npm i --save quran-meta

Usage

Tree-Shakeable Riwaya-Specific Imports (Recommended)

For optimal bundle size, import from riwaya-specific entry points. This ensures only the data you need is bundled:

// Hafs-specific import (only Hafs data bundled, ~50% smaller)
import { getAyahMeta, findJuz, meta, quran } from "quran-meta/hafs"

console.log(`Total ayahs: ${meta.numAyahs}`) // 6236

// Using functional API (Hafs is default)
const ayahMeta = getAyahMeta(1)
console.log(ayahMeta.juz) // => 1

// Using class API
const next = quran.nextAyah(1, 7)
console.log(next) // => [2, 1]
// Qalun-specific import (only Qalun data bundled)
import { getAyahMeta, findThumunAlHizb, meta, quran } from "quran-meta/qalun"

console.log(`Total ayahs: ${meta.numAyahs}`) // 6214
console.log(`Thumun al-Hizbs: ${meta.numThumunAlHizbs}`) // 480

// Qalun-specific features available
const thumun = findThumunAlHizb(1, 1)
console.log(thumun) // => 1

const ayahMeta = getAyahMeta(1)
console.log(ayahMeta.thumunAlHizbId) // Available in Qalun!

Benefits of riwaya-specific imports:

  • 50% smaller bundle - only loads the riwaya you need
  • Zero configuration - works immediately, no initialization required
  • Tree-shakeable - unused riwayas are eliminated by bundlers
  • Type-safe - full TypeScript support with correct types per riwaya
  • Future-proof - easily add new riwayas without breaking changes

Class-Based API

For generic code that works with multiple riwayas, use the class-based API:

import { QuranRiwaya } from "quran-meta"

// Create a Hafs instance
const hafs = QuranRiwaya.hafs()

// Get surah metadata
const surahMeta = hafs.getSurahMeta(2)
console.log(surahMeta.name) // => 'البَقَرَة'
console.log(surahMeta.ayahCount) // => 286

// Find juz information
const juz = hafs.findJuz(2, 1)
console.log(juz) // => 1

// Check if ayah is first in juz
const isFirst = hafs.isAyahJuzFirst(149)
console.log(isFirst) // => 2

// Get ayah metadata
const ayahMeta = hafs.getAyahMeta(1)
console.log(ayahMeta) // => { surah: 1, ayah: 1, juz: 1, page: 1, ... }

// Navigation
const next = hafs.nextAyah(1, 7)
console.log(next) // => [2, 1]

// Use Qalun riwaya for Thumun al-Hizb support
const qalun = QuranRiwaya.qalun()
const thumun = qalun.findThumunAlHizb(1, 1)
console.log(thumun) // => 1

// Create custom riwaya instance
const custom = QuranRiwaya.create("Hafs")

Benefits of the class-based API:

  • ✓ No repetitive riwaya parameter in every function call
  • ✓ Clear context with a dedicated instance
  • ✓ Better IDE autocomplete and type safety
  • ✓ Chainable and fluent API
  • ✓ Riwaya-specific methods (e.g., Qalun's Thumun al-Hizb)

Legacy Functional API

The original functional API is still available for backward compatibility:

In Node.js see example here:

var quranMeta = require("quran-meta")

console.log(" Assalam Aleykum! ") // => 'Assalam Aleykum!'
console.log(`There are ${quranMeta.meta.numSurahs} suras in the Holy Quran`) // => 'There are 114 suras in the Holy Quran'

In the browser/ES:

import { meta } from "quran-meta"
console.log("Assalam Aleykum!")
console.log(`There are ${meta.numSurahs} suras in the Holy Quran`) // => 'There are 114 suras in the Holy Quran'

In TypeScript:

import { meta, getAyahCountinSurah, AyahNo, Surah } from "quran-meta"

console.log(`There are ${meta.numSurahs} suras in the Holy Quran`)

for (let surah: Surah = 1; surah <= meta.numSurahs; surah++) {
  const ayaCount = getAyahCountinSurah(surah)
  console.log(surah, ': ',ayaCount)
}

Here's a paragraph describing this major feature:

Custom Riwaya Support - Build Your Own!

quran-meta now supports custom riwaya instances, allowing you to use the library with your own Quranic data sources. Whether you're working with a different recitation style (riwaya) not yet included in the library, using an alternative pagination system (like different mushaf layouts with 13, 15, or 16 lines per page), or integrating region-specific Quranic metadata, you can now create your own QuranRiwaya instance with your custom data. Simply prepare your data in the required format (Lists structure with SurahList, JuzList, PageList, etc.) and instantiate the library with QuranRiwaya.create(riwayaName, customMeta, customLists).

All 40+ methods will work seamlessly with your data—including navigation (nextAyah, prevAyah), metadata queries (getAyahMeta, getSurahInfo), and advanced features (juz/page/ruku lookups). This opens up possibilities for researchers, developers working with regional mushaf standards, digital Quran applications targeting specific communities, and anyone needing Quranic metadata for specialized use cases.

The library's architecture is designed to be data-agnostic—just plug in your data and everything works! For guidance on data structure requirements, see the API documentation or examine the existing riwaya implementations (Hafs, Qalun, Warsh) as reference examples.

We are commited to expanding support for more riwayas and pagination systems in future releases. Meanwhile, we welcome contributions from the community to help build a richer ecosystem of Quranic metadata.

Terminology

  • Surah: A chapter of the Quran. There are 114 chapters in Quran, each of different length.
  • Ayah: A verse number in the particular surah (chapter) of Quran. it is relative to the surah.
  • AyahId: Unique identifier for a verse in the Quran. It is a number that is the concatenation of the of sum ayahs of previous chapters of Quran and the verse number of particular Ayah. There are 6236 ayahs in Quran. AyahId is absolute, positive and is not relative to any surah.

  • Juz: A section of the Quran. There are 30 Juz (ajza) in Quran of roughly equal length. Most Juz' are named after the first word of the first verse of the Juz'. Read more here

  • Hizb: Each Juz' is divided into two Hizb (lit. "two groups", plural: Aḥzāb). Therefore, there are 60 Hizbs (ahzab) in the Quran.
  • Rub-el-Hizb/Maqra: Each Hizb is subdivided into four quarters called Maqra (lit. "reading"), making eight quarters per Juz. In Arabic, rub means 'one-fourth' or 'quarter', while ḥizb (plural aḥzāb) translates to 'a group'. There are 240 Maqras in the Quran. In most mushafs it is noted by symbol in the shape of an octagram, represented as two overlapping squares ۞. Read more here
  • Thumun al-Hizb: Specific to Qalun riwaya, each Hizb is further divided into eight equal parts called Thumun al-Hizb (lit. "one-eighth of a Hizb"). This results in a total of 480 Thumun al-Hizbs in the Quran. This subdivision allows for more granular reading and recitation segments, facilitating easier memorization and study. Read more here
  • Manzil: For the convenience of those who read the Quran in a week the text may be divided into seven portions. Each portion is called a Manzil. There are 7 Manzil in Quran. Read more here
  • Page: A section of the Quran that contains 15 lines (Madina mushaf)(depends on the mushaf).
  • Saajdah: Special ayahs that require reader to prostrate. There are 15 of them in Quran.
  • Ruku: (paragraph) is a group of related verses in a Surah. The end of a Ruku’ is marked by the Arabic letter ﻉ** in superscript. There are 558 Rukus in the Quran. These are logical sections according to similar theme/objective or meaning. The bigger Surahs have been split into a number of Rukus, so that we would recognize when to do Ruku' (bowing) in Salat without interrupting a proceeding subject of the Quran. Additionally, on the margins of the Quran, usually three figures are written with **ﻉ. The top figure shows the number of Rukus completed in that Surah. The middle figure shows the number of Ayats in the Ruku just completed. The bottom figure shows the number of Rukus completed in that Juz.
  • Qira'at (Recitations) and Riwayat (Narrations): The Quran has been transmitted through different authentic modes of recitation, known as Qira'at. There are ten recognized Qira'at, each named after a prominent reciter (Qari). Within each Qira'at, there are multiple Riwayat (narrations) - the chains of transmission through which these recitations were preserved. The most widely used today is the Hafs from 'Asim narration, which is used throughout most of the Muslim world and forms the basis for all visualizations on this website. Other well-known narrations include Warsh from Nafi' (common in North and West Africa) and Qalun from Nafi' (used in parts of Africa). While the variations between these narrations are minor (mostly involving pronunciation, elongation, or slight differences in word forms), they can occasionally affect verse counts and word statistics. Read more here

Examples

You can find some examples here and souce code for them here

Projects using Quran-meta

  • Koran-Center - Powerful and feature rich web application for reading and studying the Holy Quran.
  • Visual Quran - Interactive platform with visualizations and insights into Quran's structure.

Demo

Demo image

Data correctness and validity testing

Quran-Meta is 100% unit test covered and moreover data is cross checked with other apis to guarantee absolute correctness.

One can run pnpx jiti examples/data-check to run suite of validation tests against the following data sources

There are some differences with KFQC data in page numbering, due to variations between different mushafs. We plan to address these differences in future updates by supporting multiple page numbering systems of different mushafs (15 line, 16 line and etc).

Any suggestion to further improve this are welcome.

Distributions and Downloads

Here you can find the following

| | | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | | Source code in typescript | TS | | Javascript code autotranspiled from TS as ES Next | ESNext | | Javascript code autotranspiled from TS as CJS | ES5+CommonJS | | | | | Distributions of library as | | | ESM for use with modern bundlers like webpack 2 or Rollup and for direct imports in modern browsers via <script type="module"> | ES5+ESM | | IIFE for use with classic browsers via <script> | IIFE |

References:

License

This software is distributed under MIT license.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

v6.0.12

compare changes

v6.0.11

compare changes

v6.0.10

compare changes

v6.0.9

compare changes

v6.0.8

compare changes

v6.0.7

compare changes

🚀 Enhancements

  • Closure-based exports: Exported all riwaya functions (hafs/qalun/warsh) as standalone, tree-shakeable closures
  • Fixed instance method binding issues - exported functions no longer lose internal state
  • Finalized closure-based riwaya entry points for optimal bundle sizes
  • QuranRiwaya now accepts riwaya Lists at construction time
  • Removed hard-coded multi-riwaya imports from QuranRiwaya class
  • Started migration of API functions to accept AllLists parameter

🩹 Fixes

  • Resolved this context loss when exporting QuranRiwaya methods
  • Fixed "cannot read properties of undefined" errors in exported functions
  • Config and formatting improvements
  • Minor type and formatting fixes
  • Restored full QuranRiwaya class functionality while maintaining per-riwaya tree-shakeability
  • Per-riwaya wrappers now bind functionality to Lists instead of importing all riwayas
  • Further reduced bundle sizes by avoiding eager imports of other riwayas
  • Updated all 40+ functional API functions to new signature pattern
  • Bulk update of tests to pass Lists parameters
  • Fixed QuranRiwaya methods to properly delegate to updated functional API

📚 Documentation

  • Added proper TypeScript type inference for listName parameter in getList()
  • Minor docs and packaging improvements

💅 Refactors

  • Restored QuranRiwaya methods to use new Lists-based functional API
  • Updated validation and type guard functions to accept Lists parameter
  • Began conversion of functional API to Lists-based signatures
  • Started migrating tests and wrappers to new parameter patterns
  • Introduced factory/wrapper patterns to keep imports local to each riwaya
  • Restructured index exports for better tree-shaking

Linter Improvements

  • Added ESLint rule: @typescript-eslint/consistent-type-imports (enforces import type syntax)
  • Added ESLint rule: import/no-duplicates with prefer-inline option
  • Added oxlint rules for consistent type imports and merged imports

Major Refactor: Lists-based API

  • Refactored entire functional API to accept lists: AllLists parameter instead of riwaya: string
  • Added AllLists type for riwaya data structures
  • Made HizbEighthList optional in AllLists type (only exists for Qalun/Warsh)

Bundle Optimization

  • Fixed cross-riwaya bundle contamination issue
  • Removed top-level imports that pulled all riwayas into single-riwaya bundles
  • Reworked entrypoint exports to avoid importing all Lists in riwaya-specific bundles

🏡 Chore

  • Test stability improvements
  • Normalise parameters (0e6a002)

❤️ Contributors

v6.0.0

🎉 Major New Features

Multi-Riwaya Support

  • Added support for 3 Quran recitation styles (riwayas): Hafs, Qalun, and Warsh
  • Tree-shakeable entry points for optimal bundle sizes:
    • quran-meta - Main entry (all riwayas, ~115 KB)
    • quran-meta/hafs - Hafs only (~77 KB)
    • quran-meta/qalun - Qalun only (~81 KB)
    • quran-meta/warsh - Warsh only (~77 KB)
  • Each riwaya has different ayah counts and page/juz divisions

Closure-based Architecture

  • Refactored from class-based to closure-based functional API for better tree-shaking
  • All methods pre-bound to their respective Lists for convenience
  • No binding issues - functions work correctly when destructured
  • Smaller bundle sizes and better optimization

New Data Structures

  • Added WarshLists with complete Warsh riwaya metadata (6214 ayahs, 604 pages)
  • Added QalunLists with complete Qalun riwaya metadata (6214 ayahs, 603 pages)
  • All Lists now include meta property with riwaya-specific metadata
  • Added AllLists type for riwaya data structures

🚀 Enhancements

API Changes

  • All functional API functions now accept lists: AllLists parameter instead of riwaya: string
  • Riwaya-specific entry points export pre-configured functions (no need to pass Lists)
  • Added metadata exports: HafsMeta, QalunMeta, WarshMeta
  • Export all Lists individually: SurahList, JuzList, PageList, etc.
  • Export all meta properties individually: numAyahs, numPages, numSurahs, etc.

Type Safety Improvements

  • Made HizbEighthList optional in AllLists type (only exists for Qalun/Warsh)
  • Better TypeScript inference for riwaya-specific methods
  • Consistent type imports using import type syntax

Bundle Optimization

  • Eliminated cross-riwaya contamination (each bundle contains only its own data)
  • 87% bundle size reduction for riwaya-specific entries (from ~144 KB to ~77-81 KB)
  • Proper tree-shaking - unused riwayas are completely eliminated
  • No this binding overhead with closure pattern

🩹 Fixes

  • Format export statement for quranMeta in index.ts (11c92b8)
  • Update import path for SurahListType in i18n types.ts (a9a99d9)
  • Correct type Names and casings (61a1d4d)
  • Fixed findJuzMetaBySurah parameter ordering (ayah is now properly optional)
  • Fixed validation functions to properly pass Lists parameter
  • Fixed type guards to accept Lists parameter for riwaya-specific validation
  • Fixed checkValidSurahAyah to use correct Lists for validation
  • Removed deprecated getList() function calls from tests
  • Format export statement for quranMeta in index.ts (11c92b8)
  • Update import path for SurahListType in i18n types.ts (a9a99d9)
  • Correct type Names and casings (61a1d4d)

💅 Refactors

  • BREAKING: Refactored entire functional API to accept lists parameter
  • BREAKING: Removed QuranRiwaya class from riwaya-specific entry points
  • Converted QuranRiwaya from class to factory function pattern
  • Moved from class delegation to direct closure invocation
  • Simplified lists variable usage in getAyahMeta function (7ba68c1)
  • Updated all 40+ functional API functions to new signature pattern

💅 Refactors

  • Simplify lists variable usage in getAyahMeta function (7ba68c1)

🏡 Chore

  • Update pkg.json (f76266b)
  • Update dependencies (d7db021)
  • Update dependencies (b23a5f3)
  • Added ESLint rules: @typescript-eslint/consistent-type-imports and import/no-duplicates
  • Added oxlint rules for consistent type imports and merged imports
  • 100% test coverage maintained (347 tests passing)
  • Created generator scripts for future riwaya additions
  • Update pkg.json (f76266b)
  • Update dependencies (d7db021)
  • Update dependencies (b23a5f3)

📚 Breaking changes

To minimize breaking changes for existing users, riwaya-specific entry points now export pre-bound functions. What used to be imported from quran-meta can now be imported from quran-meta/hafs.

import { findJuz, getAyahMeta, meta } from 'quran-meta'
***
import { findJuz, getAyahMeta, meta } from 'quran-meta/hafs'

📚 Documentation

Usage Examples

// Tree-shakeable import (Hafs only - 77 KB)
import { findJuz, getAyahMeta, meta } from 'quran-meta/hafs'
console.log(meta.numAyahs) // 6236
const juz = findJuz(2, 142)
const ayahMeta = getAyahMeta(1)

// Qalun specific (81 KB)
import { meta, findPage } from 'quran-meta/qalun'
console.log(meta.numAyahs) // 6214
console.log(meta.numPages) // 603

// Warsh specific (77 KB)
import { meta, getPageMeta } from 'quran-meta/warsh'
console.log(meta.numPages) // 604

// All riwayas (full bundle - 115 KB)
import { quran, QuranRiwaya } from 'quran-meta'
const hafsQuran = QuranRiwaya.create("Hafs", HafsMeta, HafsLists)


### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))
- Abdou <2000abdallah2014@gmail.com>



## v5.1.1-0

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.1.0...v5.1.1-0)

### 🚀 Enhancements

- Update examples and docs (ea299e3)
- Add more data checks from KFQC texts (8122191)
- Update surah names from KFQC Hafs and add checks (50ff0fc)

### 🏡 Chore

- Add oxlint formatter (498da67)
- Update dependencies (1da02aa)
- Update unit tests (d0b0fb8)
- Update deps (5fdb194)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v5.1.0

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4...v5.1.0)

### 🚀 Enhancements

- Update build configs (ec78d2e)
- Add missing tests (48be1d8)

### 🏡 Chore

- Update docs (522be6b)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v5.0.4

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-7...v5.0.4)

## v5.0.4-7

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-6...v5.0.4-7)

## v5.0.4-6

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-5...v5.0.4-6)

## v5.0.4-5

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-4...v5.0.4-5)

## v5.0.4-4

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-3...v5.0.4-4)

## v5.0.4-3

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-2...v5.0.4-3)

## v5.0.4-2

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-1...v5.0.4-2)

## v5.0.4-1

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.4-0...v5.0.4-1)

### 🚀 Enhancements

- Better language support (c64f8d0)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v5.0.4-0

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.3...v5.0.4-0)

### 🚀 Enhancements

- Better language support (6cdf68f)

### 🏡 Chore

- Update deps (8a733b7)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v5.0.3

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.2...v5.0.3)

## v5.0.2

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v5.0.1...v5.0.2)

## v5.0.1

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4...v5.0.1)

## v4.0.4

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-17...v4.0.4)

## v4.0.4-17

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-16...v4.0.4-17)

## v4.0.4-16

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-15...v4.0.4-16)

### 🏡 Chore

- Rollback (787130b)
- **release:** V4.0.4-14 (18cb082)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-14

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-15...v4.0.4-14)

### 🏡 Chore

- Rollback (787130b)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-15

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-14...v4.0.4-15)

## v4.0.4-14

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-13...v4.0.4-14)

### 🚀 Enhancements

- Export Manzilmeta (6063bf4)

### 🏡 Chore

- Update deps (b424f59)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-13

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-12...v4.0.4-13)

### 🚀 Enhancements

- Rename SurahMeta to SurahInfo (breaking change) (21303f7)
- Add updated SurahMeta (01ce7d5)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-12

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-11...v4.0.4-12)

### 🚀 Enhancements

- Add manzil related methods (b874885)

### 🏡 Chore

- Improve data checks (11a5c20)
- Improve docs (31999dc)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-11

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-10...v4.0.4-11)

### 🚀 Enhancements

- Add getRubAlHizb and getRubAlHizbByAyahId methods (4803bf6)
- Updated getRubAlHizbMeta and getRubAlHizbMetabyAyahId (793df2c)
- Exposed findJuzAndShift, findJuzAndShiftByAyahId, getJuzMeta, getRubAlHizb, getRubAlHizbByAyahId (dec4ac4)

### 🩹 Fixes

- Expose missing types (d5986c9)

### 🏡 Chore

- Update and fix tests (5d72db3)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-10

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-9...v4.0.4-10)

### 🚀 Enhancements

- Add getRukuMeta (45569fd)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-9

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-8...v4.0.4-9)

## v4.0.4-8

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.4-7...v4.0.4-8)

### 🚀 Enhancements

- Add ruku validation (a678af0)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.4-7

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.3...v4.0.4-7)

### 🚀 Enhancements

- Add findRukuByAyahId (b89a77d)
- Add rukus to meta (0845054)
- Added getAyahMetasForSurah (a696010)

### 🏡 Chore

- Some cleanup and optimization (9fa71df)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.3

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v4.0.2...v4.0.3)


### 🏡 Chore

- Remove isValidAyahCountBetweenJuzSurah function for now (382d938)

### ❤️ Contributors

- HG ([@husayt](https://github.com/husayt))

## v4.0.1

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v3.2.1...v4.0.1)

**Breaking changes in this version**

We apologize for any inconvenience caused by the recent breaking changes. These updates were essential to ensure safer and more error-free development in the future. The primary reasons for these changes include:

- Enhancing type safety to prevent errors.
- Providing clear and predictable behavior.

By leveraging TypeScript and proper type usage, many issues can be identified early, saving users from encountering hard-to-find errors later on.


* Number of functions have been renamed to be consistent
* `findSurahByAyahId` renamed to `findSurahAyahByAyahId` and new `findSurahAyahByAyahId` is different
* check for other changes

### 🚀 Enhancements

- Add new Surah String Parser `surahStringParser` (6620546)
- Added `string2NumberSplitter` and `string2NumberSplitterStrict`
- Added strict mode to `ayahStringSplitter`
- Updated `findRubAlHizb` (872b479)
- Better type guards (472366e)
- Added type guards for Hizb and RubAlhizb
- Add more guards and `getJuzMeta` function (1a6bbe2)
- Major update better types and many fixes (b556bc9)

### 🏡 Chore

- 100% Test coverage again (254d6fd)
- Updated dependencies (7240e2b)
- Update API docs (742b364)
- Improve tests (5fa2345)
- Add missing methods (d1e5712)
- Updated docs (8cf8fe4)
- Add more checks (4a3640a)
- Fix docs (e953d37)
- Fix tests (15f22bd)
- Fix docs (85dc3a8)

### ❤️ Contributors

- HG ([@husayt](http://github.com/husayt))

## v3.2.1

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v3.2.0...v3.2.1)

### 🚀 Enhancements

- Update dependencies (642c2e0)

### 🏡 Chore

- Update dependencies (ede0cbf)

### ❤️ Contributors

- HG ([@husayt](http://github.com/husayt))


## v3.2.0

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v3.1.0...v3.2.0)

### 🚀 Enhancements

- Update dependencies (be0d65b)
- Add getList Method (5f17784)

### 🏡 Chore

- Update Readme (7a542ed)

### ❤️ Contributors

- HG ([@husayt](http://github.com/husayt))

## v3.1.0

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v3.0.1...v3.1.0)

### 🚀 Enhancements

- Add turkish and Azerbaijani surahNames (7d17ce2)

### 🏡 Chore

- More test cases (9d32a28)

### ❤️ Contributors

- HG ([@husayt](http://github.com/husayt))

## v3.0.1

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v3.0.1-9...v3.0.1)

## v3.0.1-beta

This version is a complete rewrite of the project. Functionality has been greatly extended, most of the functions have been renamed and new ones have been added.

Full unit test coverage has been achieved. Furthermore, in order to guarantee absolute data correctness framework for Cross-Checking  against other apis has been added.

### 🚀 Enhancements

- Rename sura to surah in exported names (74df866)
- Add meta rukuCount (b41dfe9)
- Add  validation and cross check against other apis (0c333d7)
- Added getAyahMeta feat: rename pageMeta to getPageMeta (2cd63ae)

### 🏡 Chore


- Naming standartization (7ce5fb0)
- Rename getAyahCountinSurah (9280eed)
- Make internal ayaIds consistent (27b4504)
- Meta Count tests (4f24f2e)
- Cleanup (13581d1)
- Update dependencies (679a362)
- Update documentation (07829bb)

### ❤️ Contributors

- HG ([@husayt](http://github.com/husayt))

## v2.5.9

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.8...v2.5.9)

## v2.5.8

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.7...v2.5.8)

## v2.5.7

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.6...v2.5.7)

## v2.5.6

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.5...v2.5.6)

## v2.5.5

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.4...v2.5.5)

## v2.5.4

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.4-0...v2.5.4)

## v2.5.4-0

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.3...v2.5.4-0)

### 🏡 Chore

- Various fixes (63e51ef)

### ❤️ Contributors

- HG ([@husayt](http://github.com/husayt))

## v2.5.3

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.5.2...v2.5.3)

## v2.5.2

[compare changes](https://git+https@github.com/quran-center/quran-meta/compare/v2.4.15...v2.5.2)

### 🚀 Enhancements

- Switch from jest to vitest (1b37cff)
- Full rewrite of the project with latest eslint and typescript
- Impove tsdoc (7ff9baa)
- Better eslint (53fa239)
- Standard buid process using unbuild (2ab032e)
- Full cleanup and addition of changelogen (457e5c9)

### 🩹 Fixes

- Add full unit test coverage (42d17c0)

### 🏡 Chore

- Update deps (fc4baee)

### ❤️ Contributors

- HG ([@husayt](http://github.com/husayt))


### [2.4.15](https://github.com/quran-center/quran-meta/compare/v2.4.13...v2.4.15) (2022-11-13)

### [2.4.13](https://github.com/quran-center/quran-meta/compare/v2.4.12...v2.4.13) (2022-11-13)

### [2.4.12](https://github.com/quran-center/quran-meta/compare/v2.4.11...v2.4.12) (2022-02-09)

### [2.4.11](https://github.com/quran-center/quran-meta/compare/v2.4.9...v2.4.11) (2022-02-09)

### [2.4.9](https://github.com/quran-center/quran-meta/compare/v2.4.8...v2.4.9) (2022-02-09)

### [2.4.8](https://github.com/quran-center/quran-meta/compare/v2.4.6...v2.4.8) (2022-02-09)

### [2.4.6](https://github.com/quran-center/quran-meta/compare/v2.4.5...v2.4.6) (2022-02-09)

### [2.4.5](https://github.com/quran-center/quran-meta/compare/v2.4.3...v2.4.5) (2022-02-09)

### [2.4.3](https://github.com/quran-center/quran-meta/compare/v2.4.2...v2.4.3) (2021-05-26)

### [2.4.2](https://github.com/quran-center/quran-meta/compare/v2.3.2...v2.4.2) (2021-05-21)

### [2.3.2](https://github.com/quran-center/quran-meta/compare/v2.2.4...v2.3.2) (2021-05-21)

### [2.2.4](https://github.com/quran-center/quran-meta/compare/v2.2.3...v2.2.4) (2021-05-20)

### [2.2.3](https://github.com/quran-center/quran-meta/compare/v2.2.2...v2.2.3) (2021-05-19)

### [2.2.2](https://github.com/quran-center/quran-meta/compare/v2.1.3...v2.2.2) (2021-05-11)

### [2.1.3](https://github.com/quran-center/quran-meta/compare/v2.1.2...v2.1.3) (2020-12-24)

### [2.1.2](https://github.com/quran-center/quran-meta/compare/v2.0.1...v2.1.2) (2020-10-23)

### [2.0.1](https://github.com/quran-center/quran-meta/compare/v1.1.3...v2.0.1) (2020-10-22)

### [1.1.3](https://github.com/quran-center/quran-meta/compare/v1.1.1...v1.1.3) (2020-10-21)

### [1.1.1](https://github.com/quran-center/quran-meta/compare/v1.0.13...v1.1.1) (2020-10-21)

### [1.0.13](https://github.com/quran-center/quran-meta/compare/v1.0.12...v1.0.13) (2020-04-23)

### [1.0.12](https://github.com/quran-center/quran-meta/compare/v1.0.11...v1.0.12) (2020-04-20)

### [1.0.11](https://github.com/quran-center/quran-meta/compare/v1.0.9...v1.0.11) (2020-04-17)

### [1.0.9](https://github.com/quran-center/quran-meta/compare/v1.0.8...v1.0.9) (2020-04-17)

### [1.0.8](https://github.com/quran-center/quran-meta/compare/v1.0.7...v1.0.8) (2020-04-17)

### [1.0.7](https://github.com/quran-center/quran-meta/compare/v1.0.6...v1.0.7) (2020-04-17)

### [1.0.6](https://github.com/quran-center/quran-meta/compare/v1.0.5...v1.0.6) (2020-04-16)

### [1.0.5](https://github.com/quran-center/quran-meta/compare/v1.0.4...v1.0.5) (2020-04-16)

### [1.0.4](https://github.com/quran-center/quran-meta/compare/v1.0.3...v1.0.4) (2020-04-16)

### [1.0.3](https://github.com/quran-center/quran-meta/compare/v1.0.2...v1.0.3) (2020-04-14)

### [1.0.2](https://github.com/quran-center/quran-meta/compare/v1.0.1...v1.0.2) (2020-04-12)

### 1.0.1 (2020-04-12)