#8043·mermaid

UX breadboard

Author: tleishCreated Aug 8, 2026Updated Sep 28, 2026
LabelsType: EnhancementStatus: TriageType: New Diagram

Proposal

Breadboarding is a UX design technique from Shape Up by 37signals. It maps the screens in a flow, the things you can act on in each one, and where those actions lead — in words, with no layout. The name is borrowed from electrical engineering: a breadboard has all the components and wiring of a real device, but no industrial design.

There are three kinds of element: places (screens, dialogs, menus), affordances (buttons, fields, copy — anything you act on), and connections from an affordance to another place.

uxBreadboard
title Invoice payment
Invoice
  Pay Invoice -->

Pay Invoice
  CC Fields
  ACH Fields
  FI Logo
  Autopay in the future?
  Submit --> Confirm

Confirm
  Print Receipt
  Thank you message
  Confirm autopay<br/>(if chosen)
Image

A breadboard can be somewhat communicated with Mermaid's existing flowchart syntax:

flowchart LR
    Checkout["<b>Checkout</b><hr/>Sign in as guest<br/>Sign in<br/>Place order"]
    Guest["<b>Sign in as guest</b><hr/>Email<br/>Continue"]
    Returning["<b>Sign in</b><hr/>Password<br/>Continue"]
    Receipt["<b>Receipt</b><hr/>Print receipt"]

    Checkout -->|"Sign in as guest"| Guest
    Checkout -->|"Sign in"| Returning
    Checkout -->|"Place order"| Receipt
    Guest -->|"Continue"| Receipt
    Returning -->|"Continue"| Receipt
Image

That gets close to the appearance, but not quite the same diagram.

Place -- "affordance" --> Place

The affordance is an edge label. That it belongs to a particular place is implicit, and non-navigational affordances end up embedded in the node's presentation.

A breadboard has a different structure:

Place
  ├─ Affordance
  ├─ Affordance --> Place
  └─ Affordance --> Place

Places contain affordances; connections originate from a specific affordance, not from the place.

A dedicated syntax represents that directly:

uxBreadboard
Checkout
  Sign in as guest -->
  Sign in -->
  Place order --> Receipt

Sign in as guest
  Email
  Continue --> Receipt

Sign in
  Password
  Continue --> Receipt

Receipt
  Print receipt
Image

These are the tradeoffs I ran into trying to express breadboards with the existing types. The flowchart version works — these are the places where it stops matching the model, not an argument that anyone doing it that way is wrong:

  1. Affordances are first-class, and connections start at them. Continue --> Receipt says the Continue affordance connects to Receipt, not that there is a generic edge labelled "Continue". The rendered flowchart shows the difference: Place order is the third item in Checkout's list, but its arrow leaves the top of the box and passes over the diagram — all three edges exit from box edges rather than from the text they are labelled with. The arrow can't start at the affordance, because the affordance isn't an element; it's a substring of the node label.

  2. Containment is explicit. The syntax states which affordances belong to which place.

  3. Non-navigational affordances are natural. Email is an affordance with no outgoing connection. In a flowchart it has to become either presentation text inside a node or a node of its own with no edges — the first loses that it is a distinct element, the second implies it is somewhere you can navigate to.

  4. No duplication between node contents and edge labels. Count Sign in as guest in the flowchart: three times — in Checkout's list, on the edge, and as the target's label. Three constructs that happen to agree, with nothing keeping them in sync. Continue duplicates the same way, twice over. A bare --> drops the repetition entirely: the affordance's own name is the destination.

  5. The appearance is asserted rather than derived. The flowchart above underlines each linked affordance, so it looks about right — but the underline on Place order and the edge from Checkout to Receipt are two separate statements that happen to agree. Remove the edge and the underline stays; nothing catches it. In the breadboard, Place order --> Receipt is one statement and the styling follows from it. This is the same drift as the triple-typed name above, one layer down.

  6. Structure is written as structure, not as markup. Getting to that appearance takes 26 HTML tags — <b>/</b> around each place name, <hr/> to divide the name from its affordances, <br/> between them, <u>/</u> around each link — with each screen's affordances collapsed onto a single line. The breadboard uses none and puts one affordance per line.

  7. Names are the references. The flowchart needs node ids (Guest, Returning) distinct from the labels they display, so following a path means cross-referencing declarations against edges. Adding one control to a screen is a new indented line in a breadboard; in the flowchart it is an edit inside a <br/>-joined string, plus possibly an edge that repeats it.

So this isn't a claim that flowcharts can't visually approximate a breadboard — they can, and for a small diagram the workaround above may well be the pragmatic choice. The difference is in what's being modelled: a flowchart models nodes connected by labelled edges, while a breadboard models places containing affordances, with affordances connecting to places. A dedicated type would let the source carry that structure rather than reconstructing it in markup.

Happy to be told this is better solved another way — as a layout option, or by extending an existing type.

It is also not a mindmap: a breadboard isn't a tree, and flows loop back.

Use Cases

  • Sketching a feature's flow while shaping it, before any wireframes exist.
  • Keeping a flow in a README or ADR without pasting mockups that go stale.
  • Reviewing a proposed change as a diff of the breadboard rather than of the design files.
uxBreadboard
title Storefront checkout
Catalog
  Search results
  Product -->

Product
  Add to cart --> Cart
  Read reviews --> Reviews

Cart
  Change quantity
  Checkout --> Shipping

Reviews
  Write a review
  Back to product --> Product

Shipping
  Delivery address
  Continue --> Payment

Payment
  Card details
  Place order --> Receipt

Receipt
  Print receipt
Image

Syntax

Places sit at the left margin. Indented lines beneath a place are its affordances, in the order written. --> connects an affordance to another place.

uxBreadboard
Invoice
  Turn on Autopay --> Set up Autopay

Set up Autopay
  CC Fields
  FI Logo
  Submit --> Confirm

Confirm
  Thank you message
Image

A bare --> with no target links to the place sharing the affordance's own name, and linking to a place that hasn't been written yet creates an empty one — so sketching never hard-fails mid-thought:

uxBreadboard
Invoice
  Pay Invoice -->

Pay Invoice
  CC Fields
  Submit --> Confirm

Confirm
  Print Receipt
Image

The rules:

  • Indentation matters. A line at the left margin is a place; anything indented under it is one of that place's affordances.
  • Indent further to group affordances together. That's visual only — you never get a box inside a box.
  • Names can contain spaces, so most of the time you don't need quotes.
  • Links can point backwards, so flows can loop. It isn't a tree and there's no root.
  • Places lay out in the order you write them, wrapping to a new row at a width you can set.
  • title, accTitle and accDescr work the same as in other diagrams.

Implementation

I will try and implement it myself.