Getting started
Install Japan Holidays for Java, Node.js, or Python and look up your first holiday.
Japan Holidays provides the same small API in Java, TypeScript, and Python. Each package bundles the official holiday data, so it works offline and has no runtime dependencies.
Registry installation will be available after the initial release.
Requirements
| Language | Version | Package |
|---|---|---|
| Java | 8 or later | jp.kurashina:japan-holidays |
| Node.js | 22 or later | @kurashina-design/japan-holidays |
| Python | 3.9 or later | japan-holidays (import as japan_holidays) |
Install
<dependency>
<groupId>jp.kurashina</groupId>
<artifactId>japan-holidays</artifactId>
<version>1.0.0</version>
</dependency>
implementation("jp.kurashina:japan-holidays:1.0.0")
npm install @kurashina-design/japan-holidays
pip install japan-holidays
The Node.js package is ESM and includes TypeScript declarations. CommonJS code
can load it with require() on Node.js 22.12 or later.
Look up a holiday
import jp.kurashina.japanholidays.Holidays;
Holidays.getHoliday(2026, 11, 23).ifPresent(holiday ->
System.out.println(holiday.getName() + " " + holiday.getJapaneseEraDate()));
// 勤労感謝の日 令和8年11月23日
import { getHoliday } from "@kurashina-design/japan-holidays";
console.log(getHoliday(2026, 11, 23));
// { name: "勤労感謝の日", date: "2026-11-23", japaneseEraDate: "令和8年11月23日" }
from japan_holidays import get_holiday
holiday = get_holiday(2026, 11, 23)
if holiday is not None:
print(holiday.name, holiday.japanese_era_date)
# 勤労感謝の日 令和8年11月23日
Next, see Usage for yearly and monthly listings.
Use a local build
Before the first release, or to test changes, build the packages from a checkout of the repository.
- Java — run
mvn -f packages/java/pom.xml installto install it in your local Maven repository. - Node.js — run
npm ciandnpm packinpackages/node, then install the generated tarball. - Python — run
pip install ./packages/pythonfrom the repository root.