AI Draft Review
ExamplesStreams JSON Patch into a shadow calendar, shows pending changes in the live grid, then applies or discards the draft as one undoable commit.
Consumer booking UI with a date grid, time slots, seats, closed-day overrides, and the booking lifecycle backed by availability rules.
A Cal.com-style booking surface that turns availability schedules and event types into selectable slots and booking records.
Change the width and theme, then interact with the components.
bun add @reopt-ai/opt-calendarimport { Calendar, type AvailabilitySchedule, type EventType } from "@reopt-ai/opt-calendar";Streams JSON Patch into a shadow calendar, shows pending changes in the live grid, then applies or discards the draft as one undoable commit.
Month view, recurring weekdays, all-day spans, timed events, arrow-key grid navigation, activation callbacks, and editable event creation in one production calendar fixture.
Windowed remote event loading with snapshot versions, stale response protection, telemetry, and a read-only week grid with arrow-key day-column navigation.