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

@manufosela/calendar-inline

v2.0.0

Published

Inline calendar web component with horizontal scrolling

Readme

@manufosela/calendar-inline

Inline calendar web component built with Lit 3. Features date selection, navigation, holidays, week numbers, and full localization support.

Installation

npm install @manufosela/calendar-inline

Usage

<script type="module">
  import '@manufosela/calendar-inline';
</script>

<calendar-inline></calendar-inline>

Examples

Basic Usage

<calendar-inline></calendar-inline>

Pre-selected Date

<calendar-inline value="2025-01-15"></calendar-inline>

Date Range

<calendar-inline
  min="2025-01-01"
  max="2025-12-31"
></calendar-inline>

With Holidays

<calendar-inline id="cal"></calendar-inline>
<script>
  document.getElementById('cal').holidays = [
    { date: '2025-01-01', title: 'New Year' },
    { date: '2025-12-25', title: 'Christmas' }
  ];
</script>

Week Numbers

<calendar-inline show-week-numbers></calendar-inline>

Sunday Start

<calendar-inline first-day-of-week="0"></calendar-inline>

Disabled Dates

<calendar-inline id="cal"></calendar-inline>
<script>
  document.getElementById('cal').disabledDates = [
    '2025-01-05',
    '2025-01-12',
    '2025-01-19'
  ];
</script>

Spanish Locale

<calendar-inline locale="es"></calendar-inline>

Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | value | String | '' | Selected date (ISO format: YYYY-MM-DD) | | min | String | '' | Minimum selectable date | | max | String | '' | Maximum selectable date | | disabledDates | Array | [] | Array of disabled date strings | | holidays | Array | [] | Array of {date, title} objects | | firstDayOfWeek | Number | 1 | First day (0=Sunday, 1=Monday) | | showWeekNumbers | Boolean | false | Show ISO week numbers | | locale | String | 'en' | Locale for formatting |

Methods

| Method | Description | |--------|-------------| | goToMonth(year, month) | Navigate to specific month (0-11) | | goToToday() | Navigate to current month |

Events

| Event | Detail | Description | |-------|--------|-------------| | date-select | {date, dateObj, holiday} | Fired when a date is selected | | month-change | {month, year} | Fired when month changes |

CSS Custom Properties

| Property | Default | Description | |----------|---------|-------------| | --calendar-bg | #fff | Background color | | --calendar-text | #1f2937 | Text color | | --calendar-accent | #3b82f6 | Accent color | | --calendar-today | #dbeafe | Today highlight color | | --calendar-selected | #3b82f6 | Selected date color |

Styling Example

<calendar-inline style="
  --calendar-accent: #8b5cf6;
  --calendar-selected: #8b5cf6;
  --calendar-today: #f3e8ff;
"></calendar-inline>

License

Apache-2.0