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

LanguageVersionPackage
Java8 or laterjp.kurashina:japan-holidays
Node.js22 or later@kurashina-design/japan-holidays
Python3.9 or laterjapan-holidays (import as japan_holidays)

Install

<dependency>
  <groupId>jp.kurashina</groupId>
  <artifactId>japan-holidays</artifactId>
  <version>1.0.0</version>
</dependency>

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日

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 install to install it in your local Maven repository.
  • Node.js — run npm ci and npm pack in packages/node, then install the generated tarball.
  • Python — run pip install ./packages/python from the repository root.