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.
- Getting started: create an app, run it, and see how a request goes through it
- Pages: a file in
routes/for each address, the layout, components in Hono JSX, and which file answers a request - Forms: redirects, errors, and answering with Turbo Streams
- Frames: parts of a page that load and navigate by themselves
- Live updates: broadcasting changes to every open page
- Stimulus: behavior in the browser
- Styling: daisyUI, Tailwind CSS 4 and themes
- Signing in: email codes and passkeys, with Better Auth and Void's email
- Hotwire Native: the iOS and Android apps
- Testing: what
vp testchecks, the flows in a real browser, and CI - Deploying: Cloudflare, and taking a deployment down
- 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.