Resources
Hypermedia tools and learning resources. A spring board for a deep dive into modern approaches to hypermedia-driven applications.
Tools and libraries
- Plain HTML Links and forms are the original hypermedia controls. A server that responds with HTML is already a hypermedia application, no library required.
- jQuery One of the earliest and most prolific practical extensions of html. Used in ~75% of websites.
- htmx Extends HTML to give it the capabilities of the Triptych (see below) and more.
- Datastar A small framework that pairs server-driven HTML patches over server-sent events with frontend reactive signals, all declared in data-* attributes. This website is built with it.
- Unpoly A progressive-enhancement framework for server-rendered apps: fragment updates, layered overlays, form validation, and fast navigation with almost no custom JavaScript.
- Hotwire The approach behind Basecamp and HEY. Turbo handles navigation, frames, and streams of server-rendered HTML. Stimulus adds small JavaScript controllers where needed.
- fixi.js An experimental, minimalist take on htmx's core idea from the same author. It served as a proving ground for many of the major changes that came in htmx 4.
- intercooler.js The jQuery-based predecessor to htmx that pioneered declarative AJAX with ic-* attributes. No longer actively developed.
- Alpine AJAX An Alpine.js plugin that lets links and forms update parts of the page with server-rendered HTML.
- Phoenix LiveView Elixir's framework for rich, real-time interfaces rendered on the server, with changes sent to the browser over a WebSocket.
- Laravel Livewire Dynamic Laravel interfaces built from server-rendered components. The server re-renders and the browser morphs in the changes.
- htmz A snippet small enough to paste inline that swaps HTML fragments using a hidden iframe and link/form targets.
- Hyperview An xml-based syntax for hypermedia-driven mobile apps including special mobile behaviors. Allows for app changes without app store updates.
- HAM HTML-like syntax that mobile apps render as native. Allows for app changes without app store updates.
- Idiomorph A DOM-morphing library that updates the page to match new HTML while preserving focus and state. Used by htmx and Turbo.
- Hyperscript "Scripting HTML without tears", an easy-to-read (almost just English) scripting language for the web.
- HTMLRewriter Cloudflare's streaming HTML parser for Workers, which finds elements with CSS selectors and rewrites them as the HTML passes through. This website uses it to fill its plain HTML templates. There's also a rust version called lol-html which Bun's HTMLRewriter implementation is based on.
- BasecoatUI A shadcn/ui-like component library that works with any stack. Very useful if you have a hypermedia-driven application and still want to make use of pre-existing and themeable components.
- Pure-CSS-BasecoatUI Alexander Morgan's fork of the BasecoatUI component library. It replaces Tailwind with pure CSS and npm with bun. The recommended use is to vendor (copy) only the components that you use directly into your project.
Learning
- Hypermedia Systems A great overview of hypermedia systems and the ways that html in its current state is incomplete. Book by Carson Gross, Adam Stepinski, and Deniz Akşimşek on building applications with hypermedia, htmx, and Hyperview.
- Architectural Styles and the Design of Network-based Software Architectures, chapter 5 Roy Fielding's dissertation chapter that defined REST, including hypermedia as the engine of application state.
- Sending form data (MDN) How plain HTML forms send data to the server, the foundation every hypermedia library builds on.
- Triptych Three proposals to 1: Add the missing PUT, PATCH, and DELETE http verbs to HTML, 2: let buttons make requests without form elements, and 3: allow partial page replacement in HTML.
- htmx essays Essays on hypermedia, REST, and web architecture. The makers of htmx actually say that these essays are more important than the library.
- hypermedia-tv A youtube channel about hypermedia projects, guides, and interiews. By Lazarus Morrison.
- hypermedia radio The podcast version of the hypermedia-tv channel. This audio version has additional episodes.
- Datastar guide The official walkthrough of Datastar's signals, attributes, and server-sent event patches.
- Turbo Handbook The official guide to Turbo Drive, Frames, and Streams.
- Unpoly tutorial Unpoly's step-by-step introduction to fragment updates, overlays, and forms.