by Zaviel
Mobile mockups for plugins and vault apps: lay out screens on real phone frames, saved as small JSON files your coding agent reads and builds from.
Vellum
Draft app screens inside Obsidian, together with your coding agent.
English · 繁體中文
A light plugin for UI drafts that never leaves your vault: no design app, no website, no account. Lay screens out on a real device frame (a phone, a tablet, a desktop window or any size you set); each one is a small JSON file, so any agent that can open the vault reads exactly where everything is and edits the same files. No screenshots, no long descriptions.
- Any app, any screen: a phone app, a desktop window, a web page or an Obsidian plugin; a side project or a work project. Several apps share a vault, each in its own folder with its own device. If your notes live in Obsidian, its screens can too.
- Point at a piece, ask for a change: copy a block or an item for the agent in one click, say what to change, see it on the phone.
- Talk through the flow, not just the pixels: the Map shows how the screens connect, so you and the agent can work out the app's logic and UX together.
Colours, fonts and icons come from your Obsidian theme, so a plugin's mockup already looks like the plugin.
The JSON is a layout intent, not native layout code. It maps directly to HTML and CSS, so to Obsidian plugins; for SwiftUI or Compose, see the FAQ.
Install · Quick start · With your agent · File format · FAQ
![]() | ![]() | ![]() | ![]() |
Screens of Ledgerline, a personal finance app built in Obsidian, designed in Vellum with Claude Code. Every number is made up.

Features
Real devices iPhone 12 – 17, Pixel 8, Galaxy S24 / S25, or any size (a desktop window, a tablet, a panel), with cut-outs, safe areas, your own corner and status bar. | Portrait and landscape A layout for each, one switch for the whole editor. | Blocks and gravity Text and shapes keep an anchor point, an offset, and hug / fixed / fill sizes. |
Pictures and icons Images by address or vault path; Lucide icons by name. | Frames Screens share a layout and store only what they change. | Snapping Edges, middles, margins and neighbours, with guide lines. |
Screen map Every screen as a tree, joined by how you get there. | Its own window A full editor on a computer, a bottom sheet on a phone. Show walks the screens as a preview. | Plain JSON One file per screen, one block per line. Small diffs. |
Marks Notes, named areas and guide lines on the screen, for you and the agent. | Overlays Grids, columns, thirds, the golden ratio and spiral, vanishing points. | Choose and group Drag an area over blocks or items, move them together, group them. |
![]() Overlays: three columns; the list's names, prices and values line up with them | ![]() Show: the screen as a preview, the way here above, the next screen beside |

Map: every screen as a tree, joined by how you get there; a click opens one
Install
- Community plugins: in Settings → Community plugins → Browse, search for Vellum, install and enable it.
- BRAT: add the beta plugin
zelvet-velvet/vellum. - Manual: copy
main.js,manifest.jsonandstyles.cssfrom the latest release into<vault>/.obsidian/plugins/vellum/, then enable Vellum.
Quick start
- Click Vellum in the ribbon. The editor opens on
Screens/. - New Screen, add a block, place items in it.
- Ctrl+S to save.
Want sample screens? Copy examples/Vellum Demo.md into your vault.
With your agent
Any agent that reads and writes files works: Claude Code, Codex, Cursor. No plugin API, no server.
- The agent drafts your app's screens, or proposes new ones.
- You point and ask: choose a block, press Copy reference (Ctrl Shift C), paste it to the agent with what to change. Or leave a mark on the screen: a pinned note, a named area, a guide line. The agent can answer with marks of its own.
- The agent builds from the screens you changed.

