Wyvern
What You View, Engine Renders Natively

A lightweight CLI tool that opens native webview windows for user interaction and returns structured JSON results — with zero browser dependency and an MCP-ready JSON schema (MCP server ships in Phase E).
Quickstart
- Download the latest release for your platform from GitHub Releases.
- Extract the archive. Keep
wyvern,wyvern-viewer, andshare/wyvern/ui/together (same layout as the tarball). - Add the extract directory to your
PATH(so both binaries resolve as siblings). - Try (default viewer is embedded — launches
wyvern-viewer):
HTTP host notes
- Dialogs are served by an ephemeral local HTTP host (
wyvern-host) from packagedshare/wyvern/ui/. - Product default:
--viewer embedded(optionalwyvern-viewersibling binary). - CI / agents / headless: set
WYVERN_VIEWER=noneor pass--viewer none(no native window).
WYVERN_VIEWER=none
Release artifacts (no clone required):
| Platform | Artifact |
|---|---|
| macOS Apple Silicon | wyvern-macos-aarch64.tar.gz |
| macOS Intel | wyvern-macos-x86_64.tar.gz |
| Windows x86_64 | wyvern-windows.zip |
| Linux x86_64 | wyvern-linux.tar.gz |
Each archive contains wyvern, wyvern-viewer, and share/wyvern/ui/ (message, input, markdown, question, chrome).
What it does
Wyvern bridges the gap between CLI tools and rich user interaction. Pass it a JSON command, get back a JSON result. No Electron. No Chrome. Just the OS's built-in webview rendering your HTML.
The v0.1.0 API stays intentionally small:
- Blocking dialog commands:
message,input,markdown,question,chrome
If something feels complicated, it is usually a documentation or scope problem, not a signal to grow the API. Reviews and hardening should attack accidental complexity directly.
# Show a dialog
# → {"button": "yes"}
# Collect input
# → {"button": "ok", "input": "feature/my-branch"}
# Render a markdown doc
Why Wyvern
| Wyvern | Electron | OS dialogs | |
|---|---|---|---|
| Bundle size | ~5MB | ~150MB | 0 |
| HTML/CSS/JS UI | ✅ | ✅ | ❌ |
| No browser required | ✅ | ❌ | ✅ |
| Custom wizards | Phase D | ✅ | ❌ |
| MCP-compatible | Phase E | ❌ | ❌ |
| JSON I/O | ✅ | custom | ❌ |
Dialog types (v0.1.0)
message— blocking modal with title, body, icon, and standard button combos (ok,yes_no,ok_cancel,yes_no_cancel,retry_cancel, or custom)input— text entry, multiline, or file/folder choosermarkdown— styled markdown viewer (file, inlinecontent, orwyvern file.mdshorthand)question— blocking native renderer based on Claude's publicAskUserQuestionAPIchrome— foundation chrome frame and platform safe zones (used by other dialog types)
Platform support
| Platform | Engine | Load time | Memory |
|---|---|---|---|
| macOS | WebKit (system) | ~instant | ~30–50MB |
| Windows | WebView2 | fast | ~40–60MB |
| Linux | WebKitGTK | moderate | ~100–150MB |
Docs
- PRD — full product requirements and JSON schema reference
Phase acceptance criteria (smoke — delivery rewrite c.16)
Phase C delivery rewrite (c.9–c.16) is complete when:
- Release tarball includes
wyvern+wyvern-viewer+ fullshare/wyvern/ui/(all five dialog types). - Tag
v0.1.0triggers the GitHub Actions release matrix (macOS aarch64/x86_64, Windows, Linux). integrate/phase-c-web-serverCI is green (build, clippy, sc-lint, Playwright with--viewer none).- Manual macOS smoke: extract release artifact and run a dialog with the default embedded viewer.
v0.1.0 is authoritative only after this sprint; historical c5-release tooling is reused here.
Deferred (not in v0.1.0)
wizard— multi-page flows with browser-history navigation (Phase D)--interactive— persistent stdin loop withshow,hide, andexitlifecycle actions (Phase E)wyvern --mcp— MCP server; JSON schema is MCP-ready today, binary ships Phase Enotification— future fire-and-forget path for ephemeral updates;messagestays blocking in v0.1.0
Wyvern: Defy the digital chasm. Unleash native clarity.