vs htmx / Hotwire
htmx and Hotwire (Turbo + Stimulus) are both "HTML over the wire": the server returns HTML and the front end swaps it in. renderBlade belongs to the same school; it differs in three places.
1. Where in-progress user state lives
| htmx / Turbo | renderBlade | |
|---|---|---|
| Expanded rows, tabs, unsaved input | Usually in the DOM (classes, hidden, field values) | Client state (data-state-*) |
| After the HTML is replaced | Kept via morphing or preserved regions, otherwise lost | New nodes read the old values as soon as they're bound |
This is why renderBlade can "replace whole blocks without diffing": whatever needs keeping was never in the DOM being replaced.
2. How the server directs the browser
| htmx | Turbo Streams | Linker | |
|---|---|---|---|
| Form | Events via response headers, hx-swap-oob | <turbo-stream action="…"> | Named actions in a pipeline |
| Range of actions | Swap sections + custom events | append / replace / remove… + custom actions | Only the actions registered in the table |
| Business data | Wrapped in HTML | Wrapped in HTML | data written to state; data-state-* renders itself |
Linker keeps "data" and "HTML" separate: updating one number doesn't require sending a block of HTML.
3. What can be called
| htmx / Turbo | This framework | |
|---|---|---|
| Endpoints | Any URL; whatever the attribute says | renderBlade: only controllers using CanRenderCallSafely; Linker: only registered aliases + #[Computable] |
| Permissions on front-end attributes | None | @renderObject allow lists (a development-time boundary) |
Compared: a search box
htmx style:
<input name="q" hx-get="/customers/search" hx-trigger="input changed delay:400ms" hx-target="#results">
<div id="results">…</div>This framework:
<div @linker('customer') @renderObject('customerPanel', ['render', 'state:read', 'state:write'])>
<input name="keyword" data-state-bind="keyword"
data-linker-call="search" data-linker-on="input"
data-linker-debounce="400" data-linker-args="keyword">
<p><span data-state-text="matchCount">0</span> matches</p>
<div id="customer-list-results">…</div>
</div>What you gain: argument validation (#[Validate]), access control attributes, fixed error handling, a match count that doesn't need to live in HTML, and search text that survives re-renders.
What it costs: more concepts (objects, state and Linker are three roles), whereas htmx starts with a single attribute.
When to choose htmx / Hotwire
- It must work with any back-end language.
- You want the fewest concepts and the largest ecosystem.
- Interactions are simple and DOM state doesn't mind being replaced.