1 Copy reference on a block, 2 paste it to the agent with what to change, 3 the phone updates as the file changes.
![]() |
The card with the mix bars, as its file holds it:
One screen is one small file. The agent reads exactly where each thing is, and changes only what it needs to. |
Start your agent with this; the guide for agents tells it what Vellum can do:
Read github.com/zelvet-velvet/vellum/blob/main/docs/for-agents.md.
Write each page of my app as a Vellum screen in Vellum/<app name>, then tell me the folder.
When I ask for options, make them as Vellum mocks, not as a web page.
The guide also ships with Vellum, so the agent needs no link. It sits as VELLUM.md in the folder that holds your apps, one subfolder per app beside it (Vellum/VELLUM.md, Vellum/Remote/, Vellum/Console/). Vellum writes it when you make an app in a folder that has none; for apps made before, run Vellum: Add the agent guide. Point your agent to it once, e.g. a line in your AGENTS.md or CLAUDE.md. For Claude Code, Add the agent guide as a Claude Code skill (.claude/skills/vellum/) loads it by itself. Each copy matches the Vellum you have and is written again when Vellum updates; a VELLUM.md you wrote yourself is left alone.
[!TIP] Frames belong to what they frame: a block has its own
fill,strokeandsides, a text its own box. A rectangle drawn as a frame (an older screen) shows Make it the block's look or Make it the text's box when you choose it.Ask for two or three mocks (
"mock": true) as sub screens and keep the one you like. The agent can write while the editor is open: Vellum reloads the files and never overwrites your unsaved edits.
The screens of Morellonomicon and Ledgerline were designed this way, with Claude Code.
File format
One folder per app, one small file per screen, the apps side by side with the agent guide:
Vellum/
├─ VELLUM.md the guide for agents
└─ Remote/ an app
├─ _doc.json the device: size, safe areas, corner, status bar; the app's colours; the screen order
├─ Home.json a screen
└─ Settings.json another screen
A screen is a few blocks, boxes on the phone. Each block holds items, placed by an anchor:
{"id": "home", "name": "Home", "blocks": [
{"id": "title", "name": "Title", "kind": "nav", "x": 16, "y": 70, "w": 396, "h": 44, // a box, in points
"items": [
{"id": "t1", "type": "text", "v": "HOME", "font": "display", "size": 32, "g": "l"}, // left, centred down
{"id": "i1", "type": "icon", "name": "settings", "g": "r"} // right: a Lucide icon
]}
]}
Show the screens in a note with a code block vellum holding src: Vellum/Remote. Every field is below; agents have their own guide.
Field reference
| Level | Fields |
|---|---|
| Doc | device (a phone's id, or a custom size custom-<w>x<h>, ending -tablet, -window or -web for those: a window and a web page are square, with no bar and no safe areas); safe, safeLand (top bottom left right, each optional); radius (the screen's corner, 0 for a square screen; else the device's); bar (the status bar: style ios, android or none, fill, ink, time; as high as safe.top when that is set); colors (this app's colours by name, over the settings); themes (named palettes over those, light, dark…) and theme (the one it opens in, or auto: as Obsidian is light or dark; none: your Obsidian colours) |
| Page | name, note, parent, link (how you get there), inherit (true: the parent is its frame), device, bg, mock, blocks, land (the landscape layout), marks |
| Block | name, kind, note, x y w h (screen points), bleed (true: may go into the safe areas; a block wholly outside the screen is a draft, kept beside it in the editor and not built), its own look: fill stroke sw r and sides (the outline on some sides only: "b", "tb"…), lock (true: drawn, but a click on the screen goes through it; chosen from the Blocks list), items |
| Any item | g (anchor: tl t tr l c r bl b br), dx dy, w h (a number, "hug" or "fill"), op, note, lock (as on a block) |
text | v size wt font color ls lh upper, and a box of its own: fill stroke sw r pad (a chip, a tile, a button; with a set h the text sits in its middle) |
rect ellipse line | fill stroke sw r (r: one radius, or four: [tl, tr, br, bl]) |
img | src (https://… or a vault path), fit (cover · contain · fill), pos (CSS object-position), r |
icon | name (Lucide), color size sw |
row col | items gap pad main cross, fill stroke sw r |
group | items, each placed in the group's w h box by its own g dx dy; moved as one |
| Mark | A note on the screen for you and the agent, never part of the design: id, kind (note: a pin · area: a box w h with a guide in it if wanted, thirds phi spiral diag center · line: axis "x" down or "y" across), x y, text, color, size (its text's size, 11 if not set), w on a note (its bubble's width, else as wide as its text), land, by ("agent") |
Frames. A page with "inherit": true draws its parent's blocks under its own. An own block with the same id replaces the parent's one; the page stores only its own blocks.
Colours and fonts. Items use theme names (paper text dim line tile loud accent; ui display mono), set in Settings → Vellum, or any CSS value. An app can have its own colours and themes (light, dark, or any name) in its _doc.json. Set them in Settings → Vellum → Screen colours with the app chosen, or in the editor's Colours window (the palette button in its top bar), which also switches between them to check every screen. The editor's own panels follow your Obsidian theme, or the Editor theme colours in the same settings.
Shortcuts
| ← → ↑ ↓ | Nudge 1 pt, with Shift one grid step |
| Ctrl Z · Ctrl Shift Z | Undo · redo |
| Ctrl D · Delete | Duplicate · delete |
| Ctrl S | Save |
| Alt / Shift while dragging | No snapping · keep the shape |
| Middle button, drag · Ctrl + wheel | Move the view · zoom at the pointer (up to 1600 %) |
| Drag on empty space · with Ctrl | Choose the blocks inside the area (or the items it crosses) · always the items |
| Shift click · Ctrl A | Add to the chosen or take out · every block |
| Ctrl G · Ctrl Shift G | Group the chosen items · ungroup (a group, row or column: its items stay where they are) |
| N · Shift N | The mark tool (a click: a note, a drag: an area) · show / hide the marks |
| Ctrl ' | Show / hide the overlays |
| Ctrl Shift C | Copy a reference to the chosen screen, block or item, for the agent |
| ← → in Show | The previous · the next screen |
| Hold a number box, then drag up / down | Change it (a click types; ↑ ↓ step it, with Shift ×10) |
FAQ
Does Vellum use the network?
Only to show a picture whose src is an https:// address, as an image in a note would. Vellum makes no requests of its own.
Can I use it for a native iOS or Android app?
Yes, as a sketch your agent translates. Inside a block, items are placed the way native layouts work:
| Vellum | SwiftUI | Compose |
|---|---|---|
anchor point (g) | alignment | Alignment |
"hug" / "fill" | .fixedSize() / .frame(maxWidth: .infinity) | wrapContentSize() / fillMaxWidth() |
row / col | HStack / VStack | Row / Column |
Blocks themselves sit at fixed positions on the screen, so the agent turns those into stacks and spacing.
Can I use it for a desktop app or a web page?
Yes. Give the folder a custom size, the window's own, as a window ("device": "custom-1280x800-window", or Device → Custom → Window): a plain rectangle, with no bar and no safe areas. A screen can take another size of its own, for a dialog or a smaller window. Each app is its own folder, so a phone app and its desktop companion sit side by side in one vault.
Does it work on a phone?
Yes. The editor takes the full screen, with its settings in a bottom sheet.
Where is unsaved work kept?
On the device, in Obsidian's storage for that vault, until you save.
How do I build it?
npm install && npm run check && npm run build
npm run install-vault -- /path/to/vault
Support
Vellum is free and made in my spare time. If it helps you, a coffee keeps it going.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.






