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

@sushill/react-nepali-calendar

v1.1.1

Published

Bikram Sambat calendar for React — dual BS/AD display on react-day-picker v9

Readme

@sushill/react-nepali-calendar

Bikram Sambat (Nepali) calendar for React — dual BS/AD day display on react-day-picker v9.

Live Demo →

Values in and out are always JavaScript Date (Gregorian). The grid navigates and labels months in Bikram Sambat.

Install

npm install @sushill/react-nepali-calendar react-day-picker

Peers: react ≥18, react-dom ≥18, react-day-picker ^9.

Setup

import "react-day-picker/style.css"
import "@sushill/react-nepali-calendar/styles.css"

Tailwind users: add the package to content in tailwind.config if you override classNames:

content: ["./node_modules/@sushill/react-nepali-calendar/dist/**/*.js"]

Usage

Single date

import { useState } from "react"
import { NepaliCalendar } from "@sushill/react-nepali-calendar"

export function Example() {
  const [date, setDate] = useState<Date>()

  return (
    <NepaliCalendar
      mode="single"
      selected={date}
      onSelect={setDate}
      {...(date ? { defaultMonth: date } : {})}
    />
  )
}

With festivals (v1.1.0+)

<NepaliCalendar
  mode="single"
  selected={date}
  onSelect={setDate}
  showFestivals
/>

Red dots mark national holidays; blue dots mark other festivals. Works offline using built-in festival data from @sushill/bikram-sambat.

Date range

import { useState } from "react"
import type { DateRange } from "react-day-picker"
import { NepaliCalendar } from "@sushill/react-nepali-calendar"

export function RangeExample() {
  const [range, setRange] = useState<DateRange>()

  return (
    <NepaliCalendar
      mode="range"
      numberOfMonths={2}
      {...(range?.from ? { defaultMonth: range.from } : {})}
      {...(range ? { selected: range } : {})}
      onSelect={setRange}
    />
  )
}

Conversion & festival queries

import {
  adToBS,
  bsToAD,
  formatBSDate,
  getFestivalsForDate,
  getNationalHolidays,
} from "@sushill/react-nepali-calendar"

Props

Extends all react-day-picker props, plus:

| Prop | Default | Description | |------|---------|-------------| | showGregorianDates | true | Small AD day under each BS day | | showFestivals | false | Festival/holiday dot indicators on days |

Supported BS years

1700–2200 via @sushill/bikram-sambat (2000–2099 official lookup; other ranges sankranti estimated).

Changelog

See CHANGELOG.md in the repo root.

License

MIT