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.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
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-20
More in Developer tools and infrastructure
An open-source TypeScript engine for calculating Zi Wei Dou Shu charts and consulting traditional references. It helps developers build charting and interpretation tools.
Forked 2026-10-18Last synced 2026-10-20License: MITDeveloper tools and infrastructureGitHub
ImHex is a hex editor for inspecting and editing binary files. Reverse engineers, programmers, and forensic users can search and patch bytes or describe file structures with its pattern language.
Forked 2026-10-17Last synced 2026-10-20License: GPL-2.0Developer tools and infrastructureGitHub
Numa is a portable DNS resolver for local development and privacy. It blocks ads, gives local services names like frontend.numa, and runs without depending on a cloud account.
Forked 2026-10-17Last synced 2026-10-20License: MITDeveloper tools and infrastructureGitHub
Handwired turns ordinary JavaScript logic into differentiable neural-network-style calculations, so programs can run as matrix operations in JavaScript or WebGPU. It is for experimenting with GPU execution and optimization of code written in a traditional style.
Forked 2026-10-16Last synced 2026-10-20License: MITDeveloper tools and infrastructureGitHub