2.0 · React 19 · SolidJS 2

The Temporal calendar for React, Solid and AI agents

One engine computes time zones, daylight saving time and recurrence. React and SolidJS 2 render it, with views you copy and own. An AI agent can read the calendar and change it, under rules your app sets.

pnpm add @moltenship/calendar @ui-sdk/core @ui-sdk/react react react-dom

ui-sdk is a beta.

Live, in your time zone. Drag to move, resize or create events.

One engine for React and Solid

The packages that hold events, time and state import no UI framework. The calendar above is that engine with the React views from this site's registry. The packages ship no styles, and those views are one UI on top of them. You can restyle it, edit its files or build your own with MUI or any other library.

Temporal, not Date

A timed event is a Temporal.Instant, an all-day event a Temporal.PlainDate, and a floating event a Temporal.PlainDateTime.

Time zones and DST

The engine lays out days that are 23 or 25 hours long, and the hours a clock change skips or repeats, in any IANA time zone.

Recurrence and iCalendar

Two more packages expand RRULE series inside the dates on screen and parse ICS feeds into Temporal values.

Views you copy and own

Week, day, month, year, agenda and resource views are React source files. The shadcn CLI copies them into your app, in Tailwind CSS or StyleX.

Typed adapters

One adapter reads an ID, a title and a time range from your records. TypeScript keeps your record and ID types in every hook and callback.

Server rendering

In React, the calendar reads no clock, host time zone or window while it renders on the server, so the server and the browser render the same markup.

An AI agent can read this calendar and change it

A calendar describes itself to an agent as state, events and fourteen named actions, and a fifteenth, deleting, when you allow it. The agent never reads your markup or simulates a pointer. Here is a live calendar and what the bridge lists for it. Each button sends the call a model would send.

Live. The buttons call the bridge as a model's tool calls would, and each result is what the model gets back; no model runs on this page. Drag a meeting and the snapshot follows.
An agent sees nothing by default.
An agent can read or change a calendar only after your app creates ui-sdk's agent bridge.
Your policies check every change an agent makes.
The bridge asks your allow function before each step. A change then goes through your policies and onEventChange, as a drag does.
Deleting is off.
A calendar has no deleteEvent action until Root has allowAgentDelete, and your app can ask the person first.
Works with a browser's agent or your own model.
agentTools hands the bridge's three tools to a model you call. registerTools offers the same tools through WebMCP, an experimental browser API, where the browser has it.
Read the agents guide

One engine, in React and in Solid.

One package holds the calendar's state and actions. It imports no framework and is built on ui-sdk. React and Solid each have a package that renders that state. The Solid package has the parts and hooks React has, keyboard navigation, dragging and undo included, and its registry has every view, in Tailwind CSS.

ui-sdk is a beta, so its API can still change.

What the React and Solid integrations have today
React 19SolidJS 2
Engine, state and event changesYesYes
Actions an agent can callYesYes
Root, parts and hooksYesYes
Keyboard navigation in a viewYesYes
Drag, resize and createYesYes
Undo and redoA hook and shortcutsA hook and shortcuts
Ready-made viewsshadcn/ui or StyleX sourceEvery view, as Tailwind CSS source
Testing packageYesNo

One adapter types the whole calendar

  1. 1Describe your records with an event adapter.
  2. 2Create a calendar typed by those records.
  3. 3Use its hooks and components with your types, no casts.
Build the React quick start
calendar.ts
"use client";

import { createCalendar, defineEventAdapter } from "@moltenship/calendar";

interface Meeting {
  id: string;
  title: string;
  roomIds: string[];
  start: Temporal.Instant;
  end: Temporal.Instant;
}

export const Calendar = createCalendar<Meeting, { id: string }>()({
  eventAdapter: defineEventAdapter<Meeting>()({
    getId: (meeting) => meeting.id,
    getTitle: (meeting) => meeting.title,
    getResourceIds: (meeting) => meeting.roomIds,
    getInterval: ({ start, end }) => ({ kind: "timed", start, end }),
  }),
});

Docs your coding agent can read

A coding agent trained before 2.0 guesses at this API. The docs come as Markdown, on the site and inside the package, and a skill tells the agent where to look first.

Build with a coding agent
/llms.txt

The index of every page, with a Markdown version of each at its address plus .md.

node_modules/@moltenship/calendar/docs

The same pages inside the package since 2.0, for the version you installed.

npx skills add Moltenship/time --skill moltenship-time

The skill has seven reference files. @moltenship/calendar ships it under skills/.