vsme/chinese-days
vsme/chinese-days has 1,323 GitHub stars and 58 forks. GitHot measured 0 stars in 24 hours and +7 in 7 days. Last checked 2026-11-10 20:00 UTC. Last push 2026-10-11.
中国法定节假日、调休和工作日、24节气查询,农历阳历互转,提供 JSON 文件,对非开发者,还提供 iCal 日历订阅,可供 Google Calendar、Apple Calendar、Microsoft Outlook 等客户端使用。
Measured star growth
- in 24h
- 0
- in 7 days
- +7
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalChinese Days
This project provides a series of functions for querying Chinese holidays, adjusted working days, working days, 24 solar terms, and converting between lunar and solar calendars. Provide JSON file, Additionally, it supports ics file subscription for holidays, which can be subscribed to by Google Calendar, Apple Calendar, Microsoft Outlook, and other clients.
Automation
Automation only appends the year after the latest recorded year; existing years are skipped. AI extracts official notice facts and proposes in-lieu dates with explanations. Statutory dates, compensatory rest and calendar conflicts are validated automatically, with correction retries before creating a regular PR. No per-year manual rules or in-lieu confirmation step is required. Email is sent only when the PR changes. The existing .r(), .w(), and .i() format is preserved. Merging a production holiday PR into main automatically increments the patch version, creates a version tag and publishes to npm. Test PRs do not trigger a release.
Documentation
To check out docs, visit chinese-days.yaavi.me.
The holiday information will be updated according to the announcements from the State Council.
- Holidays: Supports the years 2004 to 2026, including the extended Spring Festival of 2020.
- 24 Solar Terms: Supports the years 1900 to 2100.
- Lunar Days: Supports the years 1900 to 2100.
Subscribe to Calendar
The subscribed calendar includes holidays and adjusted working days for the past three years (2024-2026).
Subscription URL: https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.ics (default language is Chinese)
For English: https://cdn.jsdelivr.net/npm/chinese-days/dist/holidays.en.ics
If you need a ics file for a specific year, you can also reference it through this link: https://cdn.jsdelivr.net/npm/chinese-days/dist/years/2025.en.ics, and the Chinese version is https://cdn.jsdelivr.net/npm/chinese-days/dist/years/2025.ics.
For non-JS projects, you can use the JSON file
A JSON file of Chinese holidays is provided and can be directly referenced through this link: chinese-days.json.
If you need a JSON file for a specific year, you can also reference it through this link: years/2025.json.
For example, in Java, you can refer to Warnier-zhang/java-chinese-days, which is only for querying Chinese holidays, in-lieu days, and regular workdays.
Contributing
- Fork + Clone the project to your local machine;
- Holidays: Modify the holiday definitions;
- Lunar definitions: Modify the lunar definitions;
- For other modifications, refer to the source code yourself;
- Submit a PR.
Acknowledgements
- Lunar calendar data is sourced from the Bigkoo/Android-PickerView project.
- Chinese holiday data generation references the
Pythonversion of the LKI/chinese-calendar project. - Thank you for the recommendation from Mr. Ruan Yifeng.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,804 starspublic-apis/public-apis
A collective list of free APIs
498,165 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
452,192 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,350 stars