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 React docs. @moltenship/calendar renders the engine in React 19, and the week, day, month, year, agenda and resource views are React source files you copy into your app. The select at the top of the sidebar switches to the Solid docs.

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

To see every view with more data, try the live demo, a Google Calendar-style app built from the same views.

Where to start

What it looks like

This is the render part of the Quick start. Calendar comes from createCalendar, and meetings is a plain array of your own records.

calendar.tsx
const viewLabels = { week: "Week", day: "Day", month: "Month", agenda: "Agenda" };
const viewSwitcherOptions = Calendar.views.map(({ name }) => ({
  value: name,
  label: viewLabels[name],
}));

function CalendarViewSwitcher() {
  const view = Calendar.useCalendarSelector((state) => state.view);
  const { setView } = Calendar.useCalendarActions();
  return <ViewSwitcher value={view} onValueChange={setView} options={viewSwitcherOptions} />;
}

export const weekRules = { firstDay: 1, minimalDays: 4, weekend: [6, 7] } as const;

export function TeamCalendar({ meetings }: { readonly meetings: readonly Meeting[] }) {
  return (
    <Calendar.Root
      events={meetings}
      defaultAnchorDate={Temporal.PlainDate.from("2026-10-08")}
      defaultTimeZone="Europe/Berlin"
      locale="en-US"
      weekRules={weekRules}
    >
      <Calendar.Frame className="flex h-[640px] flex-col rounded-xl border">
        <CalendarToolbar calendar={Calendar}>
          <CalendarViewSwitcher />
        </CalendarToolbar>
        <Calendar.Viewport className="min-h-0 flex-1">
          <Calendar.ActiveView />
        </Calendar.Viewport>
      </Calendar.Frame>
    </Calendar.Root>
  );
}

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, or start from shadcn/ui,
  • 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.

Comparison sets Time beside FullCalendar and react-big-calendar, including where they're ahead.

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. The registry's views are one UI built on these parts, and Customization shows how to restyle it, edit it or build your own.
  • 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. The docs ship inside @moltenship/calendar, and a skill teaches a coding agent the library. See Build with a coding agent.

Only in React today

On this page