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

@spezutil/hijri-datepicker

v0.2.0

Published

Zero-dependency Hijri date picker Web Component.

Readme

@spezutil/hijri-datepicker

Hijri-first date picker Web Component (Fatimid/Bohra calendar) with Gregorian dates as the secondary label. Zero dependencies beyond @spezutil/hijri-core, framework-agnostic, Shadow DOM.

  • Modes: single, range (with hover preview), multiple
  • Optional time picker (12/24h)
  • min/max, disabled weekdays, custom isDateDisabled
  • primary="hijri|gregorian" + secondary-position to control which numeral is prominent
  • Abbreviated month marker ("1 Apr") when the Gregorian month changes mid-grid
  • Keyboard navigation, ARIA grid semantics, RTL

React wrapper: @spezutil/hijri-datepicker-react · Angular wrapper: @spezutil/hijri-datepicker-angular

Install

npm install @spezutil/hijri-datepicker

Usage

<script type="module">
  import "@spezutil/hijri-datepicker";
</script>

<hijri-datepicker value="2026-07-06" min="2026-01-01" max="2026-12-31"></hijri-datepicker>

<script>
  document.querySelector("hijri-datepicker").addEventListener("change", (e) => {
    console.log(e.detail); // { mode: "single", hijri: {...}, gregorian: "2026-07-06" }
  });
</script>

Range mode:

<hijri-datepicker mode="range" start="2026-07-01" end="2026-07-10"></hijri-datepicker>

Theming

hijri-datepicker {
  --dtp-accent: #7c3aed;
  --dtp-radius: 12px;
}
hijri-datepicker::part(day) { font-weight: 600; }

Arabic font

The Amiri typeface is embedded (base64, no files to host) and used by default for Hijri numerals, weekday labels, and the title. Amiri is © its authors, redistributed under the SIL Open Font License 1.1 — the license text ships in this repository at assets/fonts/OFL-Amiri.txt.

Swap in any font by overriding the CSS custom properties (load the font yourself via @font-face or a font service):

hijri-datepicker {
  --dtp-font-family-arabic: "My Custom Arabic Font", serif; /* numerals, Arabic text */
  --dtp-font-family: "Inter", system-ui, sans-serif;        /* everything else */
}

Docs

Full API, recipes, and live demos: https://hatimmnomani.github.io/SpezUtil/

License

Apache-2.0