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

qari-cli

v0.1.0

Published

Read the Quran in your terminal

Readme

qari-cli

A terminal scripture library: fourteen shelves — six revelations plus eight hadith books — in one static Rust binary. A three-column TUI for reading, and a pipe-friendly CLI for everything else.

No commentary, no audio, no web or mobile UI. Primary texts with English where a translation exists, and an honest marker where one does not.

Install

npm install -g qari-cli

Works with Bun too:

bun add -g qari-cli
bunx qari-cli today

Or on Linux/macOS:

curl -fsSL https://raw.githubusercontent.com/HyperZx2O/qari-cli/main/install.sh | bash

Prebuilt binaries for Windows, macOS, and Linux (including Windows ARM64) are attached to every GitHub release.

On first use, the app downloads what it needs and caches it on disk: both Quran editions plus any Alkotob chapter or hadith book you open. A small bundled Quran selection keeps the reader usable if a download fails.

The library

The TUI is one continuous three-column shelf — no mode key:

  1. Books — the fourteen shelves: Quran, Tawrat, Zabur, Injil, Tanakh, Greek NT, then Sahih Bukhari, Sahih Muslim, Abu Dawud, Tirmidhi, Nasa'i, Ibn Majah, Muwatta Malik, Nawawi 40.
  2. Units — the open book's readings, flattened one level deep: surahs, Genesis 1 … Deuteronomy 34, Psalm 1 … 150, Hadith 1 … 7563.
  3. Text — the whole unit as one scroll, with a verse cursor that j/k moves verse to verse. The cursor verse is marked with ; the pane follows it.

Selecting a row in columns 1 and 2 opens it immediately — Enter only moves focus.

Collections and languages

| Shelf | Source | Text | English | |---|---|---|---| | Quran | alquran.cloud (Uthmani) | Arabic | Sahih International, always | | Tawrat | Alkotob tawrat (5 books) | Arabic | — | | Zabur | Alkotob zabur (150 psalms) | Arabic | — | | Injil | Alkotob injil (27 books) | Arabic | injilen for the Gospels + Acts; (AR) elsewhere | | Tanakh | Alkotob wlc (39 books) | Hebrew | — | | Greek NT | Alkotob gnt (27 books) | Greek | — | | 8 hadith books | fawazahmed0 bulk editions | Arabic | English per book where translated |

Press v to cycle the open shelf's languages (Tawrat and Zabur stay Arabic; Tanakh stays Hebrew; Greek stays Greek). Verses with no translation show (AR) instead of a gap — in the text, in search, and in the focus view. A chapter first opened in Arabic picks up its English automatically once you toggle. Quran transliteration rides along on i, and Juz navigation on J.

Usage

qari                         # interactive TUI (Quran by default)
qari intro                   # replay the startup animation
qari --no-intro              # skip the animation
qari read 2:255              # one Quran ayah
qari read "Al-Baqarah"       # full surah
qari read "tawrat gen 1:3"   # Tawrat verse (or "Genesis 1")
qari read zabur 23           # whole psalm (or "zabur 23:5")
qari read "injil joh 3:16"   # Injil verse
qari read "bukhari 402"      # one hadith by number
qari search mercy            # top fuzzy matches (Quran)
qari search --collection tawrat "النور"  # cached chapters only
qari search --collection bukhari "صلاة"
qari random                  # random ayah (or: random bukhari)
qari today                   # deterministic ayah of the day
qari pray                    # configured coordinates
qari pray --city Dhaka --country BD
qari hadith                  # Bukhari hadith of the day
qari hadith bukhari          # list one hadith book (muslim, abudawud,
qari hadith bukhari 5        #   tirmidhi, nasai, ibnmajah, malik, nawawi)
qari books                   # shelves and Alkotob editions
qari books tawrat            # books of one revelation
qari books --edition tawrat --book gen --chapter 1

Search covers the open shelf's downloaded chapters only — it never touches the network.CLI output contains no ANSI escapes when piped. Each hadith book downloads its Arabic and English bulk once (several MB on first open) and reads offline after that.

Interactive keys

| Key | Action | |---|---| | h/l, / | Move between Books, Units, Text columns | | j/k, / | Navigate the active column (verse cursor in Text) | | / | Live search | | Enter | Move into the next column | | y or c | Copy verse | | b | Toggle bookmark | | t | Cycle theme | | v | Cycle language (per collection) | | f | Verse focus: transliteration plus highlighted translation | | i | Transliteration (Quran) | | J | Juz navigation (Quran) | | ? | Help | | qq | Quit | | Ctrl+C | Quit immediately | | Ctrl+L | Redraw screen |

Features

  • Three-column library: Books, Units, and full-unit text with a marked verse cursor
  • Verse focus modal (f) with transliteration and highlighted translation
  • Six revelations plus eight hadith books, one shelf each
  • Live fuzzy search over downloaded text, three themes, string-key bookmarks with legacy migration, session persistence
  • Animated first-launch intro while Quran data loads in the background
  • Offline-first disk cache with bundled fallback; honest (AR) markers, never silent gaps
  • Prayer times with Karachi/Hanafi defaults and optional city lookup
  • Pipe-friendly read, search, random, today, pray, hadith, and books commands

Data and offline behavior

Runtime data lives outside the repo in the platform data directory (%LOCALAPPDATA%\qari-cli\ on Windows): Alkotob chapters cached per file as you open them, hadith bulks per book and language, bookmarks, and the Quran editions. Deleting that directory resets to freshly-downloaded state; the bundled fallback covers the gap if the network is down.

Configuration

Settings live in ~/.config/qari-cli/config.toml (or the platform-equivalent config directory): language, theme, transliteration, last position, bookmarks, and prayer coordinates. Notable flags:

  • reduced_motion = true disables the animated intro.
  • rtl_mode = "auto" shapes Arabic for the terminal; use "logical" on terminals with native BiDi support or "visual" for traditional LTR terminal grids.

Terminals and fonts

Any Unicode-capable terminal works — Windows Terminal, iTerm2, Kitty, Alacritty, GNOME Terminal. Arabic glyph quality depends on installed fonts and terminal shaping support. The fullscreen TUI shapes Arabic into terminal-safe visual order so cursor positions stay stable; plain CLI output and copied verses keep the original Uthmani text with all marks. The interface is fully keyboard-operable.

Built with

Rust, Ratatui, Crossterm, alquran.cloud, the Alkotob API, AlAdhan, and the fawazahmed0 hadith dataset.

License

MIT