frameboard 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -97
- package/dist/cli.js +1085 -168
- package/dist/client/assets/index-Dw9kkXht.css +2 -0
- package/dist/client/assets/index-l0GcY95w.js +110 -0
- package/dist/client/index.html +2 -2
- package/dist/hook.js +1 -1
- package/package.json +3 -3
- package/dist/client/assets/index-CLM-tflU.css +0 -2
- package/dist/client/assets/index-__0wcmfM.js +0 -110
package/README.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="src/client/public/icon.svg" alt="Frameboard logo" width="64" height="64">
|
|
4
4
|
|
|
5
5
|
# Frameboard
|
|
6
6
|
|
|
7
7
|
A local design board that coding agents draw on as plain HTML files, and you review and tweak.
|
|
8
8
|
|
|
9
|
-
](https://www.npmjs.com/package/frameboard)
|
|
10
|
+
[](https://github.com/erclx/frameboard/actions/workflows/verify.yml)
|
|
11
|
+
[](package.json)
|
|
12
|
+
[](LICENSE)
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<picture>
|
|
18
|
+
<source media="(prefers-color-scheme: dark)" srcset=".github/readme-hero-dark.png">
|
|
19
|
+
<source media="(prefers-reduced-motion: reduce)" srcset=".github/readme-hero-light.png">
|
|
20
|
+
<img src=".github/readme-hero-loop-light.webp" alt="The Frameboard canvas showing a plant care app's landing page and two phone screens" width="880">
|
|
21
|
+
</picture>
|
|
22
|
+
</p>
|
|
10
23
|
|
|
11
24
|
## Quick start
|
|
12
25
|
|
|
@@ -14,110 +27,31 @@ A local design board that coding agents draw on as plain HTML files, and you rev
|
|
|
14
27
|
npx frameboard serve
|
|
15
28
|
```
|
|
16
29
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Install it with `npm install -g frameboard` or `bun add -g frameboard`.
|
|
20
|
-
|
|
21
|
-
## What you get
|
|
30
|
+
`serve` opens a board in your browser, in a tab that can edit. Point your coding agent at the same folder, and each frame it writes shows up as soon as the file lands.
|
|
22
31
|
|
|
23
|
-
|
|
24
|
-
- Frames render as real web pages, so animation, video, and interaction work
|
|
25
|
-
- Every frame reloads the moment its file changes, in light and dark
|
|
26
|
-
- The files are the design, so Frameboard keeps no private copy and a hand edit touches only what changed
|
|
27
|
-
- The server binds to `127.0.0.1`, with no hosted service and no MCP server
|
|
32
|
+
To keep it around, install it with `npm install -g frameboard` or `bun add -g frameboard`.
|
|
28
33
|
|
|
29
34
|
## How it works
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- Each frame is one `.html` file beside a `layout.json` that records where it sits
|
|
36
|
-
|
|
37
|
-
### Tokens and themes
|
|
38
|
-
|
|
39
|
-
Frames share one look through a `tokens.css` in the board folder, which a project's own `tokens.css` overrides.
|
|
40
|
-
|
|
41
|
-
- `serve --tokens <path>` takes a sheet another tool manages instead
|
|
42
|
-
- `project tokens <project> --accent <preset> --font <face>` writes a starter sheet where no sheet reaches the project, and refuses where one does
|
|
43
|
-
- The server puts the sheets and three faces, Geist, Geist Mono, and Caveat, ahead of each frame's own styles as it serves the frame
|
|
44
|
-
- The file on disk stays as written
|
|
45
|
-
- One toggle switches the board and every frame between light and dark
|
|
46
|
-
|
|
47
|
-
## For agents
|
|
48
|
-
|
|
49
|
-
### Commands
|
|
50
|
-
|
|
51
|
-
The `project`, `page`, and `frame` commands manage the board on disk, and `list` shows it.
|
|
52
|
-
|
|
53
|
-
- `edit` changes one style, attribute, or text on one element without touching another byte
|
|
54
|
-
- `show` points the open board at a frame, or offers Go while you are mid-action or it sits in another project, and `capture` writes PNGs of a frame or page in either theme
|
|
55
|
-
- `frame add` with no size makes a frame that hugs its content, which a running server measures after each write, and `frame fit` sets a height to its content and keeps it hugging
|
|
56
|
-
- `inspect` lists each rendered element with the index `edit` takes, its box, and its computed color and type
|
|
57
|
-
- `frameboard docs` prints every command, flag, record shape, and exit code
|
|
58
|
-
|
|
59
|
-
### Content checks
|
|
60
|
-
|
|
61
|
-
`frameboard check` reports every content rule a frame breaks, such as a link outside its page folder or colors set for one theme alone, and exits 8 on any error.
|
|
62
|
-
|
|
63
|
-
- The board runs the same rules on each change, and a frame's findings badge opens the list, which the inspector shows too
|
|
64
|
-
- A running server adds the rules only a browser can see, being clipped content, an inner scrollbar, content sized off the viewport, text under a project's minimum size, and dropped CSS
|
|
65
|
-
|
|
66
|
-
### Claims
|
|
67
|
-
|
|
68
|
-
An agent runs `editing` on a frame before rewriting it.
|
|
69
|
-
|
|
70
|
-
- The board then outlines the frame and tags it with the agent and how long it has held it, and a second session that tries to claim it is told it is taken
|
|
71
|
-
- A claim lapses five minutes after the agent last ran `editing`, and a note sent from a claimed frame goes to the session holding it
|
|
72
|
-
- When you move, resize, edit, rename, or delete a claimed frame, your edit waits until the claim ends, under a card naming the agent
|
|
73
|
-
- A move or resize then goes only if the agent left the frame as you saw it, and a rename or delete goes once the claim ends
|
|
74
|
-
- An element edit goes if the agent left that element alone, and otherwise comes back, with typed text kept in the Text field to apply again
|
|
75
|
-
|
|
76
|
-
### Change marks and following
|
|
77
|
-
|
|
78
|
-
When an agent writes a frame, the board marks it with a dot and counts it on its page and project until you look at it.
|
|
79
|
-
|
|
80
|
-
- A toast names the agent and offers Show, which takes you to the change and makes the edited elements glow, and Next, or `]`, steps to the next one
|
|
81
|
-
- The compare button on a changed frame's label flips it to the version before the agent's run, or splits it at a divider you drag
|
|
82
|
-
- The server keeps that version until it restarts or 200 later changes land
|
|
83
|
-
- Click a listening agent's initial in the inspector header to follow it
|
|
84
|
-
- The board then pans to each frame it claims or writes, across pages, until you pan, zoom, or click the canvas yourself
|
|
85
|
-
|
|
86
|
-
### Plugin
|
|
87
|
-
|
|
88
|
-
The Claude Code plugin in `plugins/frameboard/` runs the static checks after each agent write and hands the findings back in the same turn.
|
|
89
|
-
|
|
90
|
-
- Its monitor runs `inbox --follow` for the session, so a sent note reaches the agent at once
|
|
36
|
+
| 1. Your agent writes | 2. The board shows it | 3. You steer |
|
|
37
|
+
| ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
38
|
+
| Each frame is one HTML file in a page folder, so your agent draws with the tools it already has. | A frame reloads the moment its file changes, in light and dark, and a broken rule is flagged on the frame. | Move, restyle, and retype by hand, or pin a note your agent answers in its thread. |
|
|
91
39
|
|
|
92
40
|
## For you
|
|
93
41
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- Enter, Esc, and Tab walk the tree, and the layers panel lists each frame's elements
|
|
99
|
-
- `selection` prints what you picked, with the element's index and hash ready for `edit`
|
|
100
|
-
|
|
101
|
-
### Notes
|
|
102
|
-
|
|
103
|
-
Pin a note on a frame or one element with the Note tool, and Send hands it to a Claude Code session listening on the board.
|
|
104
|
-
|
|
105
|
-
- The agent answers in the note's thread through `notes reply` and closes it with `notes done`
|
|
106
|
-
- The notes stay in each page's `notes.json`
|
|
107
|
-
|
|
108
|
-
### Hand edits
|
|
42
|
+
- You arrange pages, frames, and layers, and copy, paste, or undo across all of them
|
|
43
|
+
- You change text, shapes, color, and type by hand, picking colors from your project's tokens
|
|
44
|
+
- A note you pin on a frame or an element reaches your agent straight away
|
|
109
45
|
|
|
110
|
-
|
|
46
|
+
[Everything you can do on the board](docs/board.md)
|
|
111
47
|
|
|
112
|
-
|
|
113
|
-
- The inspector edits a selected element's opacity, radius, type size, weight, alignment, fill, stroke color, shadow, and text, its numbers stepping on arrow keys and scrubbing from a label or caption
|
|
114
|
-
- The layers panel selects, renames, restacks, hides, and locks frames, renames elements, and Cmd+D, Cmd+C, Cmd+X, and Cmd+V duplicate, copy, cut, and paste them across pages and projects
|
|
115
|
-
- Cmd+F finds a frame, an element, or a line of copy on any page of the project and jumps to it
|
|
116
|
-
- Right-click a frame, element, empty canvas, page, or layers row for its actions, such as Copy as PNG, Fit height, or Flip to light, which shows that frame alone in the other theme until reload
|
|
48
|
+
## For your agent
|
|
117
49
|
|
|
118
|
-
|
|
50
|
+
- Commands print JSON and never prompt, so an agent can run them unattended
|
|
51
|
+
- `frameboard check` flags what breaks a frame, such as clipped text or a color set for one theme only
|
|
52
|
+
- The Claude Code plugin checks each frame the agent writes and hands it your notes as they arrive
|
|
119
53
|
|
|
120
|
-
|
|
54
|
+
[The command and check reference](docs/agents.md)
|
|
121
55
|
|
|
122
56
|
## Requirements
|
|
123
57
|
|
|
@@ -127,6 +61,7 @@ Frameboard runs on macOS and Linux, with Node 22 or later or with Bun. Windows s
|
|
|
127
61
|
|
|
128
62
|
## Links
|
|
129
63
|
|
|
64
|
+
- [How it works](docs/how-it-works.md) for the board folder, tokens, and themes
|
|
130
65
|
- [Contributing guide](CONTRIBUTING.md) for setup, tests, and the commit rules
|
|
131
66
|
- [Security policy](SECURITY.md) for reporting a vulnerability privately
|
|
132
67
|
- [Issue tracker](https://github.com/erclx/frameboard/issues)
|