Toolkit for building reactive, multi-player web-apps in Ruby
https://ismasan.github.io/sidereal/ β// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
// how to help
// readme
Sidereal
A Ruby gem for building server-driven, reactive web applications. Sidereal combines a Rack-compatible router with an event-driven architecture using typed messages, commands, pages, SSE, and pub/sub.
- All commands are handled by an asynchronous runtime. No distinction between βcontrollersβ and βbackground jobsβ.
- Async command handlers automatically notify completion to pub/sub interface.
- Long-lived SSE connection can subscribe to pub/sub and push server-rendered templates back to browser.
- Swappable backends for (optional) Event Sourcing support.
Only one way to reason about business logic handling and UI updates, whether one-off or long-running, re-tryable tasks.
I talked about the motivation and techniques here.
Built on Datastar (SSE streaming, HTML morphing), Phlex (HTML rendering), Plumb (typed data), Async (fiber concurrency). Designed to run on Falcon.