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

@jass75892/nanakshahi-calendar

v0.1.0

Published

Nanakshahi (Sikh) calendar for Node, React, React Native, Angular and the browser — dates, months, festivals and Gurpurabs in Punjabi, Hindi and Pinglish.

Readme

nanakshahi-calendar

Nanakshahi (Sikh) calendar for Node, React, React Native, Angular and the browser. Get Nanakshahi dates, months, weekdays, Gurpurabs, Shaheedi Dihade and Punjab festivals — in English, Punjabi (Gurmukhi), Hindi (Devanagari) and Pinglish (romanised Punjabi).

  • 🧮 Custom, deterministic, timezone-safe date engine (no heavy runtime dependencies).
  • 🌐 Every name and description in 4 languages.
  • 🪔 Festivals including Bandi Chhorr Divas / Diwali and Hola Mohalla (auto-calculated).
  • 📜 Rich detail: significance of each day, and biographies of key figures (Gurus, Maharaja Ranjit Singh, Baba Deep Singh, Bhagat Singh …).
  • 🔭 Past, present and future — pass any date.

The engine is validated day-by-day against the authoritative Sikh calendar (2004–2100). See doc/PROJECT_GUIDE.md for the full API and conventions.

Install

npm install @jass75892/nanakshahi-calendar

Usage

import {
  getNanakshahiDate,
  getFestivalsForDate,
  getUpcomingFestivals,
} from '@jass75892/nanakshahi-calendar'

// Today's Nanakshahi date in every language
const today = getNanakshahiDate('2026-07-04')
today.pretty       // { en:'20 Harh 558', pa:'੨੦ ਹਾੜ ੫੫੮', hi:'२० हाड़ ५५८', pinglish:'20 Harh 558' }
today.weekday.pa   // 'ਸ਼ਨੀਵਾਰ'
today.month_name.hi// 'हाड़'

// Festivals on a date
getFestivalsForDate('2024-11-01').map((f) => f.name.en) // ['Bandi Chhorr Divas / Diwali']

// Detail: significance + figure biography (birth AND death share one bio)
const gp = getFestivalsForDate('2026-01-05')[0]
gp.name.en          // 'Parkash Sri Guru Gobind Singh Ji'
gp.description.pa   // significance in Gurmukhi
gp.figure?.bio.en   // biography of Guru Gobind Singh Ji

// Upcoming events (future / present / past — pass any date)
getUpcomingFestivals('2026-07-04', 5)

CommonJS works too: const { getNanakshahiDate } = require('@jass75892/nanakshahi-calendar').

Development

npm install
npm test           # vitest (cross-validated against the `nanakshahi` oracle)
npm run build      # tsup → dist (ESM + CJS + .d.ts)
npm run gen:movable# regenerate the movable-festival date table

License

MIT. Festival dates are facts; descriptions and translations are authored for this package. The dev-only nanakshahi and mhah-panchang packages (MPL-2.0) are used as a test oracle and date generator and are not bundled at runtime.