JSX with Ease

Explore Jeasx

Render pages on the server with async JSX, and run the same components in the browser when you need to.

Browse examplesVisit jeasx.dev

Less framework, fewer headaches

Jeasx keeps its core small: async JSX, file-based routing and little else. Everything beyond that is plain code you own and can adapt. These examples show how.

Clone and experiment

All examples are on GitHub. Clone the repository, run them locally and change the code freely. Every example links to its source in the top right corner.

The heart of Jeasx: <jsx-async-runtime />

Jeasx renders JSX with jsx-async-runtime: async components, streaming, and the same components on the server and in the browser.

01

Server-side JSX

Everything jsx-async-runtime renders on the server: promises, iterables and other values as children, render props, request context via 'this', overriding how JSX turns into HTML, Declarative Shadow DOM and unit tests for components.

02

Streaming

Async components don't block the page: jsx-async-runtime streams HTML as soon as it is ready, in order, in parallel or out of order, from async iterables or a ReadableStream.

03

Isomorphic apps

The server renders the first page, then the browser re-renders the same JSX components after every click, without React, a virtual DOM or hydration. Without JavaScript, every app keeps working with plain HTML forms.

04

Client-side apps and games

Render JSX right in the browser with jsx-async-runtime: async components which fetch their own data, live feeds, streamed async trees, and games which render every frame.

From pages to production

Websites, apps, images, PDFs and emails, secured and ready to ship.

05

Server-rendered websites and apps

Render pages on the server with content from a remote API, JSON data or Markdown with MDX, and build multi-step forms with plain HTML. No client-side JavaScript needed: view transitions make page changes feel smooth.

06

Beyond HTML: images, PDFs, emails and live streams

Routes aren't limited to HTML: they can return images, SVG, JSON, XML, PDF, a live stream of Server-Sent Events, a WebSocket or any other content type.

07

Security, errors and post-processing

Protect routes with basic auth or sessions, sign cookies, block injected scripts stop bots with a proof-of-work captcha and rate-limit APIs. Catch errors, manage the head and transform the final HTML before it is sent to the browser.

Integrations in userland

No plugins, no adapters: HTMX, React, Vue, Svelte and friends, wired up in plain code you own.

08

Hypermedia with HTMX

Every Jeasx route can return an HTML fragment, so hypermedia libraries like HTMX can update parts of a page with markup rendered on the server.

09

JavaScript libraries and frameworks

Add islands of interactivity to server-rendered pages with the JavaScript library or framework you already know.