Overview
What each package exports, and where to import it from.
A Solid app imports from one package, @moltenship/calendar-solid: the factory, the parts, the
hooks and the store, and the engine and the Temporal helpers it re-exports. The engine is the event
adapter, changes and policies, and the functions a view is made of.
| You need | Import from |
|---|---|
createCalendar, defineCalendarView, the parts and hooks | @moltenship/calendar-solid |
createCalendarStore, createStateSelector | @moltenship/calendar-solid |
useCalendarPointer, eventIdAttributes | @moltenship/calendar-solid |
attachCalendarPointer, startCalendarDrop | @moltenship/calendar-solid |
defineEventAdapter, createEventHistory, policies | @moltenship/calendar-solid |
View functions such as projectMonth and getListRange | @moltenship/calendar-solid |
Temporal helpers such as plainDateInterval and monthGrid | @moltenship/calendar-solid |
expandRecurrenceRule and the other recurrence functions | @moltenship/calendar-recurrence |
parseIcs | @moltenship/ics |
createAgent, agentTools, registerTools | @ui-sdk/solid/agent |
Install @moltenship/calendar-recurrence and @moltenship/ics
when you import them. Neither imports a framework.
Components and hooks
createCalendar, Root and its props, the parts, hooks, meta, diagnostics and server rendering.
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.
Recurrence
Expand recurring series for the dates on screen, and edit them.
Agent reference
What a calendar tells an AI agent: snapshot fields, actions, arguments and errors.
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.