Genesis

Packages

@marktiderman/genesis-calendar

0.1.2Primitive · Data

The calendar read layer: what is on these people's calendars, merged. Google Calendar's incremental sync, an iCal feed reader (RRULE through genesis-core/dates, EXDATE, RDATE, RECURRENCE-ID, Windows zone names) and writer, one event across people's copies with per-viewer privacy, marks, and the mapping to genesis-ui's EventCalendar. Pure TypeScript, no storage, no OAuth, no React; fetching a feed safely is the optional /fetch entry. Part of the Genesis framework.

The calendar read layer: what is on these people's calendars, merged. Google Calendar's incremental sync, an iCal feed reader and writer, one event across people's copies with per-viewer privacy, marks, and the mapping to genesis-ui's `EventCalendar`.

Pure TypeScript: no storage, no OAuth, no React. The app keeps the rows and runs the sync; tokens come from genesis-connect; recurrence is core/dates' `expandRecurrence`. Decision record: ADR 0014.

pnpm add @marktiderman/genesis-calendar

READMEChangelognpm

@marktiderman/genesis-calendar

Other exports (23)

applyMarks · fromGoogleEvent · GoogleCalendarError · isGoogleCalendarError · isInWindow · MARK_KINDS · markKey · mergeEvents · occurrenceKey · parseDuration · parseIcs · readIcs · resolveZone · seriesKey · SYNC_DAYS_AHEAD · SYNC_DAYS_BACK · syncGoogleCalendar · syncWindow · toBusyKey · toCalendarEvent · toTimeKey · toTimeValue · writeIcs

And 28 types.

@marktiderman/genesis-calendar/fetch

Other exports (3)

CalendarFeedError · fetchFeed · toFeedUrl

And 2 types.