npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@quran.ws/tajwid-annotations

v0.1.0

Published

Precomputed tajweed annotations for the whole mushaf: spans as code-point offsets, pinned to the digest of the text edition they were computed against.

Readme

@quran.ws/tajwid-annotations

Precomputed tajweed annotations for the whole muṣḥaf: 147,255 spans from 164 rules, across 6,235 of the 6,236 āyāt of the riwāyah of Ḥafṣ ʿan ʿĀṣim.

This package is data only. It has no dependencies and no code. It exists so an app can render tajweed without shipping the engine — the engine that produced it is @quran.ws/tajwid, running the corpus in @quran.ws/tajwid-rules.

npm install @quran.ws/tajwid-annotations
import annotations from '@quran.ws/tajwid-annotations'

annotations.corpusVersion   // '0.4.2'
annotations.riwayah         // 'hafs-an-asim'
annotations.edition.sha256  // 'b5d29736…' — the text these offsets are measured against
annotations.ruleIds.length  // 164

The shape

spans is keyed by "surah:ayah", and each span is a packed triple:

annotations.spans['1:1']
// [[8, 10, 52], [17, 18, 22], [22, 25, 129], [30, 31, 22], [33, 36, 131]]
//    ↑   ↑   ↑
//    │   │   └─ index into annotations.ruleIds
//    │   └───── end, half-open
//    └───────── start — a code-point position, not a UTF-16 index
const [start, end, rule] = annotations.spans['1:1'][0]
annotations.ruleIds[rule]                  // 'mutamathilain-idgham-kamil.23'
[...ayahText].slice(start, end).join('')   // 'لل'

Offsets are code-point positions, so index with [...text] or Array.from(text), never with text.slice. Arabic text at these positions is full of combining marks, and a UTF-16 index will cut through one.

An āyah with no rulings is omitted from spans entirely rather than stored as an empty array. Exactly one is: 20:1 (طه), whose disjoined letters the corpus does not yet match. Treat a missing key as "no spans", not as an error.

What the offsets are measured against

Everything here is pinned to one text. edition.sha256 is the digest of the Uthmani Ḥafṣ edition in editions/, and edition.ayahCount is 6,236.

Check that digest before you use these offsets. If your text differs from that edition by a single code point — a different normalisation, a stripped mark, a different waqf convention — every span after that point is wrong, and nothing will tell you. If the digests do not match, run @quran.ws/tajwid over your own text instead of using this package.

No Quranic text is distributed here

This package contains offsets and rule ids. The text itself is not in it, by design — bring your own, matching the digest above.

Licence

CC BY 4.0 — see LICENSE. The code in this repository is MIT; the corpus and these annotations are not.