API reference

Overview

What each package exports, and where to import it from.

In a React app, import from @moltenship/calendar. It includes the React components and hooks, the event engine, the Temporal helpers, and the pointer interactions, so one import line covers the calendar:

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

The iCalendar parser, @moltenship/ics, stands alone. @moltenship/calendar doesn't re-export it, so install it and import it by its own name. It doesn't need the calendar either.

Recurring events come from @moltenship/calendar-recurrence, which @moltenship/calendar doesn't re-export either. It turns series into occurrences that the calendar shows as ordinary events.

@moltenship/calendar-dnd-kit connects the calendar to dnd-kit, for apps that drag their own items into it. It's optional and not re-exported, so the calendar's install carries no dnd-kit.

Tests use @moltenship/calendar-testing, a development dependency: see Testing.

The agent bridge isn't the calendar's: createAgent, agentTools and registerTools come from @ui-sdk/react/agent, which your app imports itself. See Agents in your app.

Packages

PackageContentsDependencies
@moltenship/calendarRe-exports calendar-react, -core, -temporal and -dnd. Since 2.0 it ships these docs as Markdown and a skill for coding agentsThose four; React 19, @ui-sdk/core, @ui-sdk/react (peers)
@moltenship/calendar-reactcreateCalendar, defineCalendarView, components, hooks, storecalendar-primitives, calendar-dnd, calendar-core, calendar-temporal; React 19, @ui-sdk/core, @ui-sdk/react (peers)
@moltenship/calendar-primitivesThe calendar's state, actions and runtime, agent actions included, with no framework. Not re-exported.calendar-core, calendar-temporal; @ui-sdk/core (peer)
@moltenship/calendar-solidcreateCalendar, defineCalendarView, parts and hooks for SolidJS 2, and re-exports -core, -temporal and the pointer helpers of -dnd. Not re-exported.calendar-primitives, calendar-dnd, calendar-core, calendar-temporal; solid-js, @solidjs/web, @ui-sdk/core, @ui-sdk/solid (peers)
@moltenship/calendar-coreAdapters, validation, snapshots, queries, changes and policies, view strategies, availability. No React.calendar-temporal, @flatten-js/interval-tree
@moltenship/calendar-temporalRanges, grids, rounding, zoned days, DSTNone
@moltenship/calendar-dndPointer drag, resize, and create for views, with no frameworkcalendar-core, calendar-temporal
@moltenship/icsiCalendar parsing into Temporal values. Not re-exported.None
@moltenship/calendar-recurrenceSeries expansion, occurrence IDs, series edits. Not re-exported.calendar-core, calendar-temporal, ics
@moltenship/calendar-dnd-kitdnd-kit items dragged in, events dragged out. Not re-exported.calendar-dnd, calendar-core; React 19, dnd-kit 0.5 (peers)
@moltenship/calendar-testingA test harness for a React calendar: fixed clock, builders, render and hydrationcalendar, calendar-recurrence; React and React DOM 19, @ui-sdk/core, @ui-sdk/react (peers)

Every package is ESM only. Import from the package name: paths inside a package aren't part of the API.

On this page