Swapbook is a component workbench for htmx and hypermedia apps. It runs as a
single binary that reverse-proxies your running app and serves a gallery UI
under /__sb/, so you can build and review server-rendered components in
isolation with an htmx-aware inspector, live controls and mocked interactions.
- Getting started: install, run, and mount the adapter.
- Writing stories: register components and variants in Go, Django, Rails, Laravel or any stack.
- Controls, mocks and modes: live knobs, canned responses, and the mock / safe / live gates.
- CLI reference: flags and usage of the
swapbookbinary. - Adapters: the built-in adapters and how to write your own.
- Authoring an adapter: derive a new adapter for any stack from the protocol.
- Visual regression: screenshot every variant and diff against a baseline in CI.
- Protocol specification: the four HTTP endpoints an app implements.
- Project README: overview and comparison.