Introduction

A calendar engine on the Temporal API, rendered in React and in SolidJS 2, with actions an AI agent can call.

Moltenship Time is a calendar for scheduling screens such as bookings, rooms, shifts and team calendars. Its engine handles dates, time zones, recurrence, calendar state, event lookups and saving changes, and it imports no UI framework. Your events stay in the shape your app already uses, and Time reads them through an adapter. An AI agent can read the same calendar and act on it through named actions, under rules your app sets.

These are the Solid docs. @moltenship/calendar-solid renders the engine in SolidJS 2: the parts, the hooks, keyboard navigation, dragging, undo and the actions an agent calls. The registry has styled Solid views for the week and day, the month, the year and the agenda, each but the year also as a scrolling view, the resource columns and the resource timeline, with a toolbar and a mini month and a theme of color tokens. A view it doesn't have is a Solid component you write, drawing a layout the engine computes. What Solid doesn't have lists the rest. The select at the top of the sidebar switches to the React docs.

Live. Switch views in the toolbar, or pick a date in the mini month.

The Solid demo is the demo's calendar app in Solid: the registry's week, day, month, year, agenda, resource columns and resource timeline, which you can drag events in, the event editor, unscheduled tasks, settings, undo and redo, and an agent panel. Its source is the repository's apps/demo-solid.

Where to start

What it looks like

This is the status line of a calendar, as a Solid component. Calendar comes from createCalendar, and each hook returns an accessor. The Quick start builds the calendar around it.

status.tsx
import { Calendar } from "./calendar";

// Render it inside <Calendar.Root>.
export function Status() {
  const state = Calendar.useCalendarState();
  const range = Calendar.useVisibleRange();
  const view = Calendar.useCalendarSelector((current) => current.view);
  const saving = Calendar.useCalendarPendingChanges((changes) => changes.size > 0);
  const actions = Calendar.useCalendarActions();

  return (
    <p>
      {view()} from {range()?.start.toString()}, anchored on {state().anchorDate.toString()}
      {saving() ? ", saving" : ""}
      <button type="button" onClick={() => actions.navigateToday()}>
        Today
      </button>
    </p>
  );
}

Who it's for

Time is for developers who build scheduling screens and want to:

  • keep their existing event data and API,
  • style the calendar with their own design system,
  • get time zones and daylight saving time right without writing that math themselves,
  • let an AI agent work with the calendar without handing it the page's markup.

What you get

The engine, the calendar's state, the keyboard, the gestures and the hooks are the same in React and Solid. Solid's registry has every view, in Tailwind CSS, and calendar-full installs them all. The StyleX views, the testing package and the dnd-kit adapter exist in React only. React and Solid has the full table.

  • Your data, read through an adapter. You describe how to read an ID, a title and a time range from your records. TypeScript keeps your record and ID types in every hook and callback.
  • Three kinds of time. Timed events use Temporal.Instant, all-day events use Temporal.PlainDate, and floating events use Temporal.PlainDateTime. No Date objects.
  • Time zones and daylight saving time. The engine lays out days that are 23 or 25 hours long, and hours that a clock change skips or repeats. See Time and time zones.
  • Recurrence and iCalendar. @moltenship/calendar-recurrence expands RRULE series inside the dates on screen, and @moltenship/ics parses ICS feeds. Neither imports a framework.
  • Changes you save. A move, a resize, a create or a delete arrives as a change in onEventChange. It shows as pending while it saves, rolls back if saving fails, and passes through policies you choose. See Interactions.
  • Controlled or uncontrolled state. The calendar or your app can own the visible date, the view, the time zone, the selection and the focus, one value at a time.
  • Headless parts. Root, the previous, next and today buttons, Title and ActiveView render plain elements. A view is a strategy and a component. Custom views shows how to write one, and Customization what the parts leave to you.
  • Actions for agents. A calendar gives an AI agent fourteen actions, and a fifteenth, deleting, when you allow it. They describe the calendar, list its events, navigate, switch view, and create, rename, move and resize events. An agent sees nothing until your app creates ui-sdk's agent bridge. An agent's change goes through your policies and your onEventChange, marked as an agent's, and the agent gets back how it ended. A browser's built-in agent reaches them through WebMCP, an experimental browser API, and a model you run reaches them through agentTools. See Agents in your app.
  • Editing by pointer and keyboard. useCalendarPointer turns drags into moves, resizes and creates, with a mouse, a pen or touch, and useCalendarKeyboard moves focus through a view and moves and resizes events from the keyboard. The Announcer says each step to a screen reader. See Changing events.
  • Undo and redo. createEventHistory records changes, and useCalendarHistory and its keyboard shortcuts take them back. See Undo and redo.
  • Server rendering. During server rendering, Time doesn't read the clock, the host time zone or window, so the server and the browser render the same markup from the same props.
  • Docs your coding agent can read. Every page has a Markdown version, at its own address with .md added, and /llms.txt lists them. A skill teaches a coding agent the library. See Build with a coding agent.

Not in Solid

The registry's StyleX views, the testing package and the dnd-kit adapter exist in React only. What Solid doesn't have lists them.

On this page