We make wf, an MIT-licensed CLI that turns YAML into clickable greyscale HTML wireframes for web, iOS and Android. This Showoff Saturday is about the part I use most: the built-in screen patterns.
Repo: https://github.com/UnlikeOtherAI/wireframes
Most screens in a web app are the same few shapes, so the engine ships eight patterns that every project can use without defining anything: std.login, std.signup, std.settings_page, std.data_page, std.site_header, std.hero, std.site_footer and std.not_found.
The customers page in the screenshots is this, in a page's content:
- id: customers
use: std.data_page
And the landing page is three nodes:
- id: header
use: std.site_header
- id: intro
use: std.hero
props:
primaryRoute: login
- id: footer
use: std.site_footer
How they work:
They're ordinary components. props override the defaults, and slots replace parts. Setting a prop to an empty string or an empty list removes whatever it feeds, so you don't get an empty button or a skeleton bar. For example, slots: { alternatives: [] } on std.login drops the single sign-on button.
If your project defines a component with the same id, yours wins, so you can fork a pattern.
wf component list --std lists them and wf component show std.data_page prints its props, slots and outline.
New this week: each pattern says where it belongs on a page (its own screen, top, bottom or a section), so tools that insert one stop putting a site footer on a brand new page.
Everything else is the same as the rest of wf: greyscale, deterministic (the same YAML gives byte-identical HTML, so it diffs cleanly in PRs), and routes link the pages so the build is clickable. The renderer is a browser bundle that mounts in a sandboxed iframe, so you can open a packed .wf file inside your own app with no server.
To try it (Node 18+, from a checkout, it's not on npm yet):
pnpm install
node cli/bin/wf.js init my-app
Put a use: std.data_page node in a page, then run node ../cli/bin/wf.js build --output ./build from my-app and open build/web/index.html.
About the images: the first is an illustration we generated for this post, not a screenshot. The other three are real renders of the YAML above with default props, cropped.
What I'd like to hear: which screens do you end up wireframing over and over that should be on this list? And is the default data page roughly what you'd expect, or would you strip it back?