calendar
A JavaScript calendar component and library for converting between the Chinese lunar calendar and the Gregorian calendar, including festivals, heavenly stems and earthly branches, and zodiac signs.
Share on XLicense: MIT
Overview
This project is a JavaScript library and web component for converting between the Chinese lunar calendar and the Gregorian calendar. The algorithm follows the Chinese national standard GB/T 33661-2017. A conversion returns the lunar and solar date, leap month flag, heavenly stem and earthly branch names, zodiac animal, solar term, zodiac sign and festival. It also provides a calendar element with select, change and init events.
Key features
- Converts between lunar and Gregorian dates
- Returns stem-branch names, zodiac animal, solar term and festival
- Follows the national standard GB/T 33661-2017
- Web component with onSelect, onChange and onInit events
Best for
Web developers who need lunar date conversion or a ready calendar widget for Chinese calendar information.
- Upstream
- mumuy/calendar
- Fork on GitHub
- Guo-astro/calendar
- Upstream stars
- 137
- Category
- Developer tools and infrastructure
- Language
- JavaScript
- License
- MIT
- Forked
- 2025-12-13
- Sync status
- In syncLast synced 2026-09-29
More in Developer tools and infrastructure
DBX is a lightweight, cross-platform database client for connecting to and managing over 100 database types. It offers desktop, Docker, and CLI access, plus AI assistance and an MCP Server for database workflows.
Forked 2026-09-29Last synced 2026-09-29License: Apache-2.0Developer tools and infrastructureGitHub
Escrcpy is a graphical desktop interface for scrcpy that mirrors and controls Android devices. It helps developers and testers manage connected devices, including wireless and multi-device workflows.
Forked 2026-09-29Last synced 2026-09-29License: Apache-2.0Developer tools and infrastructureGitHub
Lightpanda is a headless browser built from scratch for AI agents and automation. It aims to be lighter and faster than Chromium and works with Playwright and Puppeteer.
Forked 2026-09-28Last synced 2026-09-29License: AGPL-3.0Developer tools and infrastructureGitHub
A self-hosted open-source monitoring platform for servers, apps and infrastructure. It offers uptime monitoring, distributed checks, incident tracking and alerts.
Forked 2026-09-28Last synced 2026-09-29License: MITDeveloper tools and infrastructureGitHub