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-prayer-times

v1.0.1

Published

Islamic prayer time reminders with adzan for pi coding agent

Readme

pi-prayer-times

Islamic prayer time reminders for pi coding agent. Shows a live countdown to the next prayer below the editor, plays adzan when prayer time arrives, and auto-detects your location via IP.

Features

  • Live countdown — yellow widget below the editor showing time until next prayer
  • Adzan playback — plays bundled adzan.mp3 when prayer time arrives (15-min window)
  • Auto-detect location — IP geolocation (lat/lon) for accurate timings, or manual entry
  • Country-aware calculation — auto-selects the correct calculation method (Kemenag for Indonesia, ISNA for US, etc.)
  • Smart caching — caches daily, survives restarts, auto-refreshes at midnight
  • Multi-instance safe — atomic lock prevents 6 pi tabs from playing 6 overlapping adzans
  • Typo protection — confirms city/country before saving

Install

pi install git:github.com/yourusername/pi-prayer-times

Or clone manually:

git clone https://github.com/yourusername/pi-prayer-times ~/.pi/agent/extensions/pi-prayer-times

Restart pi — the extension auto-loads.

Quick Start

Run /prayer-times:init and choose:

  • Auto-detect (via IP) — detects your city/country/lat/lon automatically
  • Enter manually — type country and city (defaults: Indonesia / Jakarta)

After setup, the widget appears below the editor and stays there.

Commands

| Command | Description | |---------|-------------| | /prayer-times:init | First-run setup — auto-detect or manual | | /prayer-times:show | Show today's 5 prayer times with ← now marker | | /prayer-times:auto-update-location | Re-detect location via IP | | /prayer-times:manual-update-location | Re-enter city/country manually | | /prayer-times:stop | Stop widget, clear cache & config |

Flags

All optional — set in ~/.pi/agent/settings.json or via CLI:

--prayer-city <city>          City (overrides saved config)
--prayer-country <country>    Country (overrides saved config)
--prayer-method <number>      Calculation method override (auto-detected by country)
--prayer-window <minutes>     Minutes to show "prayer time" after adzan (default: 15)
--adzan-path <path>           Custom adzan.mp3 (default: bundled)

Example:

pi --prayer-city "Surabaya" --prayer-country "Indonesia"

Or persist in ~/.pi/agent/settings.json:

{
  "flags": {
    "prayer-city": "Surabaya",
    "prayer-country": "Indonesia"
  }
}

Country → Calculation Method

The extension auto-detects the correct method based on your country:

| Country | Method | |---------|--------| | Indonesia | 20 (Kemenag RI) | | Malaysia, Brunei | 17 (JAKIM) | | Singapore | 11 (MUIS) | | Saudi Arabia, UAE, Qatar, Kuwait, Bahrain, Oman | 4 (Umm Al-Qura) | | USA, Canada | 2 (ISNA) | | UK | 15 (London Unified) | | France | 12 (UOIF) | | Turkey | 13 (Diyanet) | | Egypt | 5 (Egyptian General) | | Pakistan, India, Bangladesh | 1 (Karachi) | | Iran | 7 (Tehran) | | Other | 3 (Muslim World League) |

Override with --prayer-method.

How It Works

  1. Location — IP geolocation (ip-api.com) or manual entry → saved to ~/.pi/prayer-times-config.json
  2. Prayer times — fetched from Aladhan API (coordinates when available, city-name fallback)
  3. Cache — stored in ~/.pi/prayer-times-cache.json, valid 1 day, stale up to 2 days
  4. Widget — updates every 30 seconds, shows countdown or "prayer time" status
  5. Adzan — atomic file lock ensures only one pi instance plays per prayer
  6. Midnight — auto-refreshes prayer times at midnight

Custom Adzan

Replace the bundled adzan.mp3:

pi --adzan-path ~/Music/my-adzan.mp3

Or replace the file in the extension directory.

License

MIT