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.
APIs can be viewer-aware too. The with-auth example serves its notice board at /api/notices, where members see everything and visitors only the public notices. Identity comes from the session's own auth machine rather than the request, so there's nothing in a payload to forge.
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.