Skip to content

Keel realtime: live notifications, reminders, calendar - #85

Merged
LizAinslie merged 6 commits into
mainfrom
chore/keel-websocket-impl
Oct 26, 2026
Merged

LizAinslie merged 6 commits into
mainfrom
chore/keel-websocket-impl

Conversation

@LizAinslie

Copy link
Copy Markdown
Contributor

Wires keel realtime (WebSocket + SSE) into kalendee.

  • server: user:, page:kalendee.home and calendar: channels with authorize, publishing from notifications, event changes and reminders
  • pack: live unread badge, reminder refetch, debounced calendar refresh

Depends on keel 0.2.1 (KolektivComputer/keel#85) being published, so CI may fail until then. server/pack/pnpm-lock.yaml still pins 0.2.0 and needs a pnpm install once 0.2.1 is out.

Bump keel to 0.2.0 and enable its realtime feature on the server:

- Install WebSockets + SSE and add a `realtime { }` block registering
  three OUT events (notification, eventChanged, remindersChanged) with
  per-user / page / calendar channel authorization.
- Publish eventChanged on create/update/move/delete, notification count
  on notification read/create, and remindersChanged on reminder changes.
- Regen page-types to expose the `events` contract.

Safe best-effort publishing via a process-wide RealtimeBus handle so a
missing/not-configured realtime never breaks a request.
- bump @kolektiv/keel, keel-svelte, keel-pack to 0.2.0
- live unread notification badge via kalendee.notification on user:<id>
- prompt reminder poll on kalendee.remindersChanged
- refresh home window on kalendee.eventChanged (in-place reload)
@LizAinslie LizAinslie linked an issue Oct 26, 2026 that may be closed by this pull request
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Deploying kalendee-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ccb8540
Status: ✅  Deploy successful!
Preview URL: https://47502bdb.kalendee-docs.pages.dev
Branch Preview URL: https://chore-keel-websocket-impl.kalendee-docs.pages.dev

View logs

@LizAinslie
LizAinslie merged commit ff1b048 into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace polling with Keel SSE/WebSocket realtime

1 participant