Hotwire on Void: the guide

How to build a web app (and its iOS and Android apps) with Hotwire on Void, Vite+ and Cloudflare Workers, styled with daisyUI. Each page explains one part, using the working app in example/, and links to the official docs for the library behind it.

  1. Getting started: create an app, run it, and see how a request goes through it
  2. Pages: a file in routes/ for each address, the layout, components in Hono JSX, and which file answers a request
  3. Forms: redirects, errors, and answering with Turbo Streams
  4. Frames: parts of a page that load and navigate by themselves
  5. Live updates: broadcasting changes to every open page
  6. Stimulus: behavior in the browser
  7. Styling: daisyUI, Tailwind CSS 4 and themes
  8. Signing in: email codes and passkeys, with Better Auth and Void's email
  9. Hotwire Native: the iOS and Android apps
  10. Testing: what vp test checks, the flows in a real browser, and CI
  11. Deploying: Cloudflare, and taking a deployment down
  12. What the flows show: the flows' screenshots, of the web app and both phone apps

The stack

Part Does Docs
Void Runs the app on Cloudflare Workers: routing, KV, D1, live streams, auth, email, deploys https://void.cloud/guide/
Vite+ (vp) Dev server, build, format, lint, tests https://viteplus.dev/guide/
Hono The router and the JSX that renders HTML on the server https://hono.dev/docs/
Turbo Navigation, forms, frames and streams without page reloads https://turbo.hotwired.dev/handbook/introduction
Stimulus Small controllers for behavior in the browser https://stimulus.hotwired.dev/handbook/introduction
Hotwire Native iOS and Android apps around the same pages https://native.hotwired.dev/overview/how-it-works
daisyUI Component classes and themes for Tailwind CSS 4 https://daisyui.com/components/

The idea is that the server renders HTML, and the browser gets nothing else. There is no client framework, no JSON API behind the pages, and no state to sync. Turbo makes the HTML feel like an app, and Stimulus adds the little behavior HTML cannot do.

Using Claude Code

This folder is also the hotwire Claude Code plugin (see the README to install it). Its skill, skills/hotwire/SKILL.md, holds the rules, and reads these pages from the installed plugin when it works on a part. So you and Claude work from the same guide: a page changed here is the page Claude reads.