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-calendar

v0.2.0

Published

Hijri-first interactive calendar view Web Component (month, week, day, agenda) with event support.

Readme

@spezutil/hijri-calendar

Hijri-first interactive calendar view Web Component (Fatimid/Bohra calendar) — the Google-Calendar-style companion to @spezutil/hijri-datepicker. Gregorian dates shown as the secondary label.

  • Views: month, week, day (time grids), agenda
  • Controlled event data: pass an events array, listen for event-click, date-click, slot-click, more-click, view-change, date-change
  • Multi-day event spanning, per-event colors, "+N more" overflow, current-time indicator
  • locale="translit|ar", RTL, keyboard-navigable grid, ARIA semantics
  • primary="hijri|gregorian" + secondary-position to control numeral prominence/placement
  • Theming via --hcal-* CSS custom properties and ::part() hooks

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

Install

npm install @spezutil/hijri-calendar

Usage

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

<hijri-calendar view="month" date="2026-07-06"></hijri-calendar>

<script>
  const cal = document.querySelector("hijri-calendar");
  cal.events = [
    { id: "1", title: "Design review", start: "2026-07-06T10:00", end: "2026-07-06T11:30", color: "#1a73e8" },
    { id: "2", title: "Conference", start: "2026-07-08", end: "2026-07-10" }, // all-day, end inclusive
  ];
  cal.addEventListener("event-click", (e) => console.log(e.detail.event));
  cal.addEventListener("slot-click", (e) => console.log(e.detail.gregorian)); // "2026-07-06T09:30"
</script>

Events use Gregorian ISO strings on the wire; every emitted detail carries both the Hijri and Gregorian date.

Theming

hijri-calendar {
  --hcal-accent: #7c3aed;
  --hcal-radius: 14px;
}
hijri-calendar::part(event) { border-radius: 999px; }

Arabic font

The Amiri typeface is embedded (base64, no files to host) and used by default for Hijri numerals, weekday labels, and the month 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-calendar {
  --hcal-font-family-arabic: "My Custom Arabic Font", serif; /* numerals, Arabic text */
  --hcal-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