jjonline/calendar.js
中国农历(阴阳历)和西元阳历即公历互转JavaScript库 observed · 2026-08-28
Health v2 · maintenance only
29/100
- Activity 13
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3113
- days_rel: n/a
- days_push: 527
- n_releases_24m: 0
Adoption not part of the score
1053 stars · 396 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small JavaScript library for converting between the Chinese lunar calendar and the Gregorian (solar) calendar. It also returns supplementary data such as heavenly stems and earthly branches (Gan-Zhi), zodiac animals, solar terms, and astrological signs.
Use cases
- convert a Gregorian date to Chinese lunar date
- convert lunar date to solar date in JavaScript
- get Chinese zodiac animal for a birth year
- display lunar dates in a Chinese calendar app
- compute heavenly stems and earthly branches for a date
- find solar terms for a given lunar month
When to choose
- you need lightweight lunar/Gregorian conversion in JavaScript without dependencies
- you want lunar calendar metadata like Gan-Zhi, zodiac, and solar terms
- you are building a Chinese-language app that shows traditional dates
When to avoid
- you need calendars other than Chinese lunar and Gregorian
- you need a full-featured calendar UI component rather than a conversion library
- you need non-JavaScript language support
Facets
library · maturity stable
date-time internationalization developer-tools web-development browser cross-platform chinese-lunar-calendar solar-lunar-conversion calendar gan-zhi zodiac localization javascript nodejs
1 source
- readme: https://github.com/jjonline/calendar.js · fetched 2026-08-28 · 063a48fffcd8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jjonline/calendar.js | main | 29 |
For agents
markdown · JSON · MCP: product_card(name="jjonline/calendar.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem