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";Components and hooks
createCalendar, Root and its props, components, hooks, meta, diagnostics.
Events and snapshots
Adapters, ranges, validation, snapshots, and queries.
Event changes
Proposals, changes, policies, placement helpers, and the pointer layer.
State store
Calendar state without Root, and sharing a store with Root.
Temporal helpers
Ranges, grids, rounding, day boundaries, and DST from calendar-temporal.
Primitives
The calendar without a framework, for integrations. A separate package.
iCalendar (ICS)
Parse ICS feeds and files into typed Temporal values. A separate package.
Recurrence
Expand recurring series for the dates on screen, and edit them. A separate package.
dnd-kit adapter
Drag your dnd-kit items into the calendar and events out. A separate package.
Agent reference
What a calendar tells an AI agent: snapshot fields, actions, arguments and errors.
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
| Package | Contents | Dependencies |
|---|---|---|
@moltenship/calendar | Re-exports calendar-react, -core, -temporal and -dnd. Since 2.0 it ships these docs as Markdown and a skill for coding agents | Those four; React 19, @ui-sdk/core, @ui-sdk/react (peers) |
@moltenship/calendar-react | createCalendar, defineCalendarView, components, hooks, store | calendar-primitives, calendar-dnd, calendar-core, calendar-temporal; React 19, @ui-sdk/core, @ui-sdk/react (peers) |
@moltenship/calendar-primitives | The 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-solid | createCalendar, 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-core | Adapters, validation, snapshots, queries, changes and policies, view strategies, availability. No React. | calendar-temporal, @flatten-js/interval-tree |
@moltenship/calendar-temporal | Ranges, grids, rounding, zoned days, DST | None |
@moltenship/calendar-dnd | Pointer drag, resize, and create for views, with no framework | calendar-core, calendar-temporal |
@moltenship/ics | iCalendar parsing into Temporal values. Not re-exported. | None |
@moltenship/calendar-recurrence | Series expansion, occurrence IDs, series edits. Not re-exported. | calendar-core, calendar-temporal, ics |
@moltenship/calendar-dnd-kit | dnd-kit items dragged in, events dragged out. Not re-exported. | calendar-dnd, calendar-core; React 19, dnd-kit 0.5 (peers) |
@moltenship/calendar-testing | A test harness for a React calendar: fixed clock, builders, render and hydration | calendar, 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.