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

react-bali-calendar

v1.2.4

Published

React datepicker for Balinese Calendar with Indonesian National Holidays

Downloads

699

Readme

react-bali-calendar

A React datepicker component featuring Balinese Calendar (Pawukon & Saka) with Indonesian National Holidays.

react-bali-calendar demo

Features

  • 📅 Balinese Calendar System - Displays Pawukon (Wuku, Saptawara, Pancawara) and Saka calendar
  • 🎉 Bali Holidays - Galungan, Kuningan, Nyepi, Saraswati, Pagerwesi, Tumpek
  • 🇮🇩 Indonesian National Holidays - Including Cuti Bersama
  • 🌗 Moon Phases - Purnama (full moon) and Tilem (new moon) indicators
  • 🎨 Light & Dark Themes - Self-contained theming, no conflicts with your Tailwind config
  • 🌐 Bilingual - Indonesian and English locale support
  • Turbopack Compatible - Works with Next.js 13+ App Router

Installation

npm install react-bali-calendar

Quick Start

"use client";

import { useState } from 'react';
import { BaliCalendar } from 'react-bali-calendar';

function MyComponent() {
    const [selectedDate, setSelectedDate] = useState<Date | null>(null);

    return (
        <BaliCalendar
            selectedDate={selectedDate}
            onDateChange={setSelectedDate}
            theme="light"
            locale="id"
        />
    );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | selectedDate | Date \| null | - | Controlled selected date | | onDateChange | (date: Date) => void | - | Callback when date is selected | | theme | 'light' \| 'dark' | 'light' | Color theme | | locale | 'id' \| 'en' | 'id' | Language (Indonesian/English) | | inheritTheme | boolean | false | If true, inherits Tailwind dark mode from parent | | showBaliHolidays | boolean | true | Show Bali holidays | | showNationalHolidays | boolean | true | Show national holidays | | showCutiBersama | boolean | true | Show cuti bersama | | className | string | - | Additional CSS classes |

Visual Indicators

| Indicator | Meaning | |-----------|---------| | 🔴 Red circle around date | Bali Holiday (Hari Raya) | | 🔴 Red dot (bottom-right) | National Holiday | | 🟡 Yellow dot (top-right) | Purnama (Full Moon) | | ⚫ Dark dot (top-right) | Tilem (New Moon) |

Hover any date to see full Balinese calendar details in the tooltip.

Headless Usage

Use the hook for custom UI:

import { useBaliCalendar } from 'react-bali-calendar/hooks';

const { currentMonth, daysInMonth, nextMonth, prevMonth } = useBaliCalendar({
    initialDate: new Date(),
    showBaliHolidays: true,
});

Utilities

Get holiday data programmatically:

import { getBaliHolidays, getNationalHolidays } from 'react-bali-calendar/utils';

const baliHolidays2025 = getBaliHolidays(2025);
const nationalHolidays2025 = getNationalHolidays(2025);

License

MIT


🏝️ Made with ❤️ for Bali