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

brownie-ui-calendar

v0.1.4

Published

A modern, accessible calendar component library for Brownie UI

Readme

brownie-ui-calendar

A modern, accessible calendar component for Brownie UI with full event management, drag & drop, and resizable events.

Installation

npm install brownie-ui-calendar
# or
pnpm add brownie-ui-calendar

Quick Start

import { EventCalendar } from 'brownie-ui-calendar';

const events = [
  {
    id: '1',
    title: 'Guitar lesson',
    start: new Date(2024, 3, 9, 14, 0),
    end: new Date(2024, 3, 9, 15, 0),
    category: 'music',
  },
];

const categories = [
  { id: 'music', name: 'Music', color: '#3b82f6' },
  { id: 'sport', name: 'Sport', color: '#ec4899' },
];

function App() {
  return (
    <EventCalendar 
      events={events}
      categories={categories}
      view="month"
      locale="es"
      editable
      onEventClick={(event) => console.log('Clicked:', event)}
      onEventDrop={(event, newDate) => console.log('Moved to:', newDate)}
      onEventResize={(event, newEnd) => console.log('Resized to:', newEnd)}
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | events | CalendarEvent[] | [] | Array of events | | categories | EventCategory[] | Default colors | Event categories | | view | 'month' \| 'week' \| 'day' | 'month' | Current view | | value | Date | - | Controlled selected date | | defaultDate | Date | new Date() | Default selected date | | onChange | (date: Date) => void | - | Date change callback | | onViewChange | (view: CalendarView) => void | - | View change callback | | onEventClick | (event: CalendarEvent) => void | - | Event click handler | | onEventDrop | (event, newDate) => void | - | Drag & drop handler | | onEventResize | (event, newEnd) => void | - | Resize handler | | onSlotClick | (date, hour?) => void | - | Empty slot click handler | | editable | boolean | false | Enable drag & drop + resize | | showLegend | boolean | false | Show category legend | | locale | 'en' \| 'es' | 'es' | Language | | hourFormat | '12h' \| '24h' | '24h' | Time format | | startHour | number | 0 | First hour to display | | endHour | number | 24 | Last hour to display | | renderEvent | function | - | Custom event renderer |

Types

interface CalendarEvent {
  id: string;
  title: string;
  start: Date;
  end: Date;
  category?: string;
  description?: string;
  allDay?: boolean;
}

interface EventCategory {
  id: string;
  name: string;
  color: string;
}

Features

  • 3 Views: Month, Week, Day
  • Drag & Drop: Move events between days/hours
  • Resize: Drag bottom border to extend duration
  • Tooltips: Hover events for details (shadcn/ui)
  • i18n: English & Spanish
  • Past days: Gray styling, disabled interaction
  • Overlap handling: Events auto-arrange horizontally
  • Custom hour range: Limit displayed hours (e.g., 6-18)
  • Headless mode: Custom renderEvent for full control

License

MIT