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

@scopmx/calendar-customization

v1.0.0

Published

Reusable scheduling calendar component library (React)

Readme

@scopmx/calendar-customization

A turnkey scheduling calendar for React — drop in a full resource-scheduling app or a personal-calendar app, or build your own layout from the same primitives.

Two ready-to-use, full-featured components cover most products out of the box:

  • CalendarWorkspace — an all-in-one app: personal calendar and resource-grid ("who's free when") modes behind a single toggle, sharing one events/resources store and one density/theme setting.
  • ResourceScheduler — the resource-grid mode alone (rows/columns are people or rooms), for a product that only needs that view.

Both bundle event create/edit, drag-and-drop, a per-resource working-hours editor, and undo toasts — the same experience end to end, not just the grid.

Features

  • Views: Day, Week, Fortnight, Month, Agenda/Schedule, and an arbitrary Custom range — both in a resource grid (ResourceScheduler) and an aggregated personal-calendar layout (FullCalendarApp).
  • Drag-and-drop, validated live: dragging previews whether the drop is valid (capacity, working hours) before you release — an invalid drop snaps back with a toast instead of committing and asking you to fix it after. Dragging a recurring event prompts this/following/all, matching its own edit dialog; dragging one day of a multi-day event prompts whether to move the whole span or split that day off into its own event.
  • Recurring events: weekly rules, per-occurrence exceptions, and this/following/all edit and delete scoping.
  • Resource scheduling: per-resource working hours (with date-specific overrides), capacity/double-booking limits, a schedule editor with saveable templates, bulk date overrides (holidays), and copy/paste-week authoring.
  • Theming: light/dark/system, three density presets, 14 named event colors, and a CSS-custom-property token system (@scopmx/calendar-customization/tailwind-preset + @scopmx/calendar-customization/styles.css) — restyle without touching component code.
  • Responsive: the filter sidebar and secondary toolbar controls collapse below ~900px instead of overflowing.
  • Accessibility: aria-live toasts, keyboard shortcuts, outside-click/Escape-dismissing menus.
  • Everything is a controlled prop or an overridable slotresources/events are host-owned arrays, and every rendered piece (event chip, resource header, empty/loading/error state, and more) can be swapped via the slots prop without forking the library.

Install

npm install @scopmx/calendar-customization
/* your global stylesheet, once */
@import "@scopmx/calendar-customization/styles.css";
// tailwind.config.ts
import calendarPreset from "@scopmx/calendar-customization/tailwind-preset";

export default {
  presets: [calendarPreset],
  content: ["./app/**/*.{ts,tsx}", "./node_modules/@scopmx/calendar-customization/dist/**/*.{js,mjs,cjs}"],
};

On Next.js, also add transpilePackages: ["@scopmx/calendar-customization"] to next.config.mjs.

Quick start

"use client";
import { useState } from "react";
import { CalendarWorkspace } from "@scopmx/calendar-customization";
import type { CalendarEvent, CalendarResource } from "@scopmx/calendar-customization/core";

export function App() {
  const [resources, setResources] = useState<CalendarResource[]>(myResources);
  const [events, setEvents] = useState<CalendarEvent[]>(myEvents);

  return (
    <CalendarWorkspace
      resources={resources}
      onResourcesChange={setResources}
      events={events}
      onEventsChange={setEvents}
      brand="My App"
    />
  );
}

That's the whole thing — mode toggle, dialogs, drag-and-drop, schedule editor, theme/density controls, all included. Reach for ResourceScheduler or FullCalendarApp directly if you only need one mode, or the lower-level Calendar/view components if you're building fully custom chrome.

Entry points

| Import | Use it for | | --- | --- | | @scopmx/calendar-customization | Full client API — components, hooks, everything in core. Client-only (bundles hooks); don't import from a Server Component. | | @scopmx/calendar-customization/core | Server-safe subset — types, date math, mutation/validation logic, URL state. Fine in Server Components and on the server. | | @scopmx/calendar-customization/tailwind-preset | Tailwind config preset mapping utility classes to the token system. | | @scopmx/calendar-customization/styles.css | The token CSS (--cal-color-*, --cal-shadow-*, etc.) the components read. |

Learn more

This package lives in a monorepo alongside a demo app that exercises the full feature set — see the repo root README for the demo, and DEVELOPMENT.md for the full local dev / build / test / "consuming this from another app" guide.