npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

german-holidays

v1.0.0

Published

German public holidays for all 16 states. Movable holidays, Brückentage, isFeiertag — TypeScript-first, zero dependencies, CLI included.

Readme

Features

  • All 16 federal states — correct holiday rules per Bundesland
  • Movable holidays — Easter, Pentecost, Corpus Christi, etc. calculated automatically
  • Brückentage — find bridge day opportunities to maximize your time off
  • CLI includednpx german-holidays 2026 BY
  • TypeScript-first — full type safety, no @types needed
  • Zero dependencies — pure date arithmetic, no date library
  • Tiny — <2KB gzipped (library), tree-shakeable
  • Dual format — ESM + CJS

Install

npm install german-holidays

Quick Start

import { getFeiertage, isFeiertag, getBrueckentage } from 'german-holidays';

// Get all holidays for Bayern 2026
const holidays = getFeiertage(2026, 'BY');

// Check if a date is a holiday
const result = isFeiertag('2026-12-25', 'BY');
// → { date: '2026-12-25', name: '1. Weihnachtstag', ... }

// Find bridge day opportunities
const brueckentage = getBrueckentage(2026, 'BY');
// → [{ date: '2026-05-15', feiertag: 'Christi Himmelfahrt', urlaubstage: 1, freieTage: 4, ... }]

CLI

# All nationwide holidays
npx german-holidays 2026

# Holidays for a specific state
npx german-holidays 2026 BY

# Bridge day opportunities
npx german-holidays --brueckentage 2026 NW

# English names
npx german-holidays 2026 BY --en

API

getFeiertage(year, bundesland, options?)

Returns all public holidays for a given year and state.

const holidays = getFeiertage(2026, 'BY');
// → Feiertag[]

| Parameter | Type | Description | |-----------|------|-------------| | year | number | Year (e.g. 2026) | | bundesland | Bundesland | State code (e.g. 'BY', 'NW', 'BE') | | options.lang | 'de' \| 'en' | Language for names. Default: 'de' |

isFeiertag(date, bundesland)

Check if a date is a public holiday. Returns the holiday or undefined.

isFeiertag('2026-12-25', 'BY');  // → Feiertag
isFeiertag('2026-03-15', 'BY');  // → undefined
isFeiertag(new Date(), 'BY');    // Date objects work too

getBrueckentage(year, bundesland)

Calculate bridge day opportunities — workdays between holidays and weekends.

const bridges = getBrueckentage(2026, 'BY');
// → Brueckentag[]

Each Brueckentag contains:

| Field | Type | Description | |-------|------|-------------| | date | string | The vacation day to take | | feiertag | string | Connected holiday name | | urlaubstage | number | Vacation days needed | | freieTage | number | Total consecutive days off | | start | string | Start of break | | end | string | End of break |

getGesetzlicheFeiertage(year, options?)

Returns only nationwide holidays (9 per year).

easterSunday(year)

Returns [month, day] for Easter Sunday. Useful for custom calculations.

easterSunday(2026); // → [4, 5] (April 5)

State Codes

| Code | State | |------|-------| | BW | Baden-Württemberg | | BY | Bayern | | BE | Berlin | | BB | Brandenburg | | HB | Bremen | | HH | Hamburg | | HE | Hessen | | MV | Mecklenburg-Vorpommern | | NI | Niedersachsen | | NW | Nordrhein-Westfalen | | RP | Rheinland-Pfalz | | SL | Saarland | | SN | Sachsen | | ST | Sachsen-Anhalt | | SH | Schleswig-Holstein | | TH | Thüringen |

Types

import type { Bundesland, Feiertag, Brueckentag, DateString } from 'german-holidays';

License

MIT