✨ ARCANUM RUNE DIFFICULTY: Apprentice Creational

The Builder (Progressive Disclosure)

Constructing complex hypermedia manifestations step-by-step using progressive HTMX forms.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Builder
ARCANUM SCHOOL: Transmutation // Synthesis
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
<!-- A multi-stage summoning ritual where each step builds upon the previous. -->
<form id="golem-builder" hx-post="/api/build/golem/step-1" hx-target="#golem-builder" hx-swap="outerHTML">
  <fieldset class="cyber-ward">
    <legend>Select Core Material</legend>
    <input type="radio" name="material" value="obsidian"> Obsidian
    <input type="radio" name="material" value="chrome"> Chrome
  </fieldset>
  <button type="submit">Imbue Material & Continue</button>
</form>

The Builder pattern translates into hypermedia as the Progressive Form or Wizard. Rather than attempting to cast a complex spell with a thousand parameters at once, the artificer guides the user through sequential transmutations.

Each hx-post operation submits a fragment of the ultimate incantation. The server processes this step and returns the next form element, completely replacing the previous one (hx-swap="outerHTML"). The state is kept either in hidden fields (embedded sigils) or server-side sessions, culminating in the final creation of the complex entity when the final step is submitted.

Runic Tags: #htmx #form-wizard #builder #state-machine