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

coptic-calendar

v1.0.0

Published

A high-precision, polymorphic Coptic calendar library for TypeScript and Node.js.

Readme

high-precision, polymorphic library for the Coptic liturgical calendar, featuring advanced date arithmetic and a modular plugin system for the Synaxarium, liturgical feasts, and canonical rites.

CI NPM Version License GitHub issues GitHub stars PRs Welcome

Features

  • Universal Polymorphism: Convert from native Date, ISO strings, timestamps, elements, or custom Temporal-like objects.
  • Fluent Arithmetic: Perform elegant date manipulations with add, subtract, and with.
  • Localization: Full translation support for English, Arabic, and Coptic (Bohairic).
  • Extensible Architecture: Modular plugin system allows lightweight core or full liturgical immersion.
  • TypeScript Native: Zero-dependency, ESM-first library with strict type safety.

Installation

npm install coptic-calendar

Usage

Basic Conversion

import { CopticDate } from 'coptic-calendar';

// Polymorphic .from() supports Dates, strings, timestamps, and elements
const date = CopticDate.from({ year: 1740, month: 5, day: 23 });

// Access calendar components
console.log(`Coptic Date: ${date.year}-${date.month}-${date.day}`); // "1740-5-23"
console.log(`Is Leap Year: ${date.inLeapYear}`); // false

// Multi-language localization support
console.log(date.toLocaleString({ locale: 'en' })); // "23 Tobi 1740"
console.log(date.toLocaleString({ locale: 'ar' })); // "٢٣ طوبة ١٧٤٠"

Date Arithmetic & Comparison

const start = CopticDate.from('2024-01-01'); // 22 Kiahk 1740

// Addition and Subtraction
const nextMonth = start.add({ months: 1 }); // 22 Tobi 1740
const lastYear = start.subtract({ years: 1 }); // 22 Kiahk 1739

// Fluent modification
const specificDay = start.with({ day: 15 }); // 15 Kiahk 1740

// Comparison
if (start.equals(nextMonth)) { /* ... */ } // false
const order = CopticDate.compare(start, nextMonth); // -1 (start < nextMonth)

Plugin System

The library is lightweight by default, but can be extended with specialized plugins for ecclesiastical data.

Synaxarium Plugin

Provides daily saint commemorations and historical readings.

import { CopticDate } from 'coptic-calendar';
import { synaxariumPlugin } from 'coptic-calendar/plugins/synaxarium';

CopticDate.extend(synaxariumPlugin);

const date = CopticDate.from('2024-04-19'); // 12 Paremoude 1740
console.log(date.synaxarium({ locale: 'en' })); 
// ["The Departure of St. Alexander, Bishop of Jerusalem.", ...]

Occasions Plugin

Calculates all liturgical feasts and fasts, including the moving Paschal cycle.

import { CopticDate } from 'coptic-calendar';
import { occasionsPlugin } from 'coptic-calendar/plugins/occasions';

CopticDate.extend(occasionsPlugin);

const date = CopticDate.from('2024-04-19');
console.log(date.occasions({ locale: 'en' })); // ["Great Lent"]

// Find specific occasions
const easter = date.when('Easter');
console.log(`Easter is on: ${easter.toString()}`); // "1740-8-27"

Typicon Plugin

Derives the active canonical Typicon configuration (season, tune, etc.) for any date.

import { CopticDate } from 'coptic-calendar';
import { typiconPlugin } from 'coptic-calendar/plugins/typicon';

CopticDate.extend(typiconPlugin);

const date = CopticDate.from('2024-04-19');
const rite = date.rite({ locale: 'en' });

console.log(`Season: ${rite.season}`);   // "Great Lent"
console.log(`Tune: ${rite.tune}`);       // "Lenten"
console.log(`Metanoias: ${rite.hasMetanoias}`); // true

Contribution

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under The Unlicense - see the LICENSE file for details.