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

pi-quran-verses

v0.1.1

Published

Pi extension that shows complete-sentence Quran verses in the working spinner, with multi-language translation settings.

Readme

pi-quran-verses

Working spinner showing Quran 1:2

Pi extension that shows a Quran verse next to the working spinner while the agent is responding.

Only complete-sentence verses are used. Incomplete phrases, mid-sentence connectors, letter names (muqattaʿāt), and unfinished translation fragments are filtered out.

Install

From npm

pi install npm:pi-quran-verses

From git

pi install git:github.com/mwijanarko1/pi-quran-verses

Local path

pi install /absolute/path/to/pi-quran-verses
# or
pi install ./pi-quran-verses

Temporary test without installing:

pi -e ./pi-quran-verses
# or
pi -e npm:pi-quran-verses

Then /reload or restart Pi.

Publish (maintainers)

npm login
npm publish
# or
bun publish

Verify:

npm view pi-quran-verses version
pi install npm:pi-quran-verses

Usage

While Pi is working, the spinner message is replaced with a random verse from the selected translation:

Quran verse in the Pi working spinner

A new verse is chosen on each agent turn (turn_start).

Command

| Command | Description | |---|---| | /quran-lang | Choose language, then (if needed) translation |

Settings are stored at:

~/.pi/agent/pi-quran-verses.json

Example:

{
  "editionId": "en.saheeh"
}

Languages and translations

Modeled on QuranScroll’s translation manifest.

| Language | Edition ID | Translator | |---|---|---| | Arabic | ar.uthmani | Uthmani | | English | en.saheeh | Saheeh International (default) | | English | en.haleem | MAS Abdel Haleem | | English | en.bridges | Bridges Translation | | Spanish | es.isa-garcia | Sheikh Isa Garcia | | German | de.bubenheim | Bubenheim & Elyas | | French | fr.rashid-maash | Rashid Maash | | Urdu | ur.tafheem-maududi | Tafheem e Qur'an - Maududi | | Urdu | ur.maududi-roman | Abul Ala Maududi (Roman Urdu) | | Urdu | ur.tafsir-usmani | Tafsir E Usmani | | Urdu | ur.bayan-ul-quran | Bayan-ul-Quran | | Indonesian | id.indonesian | Indonesian Islamic Affairs Ministry |

How verse selection works

  1. Start from the complete-thought list in source/quotable-verses.md (from the Quran wiki synthesis).
  2. Gate those refs through an English Saheeh International sentence filter so only standalone sentences remain.
  3. Keep spinner-friendly length (≤ 140 characters).
  4. Build per-language verse pools into extensions/data/editions.json.

At runtime the extension only reads extensions/data/editions.json and the user settings file. No network calls.

Sentence filter (high level)

Rejected examples:

  • letter names: Alif, Lām, Meem.
  • unfinished endings: trailing -, ,, ;
  • short fragments
  • dependent openers needing prior context (Who…, That they…, Abiding…)
  • unclosed quotes/brackets

Package layout

pi-quran-verses/
├── package.json                 # pi package manifest
├── README.md
├── LICENSE
├── extensions/
│   ├── index.ts                 # extension entrypoint
│   └── data/
│       └── editions.json        # bundled verse pools
├── scripts/
│   └── build-verses.mjs         # rebuild editions.json
└── source/                      # build inputs (not published)
    ├── quotable-verses.md
    ├── sentence-refs.json
    └── translations/

Published package contents (files in package.json):

  • extensions/
  • README.md
  • LICENSE

Rebuild verse data

If you update the quotable list or translation sources:

node scripts/build-verses.mjs

Then /reload Pi.

Translation source files live in source/translations/ (QuranScroll QUL simple JSON format, plus Arabic and German).

Development checks

npm pack --dry-run
pi -e . --list-models

Notes

  • This package does not send verses to the model context; it only changes the working spinner UI.
  • Default edition is en.saheeh.
  • German is included even though QuranScroll currently does not ship it; other languages follow QuranScroll’s editions.

More docs