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 turns JSX into HTML with jsx-async-runtime. It feels like React, but components can be async and simply await data before rendering, on the server and in the browser.

01

Server-side JSX

JSX on the server, where every component returns HTML: what JSX can render, context instead of prop drilling, slots, component caching, global HTML tweaks, web components and unit tests.

02

Streaming

Show what's ready right away and stream slower parts as they arrive: parallel loading, out-of-order placeholders, lazy loading, async iterables and ReadableStreams.

03

Isomorphic apps

The same JSX runs on server and browser: a fast server-rendered first page, then client-side re-rendering without virtual DOM or hydration. Turn off JavaScript and they still work.

04

Client-side apps and games

jsx-async-runtime also renders in the browser: data-fetching components, live feeds and small games, all without a big frontend framework.

From pages to production

Jeasx is a complete framework for real websites: pages and forms, images, PDFs and emails, live updates, security and error handling.

05

Server-rendered websites and apps

Classic server-rendered sites like a blog, product catalog, MDX cookbook and booking form. They work without JavaScript and get progressively enhanced when it's available.

06

Beyond HTML: images, PDFs, emails and live streams

A route is just a function answering a request: generate SVG, emails, PDFs and preview images, process uploads, and push live updates via Server-Sent Events or WebSockets.

07

Security, errors and post-processing

Ready for production: login and sessions, signed cookies, Content Security Policy, bot protection, rate limiting, error boundaries and post-processing of the final HTML.

Integrations in userland

No plugins or adapters needed: connect HTMX, React, Vue or Svelte yourself with a few lines of plain code.

08

Hypermedia with HTMX

HTMX adds interactivity with HTML attributes by swapping in HTML snippets from the server, which any Jeasx route can return. Patterns include inline editing, active search and infinite scroll.

09

JavaScript libraries and frameworks

Keep using your favorite framework for small interactive islands on otherwise static server-rendered pages, set up in plain code, even mixed on one page.