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.
A consumer API used to mean a second data path beside your pages. In 1.7 it's one route file: export a GET, read your machines, return a value, and Stator serves it as JSON with an ETag. What the page shows and what the API returns can't drift, they're read from the same state.
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.