frameboard 0.1.0 → 0.3.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 +28 -16
- package/dist/cli.js +25841 -21785
- package/dist/client/assets/index-8TyiWhdN.js +108 -0
- package/dist/client/assets/index-CaVPbXim.css +2 -0
- package/dist/client/index.html +18 -2
- package/dist/faces/caveat/LICENSE +93 -0
- package/dist/faces/caveat/files/caveat-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/faces/caveat/files/caveat-cyrillic-wght-normal.woff2 +0 -0
- package/dist/faces/caveat/files/caveat-latin-ext-wght-normal.woff2 +0 -0
- package/dist/faces/caveat/files/caveat-latin-wght-normal.woff2 +0 -0
- package/dist/faces/caveat/index.css +39 -0
- package/dist/faces/geist/LICENSE +93 -0
- package/dist/faces/geist/files/geist-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/faces/geist/files/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/faces/geist/files/geist-cyrillic-wght-italic.woff2 +0 -0
- package/dist/faces/geist/files/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/faces/geist/files/geist-latin-ext-wght-italic.woff2 +0 -0
- package/dist/faces/geist/files/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/faces/geist/files/geist-latin-wght-italic.woff2 +0 -0
- package/dist/faces/geist/files/geist-latin-wght-normal.woff2 +0 -0
- package/dist/faces/geist/files/geist-vietnamese-wght-italic.woff2 +0 -0
- package/dist/faces/geist/files/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/faces/geist/index.css +49 -0
- package/dist/faces/geist-mono/LICENSE +93 -0
- package/dist/faces/geist-mono/files/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-cyrillic-wght-italic.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-latin-wght-italic.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-symbols2-wght-italic.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-symbols2-wght-normal.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-vietnamese-wght-italic.woff2 +0 -0
- package/dist/faces/geist-mono/files/geist-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/faces/geist-mono/index.css +59 -0
- package/dist/hook.js +52 -10
- package/package.json +16 -5
- package/dist/client/assets/index-B0tSZ6Z3.css +0 -2
- package/dist/client/assets/index-CtzIWaOo.js +0 -10
package/README.md
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="src/client/public/icon.svg" alt="Frameboard logo" width="64" height="64">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# Frameboard
|
|
2
6
|
|
|
3
7
|
A local design board that coding agents draw on as plain HTML files, and you review and tweak.
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
6
12
|
|
|
7
13
|
```bash
|
|
8
|
-
|
|
14
|
+
npx frameboard serve
|
|
9
15
|
```
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
In a folder with no board, `serve` creates `.frameboard/` with one empty project and opens the board at `http://127.0.0.1:4173`. Install it with `npm install -g frameboard` or `bun add -g frameboard`.
|
|
12
18
|
|
|
13
|
-
##
|
|
19
|
+
## What you get
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
- Agents draw by writing HTML files and running commands that print JSON, exit with stable codes, and never prompt
|
|
22
|
+
- Frames render as real web pages, so animation, video, and interaction work
|
|
23
|
+
- Every frame reloads the moment its file changes, in light and dark
|
|
24
|
+
- The files are the design, so Frameboard keeps no private copy and a hand edit touches only what changed
|
|
25
|
+
- The server binds to `127.0.0.1`, with no hosted service and no MCP server
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
## How it works
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
A board folder holds projects, a project holds pages, and a page holds frames. Each frame is one `.html` file beside a `layout.json` that records where it sits.
|
|
22
30
|
|
|
23
|
-
`
|
|
31
|
+
The `project`, `page`, and `frame` commands manage them on disk, `list` shows the board, and `edit` changes one style, attribute, or text on one element without touching another byte. `show` points the open board at a frame.
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
On the board, Cmd-click or double-click selects an element inside a frame, Enter, Esc, and Tab walk the tree, and the layers panel lists each frame's elements. `selection` prints what the developer picked, with the element's index and hash ready for `edit`.
|
|
26
34
|
|
|
27
|
-
|
|
35
|
+
Frames share one look through a `tokens.css` in the board folder, which a project's own `tokens.css` overrides, or through `serve --tokens <path>` for a sheet another tool manages. 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, and the file on disk stays as written. One toggle switches the board and every frame between light and dark.
|
|
28
36
|
|
|
29
|
-
|
|
37
|
+
`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. The board runs the same rules on each change, and a running server adds the rules only a browser can see, being clipped content, a scrollbar inside the frame, content sized off the viewport, and text under a project's minimum size. `capture` writes PNGs of a frame or page in either theme, `frame fit` sets a frame's height to its content, and `inspect` lists each rendered element with the index `edit` takes, its box, and its computed color and type.
|
|
30
38
|
|
|
31
|
-
|
|
39
|
+
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. The agent answers in the note's thread through `notes reply` and closes it with `notes done`, and the notes stay in each page's `notes.json`.
|
|
32
40
|
|
|
33
|
-
The
|
|
41
|
+
The Claude Code plugin in `plugins/frameboard/` runs the static checks after each agent write and hands the findings back in the same turn. Its monitor runs `inbox --follow` for the session, so a sent note reaches the agent at once. `frameboard docs` prints every command, flag, record shape, and exit code.
|
|
42
|
+
|
|
43
|
+
In the board you move and resize frames, add, rename, reorder, delete, and search pages, and undo any of it with Cmd+Z. An undo of something an agent has changed since is refused and named on the board, so it never reverts the agent's work. Releases before 1.0 ship the board in stages, and the rest of editing by hand arrives in later 0.x releases.
|
|
34
44
|
|
|
35
45
|
## Requirements
|
|
36
46
|
|
|
37
|
-
Frameboard runs on Node 22 or later
|
|
47
|
+
Frameboard runs on macOS and Linux, with Node 22 or later or with Bun. Windows support is planned.
|
|
48
|
+
|
|
49
|
+
`capture`, `frame fit`, and `inspect` render in Playwright's headless shell. Without it, they print the command that installs it and download nothing.
|
|
38
50
|
|
|
39
51
|
## Links
|
|
40
52
|
|