Skip to content

CLI โ€‹

The wiremd CLI converts .md files to HTML, watches for changes, and optionally serves a live-reload dev server.

No terminal? Install the VS Code extension instead.

Install โ€‹

bash
npm install -g @eclectic-ai/wiremd

Verify:

bash
wiremd --version

Serve locally โ€‹

The most useful workflow โ€” write your wireframe, see it update live in any browser:

bash
wiremd my-screen.md --serve 3001 --watch

Open the printed http://localhost:PORT address. The page reloads automatically on every save. Works in any browser including Firefox.

wireframe rendered in the browser via the local dev server

For a whole folder of screens:

bash
wiremd ./screens --serve 3001

All .md files under ./screens are watched. If screens/index.md exists it becomes the default page. Navigate between screens at the printed server address, for example /screen-name.html.

One-shot render โ€‹

bash
# Render to HTML (default: same name as input)
wiremd login.md

# Render every .md page in a folder
wiremd ./screens

# Specify output path and style
wiremd login.md -o dist/login.html --style clean

Flags โ€‹

FlagAliasDefaultDescription
--output <file>-o<input>.htmlOutput file path
--style <style>-ssketchVisual style
--serve [port]โ€”3000Start live-reload dev server on port
--watch-wโ€”Regenerate on file change (no server)
--format <format>-fhtmlhtml or json
--show-commentsโ€”offRender <!-- comments --> as callout panels
--watch-pattern <glob>โ€”โ€”Override the default watch glob
--ignore <glob>โ€”โ€”Extra glob to exclude from watching
--pretty-ptruePretty-print output
--version-vโ€”Print version
--help-hโ€”Print help

Styles โ€‹

ValueLook
sketchBalsamiq-inspired hand-drawn (default)
cleanModern minimal
wireframeTraditional grayscale
materialGoogle Material Design
tailwindUtility-first, purple accents
brutalNeo-brutalism, bold colors
noneUnstyled HTML

Notes โ€‹

  • --serve starts the server on port 3000 by default and tries the next ports automatically if needed. It does not auto-enable --watch. Pass both to get live reload: --serve --watch or --serve 3001 --watch.
  • --watch without --serve regenerates the file on disk only โ€” no browser sync.
  • Directory mode renders each page-shaped .md file next to its source and ignores -o. Files prefixed with _ are treated as partials. Use -s to set the style for all files.

Programmatic use โ€‹

bash
npm install @eclectic-ai/wiremd
ts
import { parse, renderToHTML } from '@eclectic-ai/wiremd'

const html = renderToHTML(parse('## Login\n[Sign In]*'), { style: 'clean' })

Full API: Parser ยท Renderers