Examples¶
Minimal but complete integration recipes. The repository also ships runnable apps:
| Stack | Path | What it shows |
|---|---|---|
| Vanilla (Node) | examples/vanilla/ |
search, poll, delete+toast, caching |
| Django | examples/django/ |
CSRF meta + header mapping, partials |
| FastAPI | examples/fastapi/ |
Jinja partials, CSRF dependency |
| Go | examples/go/ |
html/template fragments |
| File monitor | examples/file-monitor/ |
SSE realtime + polling compared |
The universal pattern¶
Every backend does the same three things:
- Serve a page with the Flux script tag and CSRF meta.
- Serve fragments (HTML partials) for each
hx-targeted endpoint. - Return proper status codes — and let
fx-on-<code>retarget errors client-side.