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

@liturgical-calendar/components-js

v1.4.0

Published

Liturgical calendar components for javascript: an html select populated with liturgical calendars supported by the Liturgical Calendar API; form controls for parameters that are supported by the Liturgical Calendar API; a webcalendar; and liturgy of the d

Readme

@liturgical-calendar/components-js

A reusable ES6/JavaScript component library for the Liturgical Calendar API. Build liturgical calendar interfaces without a build step.

LiturgyOfAnyDay Example

Quick Start

<script type="module">
import {
    ApiClient,
    CalendarSelect,
    LiturgyOfTheDay
} from 'https://cdn.jsdelivr.net/npm/@liturgical-calendar/components-js@latest/+esm';

ApiClient.init().then((apiClient) => {
    if (!(apiClient instanceof ApiClient)) return;

    const calendarSelect = new CalendarSelect('en-US')
        .class('form-select')
        .allowNull();
    calendarSelect.appendTo('#calendar-container');

    const liturgy = new LiturgyOfTheDay('en-US')
        .class('liturgy-widget')
        .showReadings(true)
        .listenTo(apiClient);
    liturgy.appendTo('#liturgy-container');

    apiClient.listenTo(calendarSelect);
    apiClient.fetchCalendar('en');
});
</script>

Components

| Component | Description | |-----------|-------------| | ApiClient | Manages API communication and data fetching | | CalendarSelect | Dropdown for selecting liturgical calendars | | ApiOptions | Form controls for API parameters | | WebCalendar | Full calendar table with customizable display | | LiturgyOfTheDay / LiturgyOfAnyDay | Daily liturgy widgets | | PathBuilder | API URL builder tool | | Utils | Utility functions for locale detection and validation |

Documentation

Examples

The examples/ folder contains complete working examples:

| Example | Description | |---------|-------------| | LiturgyOfTheDay | Today's liturgy with calendar/locale selection | | LiturgyOfAnyDay | Browse any date with lectionary readings | | WebCalendar | Full calendar table with display options | | PathBuilder | Interactive API URL builder |

To run examples:

  1. Start the Liturgical Calendar API on localhost:8000
  2. Serve the project: python3 -m http.server 3001
  3. Open http://localhost:3001/examples/LiturgyOfTheDay/

Exports

export {
    // Components
    ApiClient,
    CalendarSelect,
    ApiOptions,
    WebCalendar,
    LiturgyOfTheDay,
    LiturgyOfAnyDay,
    PathBuilder,
    Input,
    Utils,

    // Enums
    Grouping,
    ColorAs,
    Column,
    ColumnOrder,
    DateFormat,
    GradeDisplay,
    ApiOptionsFilter,
    CalendarSelectFilter,
    YearType,
    LatinInterface
}

Key Features

  • No build step required - Use directly from CDN with ES6 imports
  • Chainable configuration - Fluent API for all components
  • Automatic caching - Reduces redundant API requests
  • Locale support - 13 languages supported
  • Bootstrap compatible - Easy integration with Bootstrap 5
  • TypeScript definitions - Full type support in dist/index.d.ts

Browser Support

Modern browsers with ES6 module support. Requires <script type="module">.

Development

yarn install          # Install dependencies
yarn compile          # Compile TypeScript
yarn test             # Run tests
yarn storybook        # Launch Storybook

See Storybook documentation for detailed setup.

License

ISC