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-10-13
More in Developer tools and infrastructure
iPhone Use lets Codex control a real iPhone over USB through WebDriverAgent for app navigation, page reading, gestures, and text entry. It automates phone tasks and shows a live screen preview.
Forked 2026-10-11Last synced 2026-10-13License: MITDeveloper tools and infrastructureGitHub
AnyPS5 ports PS5 executables to Linux and Windows by converting them to native formats and providing system PRX libraries for dynamic linking. It is for running compatible games without emulation or a separate runtime process.
Forked 2026-10-11Last synced 2026-10-13License: GPL-2.0Developer tools and infrastructureGitHub
Creates full-stack project scaffolds from compatible stack parts, reducing setup and integration work. Use the CLI, browser builder, or MCP server to generate a project.
Forked 2026-10-09Last synced 2026-10-13License: MITDeveloper tools and infrastructureGitHub
A Python SDK for adding local face detection, landmark extraction, and face comparison to applications on Windows and Linux, without sending images off-device.
Forked 2026-10-09Last synced 2026-10-13No license declaredDeveloper tools and infrastructureGitHub