Skip to content

Realtime + v0.2.1 - #85

Merged
LizAinslie merged 16 commits into
mainfrom
feat/realtime-merge
Oct 26, 2026
Merged

LizAinslie merged 16 commits into
mainfrom
feat/realtime-merge

Conversation

@LizAinslie

Copy link
Copy Markdown
Collaborator

Merges the realtime epic into main and bumps everything to 0.2.1.

  • typed event registry
  • SSE + WebSocket host transports at /__keel/events
  • client realtime / useKeelEvent helpers, plus docs
  • ktor 3.5.2

Once this is merged, tagging v0.2.1 from main publishes through CI.

Adds @KeelEvent for payload classes and host handlers, the lib
EventRegistry/EventDiscovery with in/out/both directions, the versioned
KeelRealtimeEnvelope, and events in Typegen + keel-scaffold output
(HarborEvents / HarborEventId).
Typed event registry: @KeelEvent, EventRegistry, envelope, typegen and
scaffold events output (#72).
Opt-in keel { realtime { } } registers /__keel/events for the Ktor
plugins the host installed: WS upgrade, SSE stream, and POST sends.
Host-owned channels with an authorize hook, typed publish/invalidate
on call.keelRealtime, heartbeats, per-connection buffers, and CSRF on
HTTP writes. No replay: reconnect resubscribes and the seed rehydrates.
SSE + WebSocket host transports (#71).
Adds realtime to @kolektiv/keel: WebSocket with SSE fallback, page
channel auto-subscription, typed on() handlers, invalidate rehydrate,
sid sends over HTTP, and backoff reconnect with resubscribe. Adapters
expose useKeelEvent / injectKeelEvent bindings.
Realtime client and adapter subscribe helpers (#73).
Harbor installs WebSockets + SSE and exposes typed events: posts
publish harbor.message on page:harbor.home, renames invalidate it, and
client-sent harbor.typing notices round trip through the host. The
Svelte pack streams the feed with useKeelEvent and sends notices with
realtime.send. Adapters also re-export realtime.
Live Harbor board end-to-end demo (#75).
Adds the Realtime guide and wire envelope, documents the events section
of Typegen and the KeelConfig realtime block, adds realtime helpers to
the adapter matrix, and refreshes llms.txt, AGENTS.md, and the host /
pack / scaffold skills.
Realtime documentation and skills (#74).
# Conflicts:
#	CHANGELOG.md
#	llms.txt
The realtime epic predates #79, which dropped keel-npm in favor of
npm-public. Remove the obsolete [Unreleased] fix entry so it does not
contradict the 0.1.1 release notes.
- ktor 3.1.3 -> 3.5.2 to match downstream kalendee host resolution
- lockstep npm packages 0.1.1 -> 0.2.0
- RealtimeTest: await async websocket disconnect cleanup under ktor 3.5.2
@LizAinslie
LizAinslie merged commit 43a4630 into main Oct 26, 2026
4 checks 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.

1 participant