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

@codewithnuh/quran-cli

v1.0.2

Published

> The Quran in your terminal. Read, search, bookmark, and discover ayahs from the command line.

Readme

Quran CLI

The Quran in your terminal. Read, search, bookmark, and discover ayahs from the command line.

$ quran-cli read 2:255

─────────────────────────────────────────────
  Al-Baqara — Ayah 255  |  البقرة
─────────────────────────────────────────────
  Allah - there is no deity except Him,
  the Ever-Living, the Sustainer of existence.
  Neither drowsiness overtakes Him nor sleep...
─────────────────────────────────────────────
  Translation by: Muhammad Asad
  Juz: 3  |  Page: 42

Installation

npm install -g @codewithnuh/quran-cli

Requires Node.js 18 or higher. Note: After global installation, the CLI command is quran-cli, not the scoped package name.


Commands

read <ref>

Read a specific ayah by surah and ayah number.

quran-cli read 2:255        # Al-Baqara, Ayah 255 (Ayat al-Kursi)
quran-cli read 1:1          # Al-Fatiha, first ayah
quran-cli read 112:1        # Al-Ikhlas, first ayah
quran-cli read 36:1         # Ya-Sin, first ayah

Reference format: <surah>:<ayah> — surah number, colon, ayah number.


search <query>

Search the Quran by keyword. Returns matching ayahs with surah and ayah references.

quran-cli search patience
quran-cli search "the merciful"
quran-cli search light
quran-cli search "Day of Judgment"

Options:

| Option | Description | Default | | ---------------------- | ------------------------- | ------- | | -l, --limit <number> | Number of results to show | 10 |

quran-cli search patience --limit 5     # show only 5 results
quran-cli search mercy --limit 20       # show up to 20 results

random

Get a random ayah. Different every time.

quran-cli random

Good for daily reflection. Run it every morning.


bookmark

Manage your personal collection of saved ayahs.

bookmark add <ref>

Save an ayah to your bookmarks.

quran-cli bookmark add 2:255      # bookmark Ayat al-Kursi
quran-cli bookmark add 1:1        # bookmark Al-Fatiha opening
quran-cli bookmark add 18:10      # bookmark the cave ayah

Duplicate bookmarks are automatically ignored.

bookmark list

View all your saved bookmarks in a table.

quran-cli bookmark list
┌────────┬──────────────────┬──────────────────────────────────────────┐
│ Ref    │ Surah            │ Translation (preview)                    │
├────────┼──────────────────┼──────────────────────────────────────────┤
│ 2:255  │ Al-Baqara        │ Allah - there is no deity except Him...  │
│ 1:1    │ Al-Fatiha        │ In the name of Allah, the Entirely Me... │
│ 18:10  │ Al-Kahf          │ When the youths took refuge in the ca... │
└────────┴──────────────────┴──────────────────────────────────────────┘

bookmark remove <ref>

Remove an ayah from your bookmarks.

quran-cli bookmark remove 2:255
quran-cli bookmark remove 1:1

Examples

Morning routine — random ayah with your coffee:

quran-cli random

Look up a specific ayah you heard:

quran-cli read 93:1

Research a topic:

quran-cli search gratitude --limit 15
quran-cli search "those who believe"
quran-cli search paradise

Build a personal collection:

quran-cli bookmark add 2:286     # Allah does not burden a soul beyond that it can bear
quran-cli bookmark add 94:5      # With hardship comes ease
quran-cli bookmark add 3:173     # Allah is sufficient for us
quran-cli bookmark list

Remove one you no longer need:

quran-cli bookmark remove 3:173

Translation

All translations use Muhammad Asad's English translation (en.asad) — one of the most respected modern translations for its linguistic precision and depth.

Powered by the AlQuran Cloud API.


Data & Privacy

  • No account required
  • No data sent to any server except the Quran API for fetching ayahs
  • Bookmarks stored locally at ~/.quran-cli/bookmarks.json
  • API responses cached locally at ~/.quran-cli/cache.json to reduce network calls

Requirements

  • Node.js >= 18
  • Internet connection for fetching ayahs (cached after first fetch)

Contributing

Contributions are welcome. Open an issue or pull request on GitHub:

git clone https://github.com/codewithnuh/quran-cli
cd quran-cli
npm install
npm link
quran-cli read 1:1

License

MIT License

Copyright (c) 2026 Noor-ul-Hassan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.