Reactive web pages in Ruby
Mayuisaliveupdatingserver-siderenderingwebframeworkwritteninRuby
How does it work?
- Mayu implements a Virtual DOM in Ruby.
- All DOM updates are streamed to a small browser runtime that takes care of patching the DOM.
- Event handlers run on the server.
Efficient
- HTTP/2 Streams with compression and MessagePack.
- Designed to be deployed on the edge.
- Pages are interactive immediately on FCP.
- Prometheus-endpoint for real-time metrics.
Interactivity
This text was rendered on the server at 2025-02-20 20:21:51 UTC.
The counter below was also rendered on the server. The only JavaScript required to make it interactive is a small runtime that makes a connection to the server and updates the DOM whenever the state changes on the server.
Show source
Loading…
Server time
This clock is being rendered on the server.
It shows the current UTC-time.
Features
Here's a list of core features:
- 100% Server Side
- 100% Async
- Haml-based components
- CSS-modules
- Automatic asset handling
- Hot-reloading in development
- … and much more!
Read more on GitHub