Skip to content

About

No description or website provided.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

78 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wireframe-md

A small text format for wireframes, rendered as clean, themed HTML. Agents write it in a few lines; people see a wireframe. It is published as @uberblick/wireframe and is built first for Uberblick documents, where a ```wireframe code block shows as a live preview.

```wireframe
dialog Delete “Q3 launch draft”?
  text It will be gone for everyone, with its comments and history. This can't be undone.
  row.end
    button.focus Cancel
    button.danger Delete
```

Throughout 0.x the format may change in any minor version; CHANGELOG.md says what changed.

phone draws a greyscale iPhone-like frame around a 393 × 852 CSS px screen, with an even bezel, deep corners, a dark island, time and status icons, and a home indicator. Content scrolls between fixed top and bottom bands; the screen narrows to fit its parent. See Phones in AUTHORING.md.

Install

pnpm add @uberblick/wireframe

An ES module with type declarations and no runtime dependencies. Rendering needs a DOM and a browser with CSS light-dark() and color-mix(). CSS calc-size() improves minimum-width fitting for fractional cards. Without it, unbreakable text can extend past a narrow fractional card's border.

Usage

import { parseWireframe, renderWireframe, summarizeWireframe } from "@uberblick/wireframe";
import "@uberblick/wireframe/styles.css";

const result = parseWireframe(source); // the block's body, without its fences
for (const { line, severity, message } of result.diagnostics) console.warn(`line ${line}: ${severity}: ${message}`);

const wireframe = renderWireframe(result); // null when there is an error
if (wireframe !== null) figure.replaceChildren(wireframe);
figure.setAttribute("aria-label", summarizeWireframe(result));

parseWireframe never throws: warnings still draw, errors don't. The output is static, inert DOM, and every style rule sits under .wf-root. Without a CSS bundler, getEmbedStyles() returns the same stylesheet as a string.

Home screens

Kind Addition
image Labelled placeholders; .square, .round and pixel width=
row .between spreads children; .scroll scrolls cards sideways
card Holds text, images and rows; pixel width=, fractional width=1/3 in full-width rows, and padding=
dock One final phone child, pinned above the home indicator
option One icon; a dock's direct toggle draws equal-width tabs

See Images, card rows and docks in AUTHORING.md.

More

  • AUTHORING.md: the format, every kind and the common mistakes. Agents read this before writing a block; it ships as @uberblick/wireframe/AUTHORING.md.
  • THEMING.md: the --wf-* properties and mapping a host's tokens.
  • playground/README.md: the local playground and example approval, for working on this repository.
  • SECURITY.md: how to report a vulnerability privately.

Credits

The format borrows ideas from Wireloom (MIT, © 2026 Brad Wardell). Any code taken from it is listed in THIRD_PARTY_NOTICES.md.

Licence

MIT

About

No description or website provided.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages