Google Calendar
experimentalGoogle Calendar sync for Cloudflare Workers + D1: single-flight OAuth token refresh, watch-channel renewal before the ~7-day expiry, incremental syncToken sync with 410-Gone full-resync fallback, pure RRULE expansion, and push+poll dedup.
Google Calendar is source-visible, contract-first code — your agent reads the whole interface before it composes, never a black box.
Every hook has typed I/O and required tests, and the composition is pinned in
microservices.lock.json — what you inspect here is exactly what
pnpm microservices check verifies and deploys.
Typed hooks
Extension points with typed input/output and required tests — customize behavior without forking the module.
- beforeCalendarSync
- onCalendarEventUpserted
- onChannelRenewed
Events emitted
A stable, documented event surface other modules can subscribe to.
- calendar-google.connected
- calendar-google.synced
- calendar-google.event.upserted
- calendar-google.event.deleted
- calendar-google.channel.renewed
- calendar-google.token.refreshed
Permissions
Scoped capabilities the module declares; the gateway enforces them at the boundary.
- calendar-google.read
- calendar-google.write
- calendar-google.admin
Experimental listing. Generated from the canonical module manifest via `registry build`.