Skip to content

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 / TurborenderBlade
Expanded rows, tabs, unsaved inputUsually in the DOM (classes, hidden, field values)Client state (data-state-*)
After the HTML is replacedKept via morphing or preserved regions, otherwise lostNew 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 ​

htmxTurbo StreamsLinker
FormEvents via response headers, hx-swap-oob<turbo-stream action="…">Named actions in a pipeline
Range of actionsSwap sections + custom eventsappend / replace / remove… + custom actionsOnly the actions registered in the table
Business dataWrapped in HTMLWrapped in HTMLdata 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 / TurboThis framework
EndpointsAny URL; whatever the attribute saysrenderBlade: only controllers using CanRenderCallSafely; Linker: only registered aliases + #[Computable]
Permissions on front-end attributesNone@renderObject allow lists (a development-time boundary)

htmx style:

html
<input name="q" hx-get="/customers/search" hx-trigger="input changed delay:400ms" hx-target="#results">
<div id="results">…</div>

This framework:

blade
<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.