ProSchedulerSign in

Get started

Installation and first scheduler

ProScheduler is commercial software, published to a private npm registry. Add the registry to your .npmrc, install the package and its peers, import the stylesheet, and render.

Authenticate with the registry

@andreisaac/pro-scheduler is not on the public npm registry. Buy a project licence and issue a token from your account. One token installs every andreisaac package your account is licensed for. Then put this line in the project’s .npmrc — it holds no secret, so commit it:

@andreisaac:registry=https://andisaac-pro-scheduler.vercel.app/api/registry/

Store the token once, outside the project. This writes it to your user-level npm config (~/.npmrc) and works the same on macOS, Linux and Windows:

npm config set //andisaac-pro-scheduler.vercel.app/api/registry/:_authToken ais_live_…

Install

npm install @andreisaac/pro-scheduler

Peer dependencies are not bundled, so you control their versions and there is exactly one copy of each:

npm install react react-dom radix-ui @base-ui/react @dnd-kit/core @tanstack/react-virtual lucide-react
Peer dependencies
PackageRangeUsed for
react, react-dom^18.2 || ^19
radix-ui^1.4Dialog, select, tooltip
@base-ui/react>=1.6 <2View and length toggles
@dnd-kit/core^6.1Moving events
@tanstack/react-virtual^3.10Timeline rows and the agenda list
lucide-react>=1.21 <2Icons

Import the stylesheet once, near your app root. It ships no CSS reset, so it will not disturb your base styles:

// Once, near your app root
import "@andreisaac/pro-scheduler/styles.css"

Your first scheduler

ProScheduler is a client component, and it is controlled: it never edits the array you pass as data. Moves, resizes, creations and deletions each arrive as a callback; apply them to your state and the view follows.

"use client"

import { useState } from "react"
import { ProScheduler, type SchedulerEvent, type SchedulerResource } from "@andreisaac/pro-scheduler"

const resources: SchedulerResource[] = [
  { id: "ada", name: "Ada Moreno", color: "#2563eb" },
  { id: "ben", name: "Ben Okafor", color: "#059669" },
]

export function TeamWeek({ initial }: { initial: SchedulerEvent[] }) {
  const [events, setEvents] = useState(initial)

  return (
    <ProScheduler
      data={events}
      resources={resources}
      view={{ scheduler: { type: "week", startTime: "07:00", endTime: "20:00" } }}
      height={620}
      onEventCreated={(event) => setEvents((list) => [...list, event])}
      onEventUpdated={(event) =>
        setEvents((list) => list.map((e) => (e.id === event.id ? event : e)))
      }
      onEventDeleted={(event) =>
        setEvents((list) => list.filter((e) => e.id !== event.id))
      }
    />
  )
}
Live demo

A week of studio bookings

Drag an event to another day, resize it from the bottom, or drag down an empty column to create one.

import { useMemo, useState, useSyncExternalStore } from "react"
import { ProScheduler, type SchedulerEvent } from "@/components/pro-scheduler"
import { studioResources, studioSessions } from "@/lib/demo-data/studio"

const subscribe = () => () => {}

/** False during the server render and hydration, true afterwards. */
function useHydrated() {
  return useSyncExternalStore(subscribe, () => true, () => false)
}

function Placeholder({ height }: { height: number }) {
  return <div aria-hidden className="docs-demo__placeholder" style={{ height }} />
}

/**
 * ProScheduler is controlled: it never edits `data` itself. The callbacks below
 * are the whole contract — apply the change, and the view re-renders from it.
 */
function useEvents(initial: () => SchedulerEvent[]) {
  const [events, setEvents] = useState(initial)

  const handlers = useMemo(
    () => ({
      onEventCreated: (event: SchedulerEvent) =>
        setEvents((list) => [...list, { ...event, id: crypto.randomUUID() }]),
      onEventUpdated: (event: SchedulerEvent) =>
        setEvents((list) => list.map((e) => (e.id === event.id ? event : e))),
      onEventDeleted: (event: SchedulerEvent) =>
        setEvents((list) => list.filter((e) => e.id !== event.id)),
    }),
    []
  )

  return { events, setEvents, handlers }
}

export function WeekDemo() {
  const hydrated = useHydrated()
  const { events, handlers } = useEvents(studioSessions)
  if (!hydrated) return <Placeholder height={620} />

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      view={{
        scheduler: {
          type: "week",
          startTime: "07:00",
          endTime: "20:00",
          timeCellStep: 30,
          dragTimeStep: 15,
          currentTimeIndicator: true,
          cursorTime: true,
        },
      }}
      height={620}
      {...handlers}
    />
  )
}

Set up your AI coding assistant

The package includes an agent skill: instructions that tell a coding assistant how to use ProScheduler correctly — the controlled data model, the view options and the callbacks — so it uses the real prop names instead of guessing them. It lives at node_modules/@andreisaac/pro-scheduler/skills/pro-scheduler and always matches the version you installed. Install it with the open skills CLI:

npx skills add ./node_modules/@andreisaac/pro-scheduler/skills

Or copy the folder into your assistant’s skills folder by hand:

# macOS / Linux
mkdir -p .claude/skills && cp -r node_modules/@andreisaac/pro-scheduler/skills/pro-scheduler .claude/skills/

# Windows (PowerShell)
New-Item -ItemType Directory -Force .claude\skills | Out-Null; Copy-Item -Recurse -Force node_modules\@andreisaac\pro-scheduler\skills\pro-scheduler .claude\skills\