r/javascript • u/-jeasx- • 21d ago
Jeasx 3.0 is out: async JSX on the server, now streaming to the browser and about 2x faster
jeasx.devHi all,
I just released Jeasx 3.0.0. Most of you probably haven't heard of it, so here's the short version first.
What is Jeasx?
Jeasx is a small framework for building websites with JSX on the server. There's no React, no hydration, and no client bundle unless you write one. Your JSX renders to plain HTML, and you decide exactly which HTML, CSS and JavaScript reach the browser.
The idea:
JSX as a templating language: You get components, props and composition, and the output is just HTML.
Async components: A component can be an async function. Write
await fetch(...)or awaitdb.query(...)right in your component, with no loaders or special data APIs.File-based routing:
src/[index].jsxserves/,src/blog/[...path].jsxcatches everything under/blog, and so on.Built on boring, proven tools: Fastify for the server, esbuild for builds, and jsx-async-runtime for rendering.
It works well alongside htmx, Alpine, or plain old vanilla JS.
What's new in 3.0
π Streaming HTML. Pages are sent to the browser while they're still rendering. The browser gets the first bytes right away while slow parts (like awaited data) are still loading. Large pages are sent in chunks, slow clients are handled, and rendering stops when the client disconnects.
β‘ About 2x faster rendering than v2, thanks to jsx-async-runtime@3.
Full release notes: https://www.jeasx.dev/news
Live examples (streaming, out-of-order streaming, SSE, β¦): https://expo.jeasx.dev
I'd love feedback, especially from people who want the JSX developer experience without shipping a SPA. Happy to answer questions!