Stator 1.7 is out 🚀 Stator renders your pages on the server, straight from the state machines that hold your logic. As of today those same machines can serve your JSON API, your RSS feed, and anything else that speaks HTTP. No second data layer, nothing to keep in sync. statorjs.dev
Post
statorjs.devStator · the server-canonical JavaScript framework built on state machinesA web framework where state machines are the unit of composition and the DOM renders where its state lives — almost always the server.
Feeds fall out of the same idea. Name a route file rss.xml.ts and the .xml carries into the URL and the content type. The guestbook example ships one. The book machine that renders the page also feeds RSS readers and pushes live updates over SSE, all from one definition of the data.
0 reposts0 likes
Server-originated events round it out: dispatchToApp now lives on the app object, dev server included, so a payment webhook becomes a route that dispatches one typed event and every live page reading that machine updates. Full release notes: docs.statorjs.dev #buildinpublic #webdev #StatorJS
docs.statorjs.devStatorA server-canonical web framework where state machines are the unit of composition and the DOM renders where its state lives.