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

kailendar

v0.0.5

Published

A flexible React calendar component library with multiple views.

Readme

Overview

Kailendar is a React component library that provides a full-featured calendar with five views: Day, Week, Month, Year, and Mini Month. It ships a single top-level <Kailendar /> component that handles view switching and navigation, as well as individual view components that can be used standalone.

The apps/hello directory contains a demo app that showcases all features of the library.

Installation

npm install kailendar

Peer dependencies: react >= 19.2.4 and react-dom >= 19.2.4.

Quick Start

import { Kailendar, KAILENDAR_VIEWS } from "kailendar";
import "kailendar/dist/style.css";
import { useState } from "react";

function App() {
  const [view, setView] = useState(KAILENDAR_VIEWS.WEEK);
  const [currentDate, setCurrentDate] = useState(new Date());

  return (
    <Kailendar
      view={view}
      setView={setView}
      currentDate={currentDate}
      setCurrentDate={setCurrentDate}
      getEvents={(start, end) =>
        myEvents.filter((e) => e.start >= start && e.start <= end)
      }
    />
  );
}

Exports

| Export | Description | | ----------------- | -------------------------------------------------- | | Kailendar | Main component with header and view switching | | MonthView | Standalone month grid view | | WeekView | Standalone week timeline view | | DayView | Standalone day timeline view | | YearView | Standalone year overview (12 mini months) | | MiniMonthView | Standalone mini month (sidebar style) | | CommonHeader | Header with navigation and view switcher | | KAILENDAR_VIEWS | Enum: year, month, month-mini, week, day | | Event | Event interface | | KailendarProps | Props type for the Kailendar component |

Kailendar Props

| Prop | Type | Default | Description | | ------------------ | ------------------------------------- | ---------- | ------------------------------------------------- | | view | KailendarView | — | Current calendar view (required) | | setView | (view: KailendarView) => void | — | View change handler (required) | | currentDate | Date | — | The focused date (required) | | setCurrentDate | (date: Date) => void | — | Date change handler (required) | | getEvents | (start: Date, end: Date) => Event[] | () => [] | Returns events in a date range | | showHeader | boolean | true | Show navigation header | | ghostEvent | Event | — | A provisional event to display (e.g. during drag) | | onEventClick | (event: Event) => void | — | Called when an event is clicked | | onTimeClick | (time: Date) => void | — | Called when a time slot is clicked (Day/Week) | | onDayClick | (date: Date) => void | — | Called when a day is single-clicked | | onDayDoubleClick | (date: Date) => void | — | Called when a day is double-clicked |

Event Interface

interface Event {
  id: string;
  title: string;
  color: string;
  start: Date;
  end: Date;
  others?: Record<string, string | number | boolean | Date>;
}

Standalone Views

Each view can be used independently with its own props:

import {
  MonthView,
  WeekView,
  DayView,
  YearView,
  MiniMonthView,
} from "kailendar";

See the source for each view's prop interface — they all accept at minimum currentDate and getEvents, plus view-specific callbacks.

Demo

pnpm hello

This starts the hello demo app where you can interact with all calendar views.