frameboard 0.14.0 → 0.16.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.
Files changed (90) hide show
  1. package/README.md +32 -100
  2. package/dist/cli.js +313 -65
  3. package/dist/client/assets/index-Dg25rx_8.js +110 -0
  4. package/dist/client/assets/index-EciSUFrP.css +2 -0
  5. package/dist/client/index.html +2 -2
  6. package/dist/faces/inter/LICENSE +93 -0
  7. package/dist/faces/inter/files/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
  8. package/dist/faces/inter/files/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
  9. package/dist/faces/inter/files/inter-cyrillic-ext-standard-italic.woff2 +0 -0
  10. package/dist/faces/inter/files/inter-cyrillic-ext-standard-normal.woff2 +0 -0
  11. package/dist/faces/inter/files/inter-cyrillic-ext-wght-italic.woff2 +0 -0
  12. package/dist/faces/inter/files/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  13. package/dist/faces/inter/files/inter-cyrillic-opsz-italic.woff2 +0 -0
  14. package/dist/faces/inter/files/inter-cyrillic-opsz-normal.woff2 +0 -0
  15. package/dist/faces/inter/files/inter-cyrillic-standard-italic.woff2 +0 -0
  16. package/dist/faces/inter/files/inter-cyrillic-standard-normal.woff2 +0 -0
  17. package/dist/faces/inter/files/inter-cyrillic-wght-italic.woff2 +0 -0
  18. package/dist/faces/inter/files/inter-cyrillic-wght-normal.woff2 +0 -0
  19. package/dist/faces/inter/files/inter-greek-ext-opsz-italic.woff2 +0 -0
  20. package/dist/faces/inter/files/inter-greek-ext-opsz-normal.woff2 +0 -0
  21. package/dist/faces/inter/files/inter-greek-ext-standard-italic.woff2 +0 -0
  22. package/dist/faces/inter/files/inter-greek-ext-standard-normal.woff2 +0 -0
  23. package/dist/faces/inter/files/inter-greek-ext-wght-italic.woff2 +0 -0
  24. package/dist/faces/inter/files/inter-greek-ext-wght-normal.woff2 +0 -0
  25. package/dist/faces/inter/files/inter-greek-opsz-italic.woff2 +0 -0
  26. package/dist/faces/inter/files/inter-greek-opsz-normal.woff2 +0 -0
  27. package/dist/faces/inter/files/inter-greek-standard-italic.woff2 +0 -0
  28. package/dist/faces/inter/files/inter-greek-standard-normal.woff2 +0 -0
  29. package/dist/faces/inter/files/inter-greek-wght-italic.woff2 +0 -0
  30. package/dist/faces/inter/files/inter-greek-wght-normal.woff2 +0 -0
  31. package/dist/faces/inter/files/inter-latin-ext-opsz-italic.woff2 +0 -0
  32. package/dist/faces/inter/files/inter-latin-ext-opsz-normal.woff2 +0 -0
  33. package/dist/faces/inter/files/inter-latin-ext-standard-italic.woff2 +0 -0
  34. package/dist/faces/inter/files/inter-latin-ext-standard-normal.woff2 +0 -0
  35. package/dist/faces/inter/files/inter-latin-ext-wght-italic.woff2 +0 -0
  36. package/dist/faces/inter/files/inter-latin-ext-wght-normal.woff2 +0 -0
  37. package/dist/faces/inter/files/inter-latin-opsz-italic.woff2 +0 -0
  38. package/dist/faces/inter/files/inter-latin-opsz-normal.woff2 +0 -0
  39. package/dist/faces/inter/files/inter-latin-standard-italic.woff2 +0 -0
  40. package/dist/faces/inter/files/inter-latin-standard-normal.woff2 +0 -0
  41. package/dist/faces/inter/files/inter-latin-wght-italic.woff2 +0 -0
  42. package/dist/faces/inter/files/inter-latin-wght-normal.woff2 +0 -0
  43. package/dist/faces/inter/files/inter-vietnamese-opsz-italic.woff2 +0 -0
  44. package/dist/faces/inter/files/inter-vietnamese-opsz-normal.woff2 +0 -0
  45. package/dist/faces/inter/files/inter-vietnamese-standard-italic.woff2 +0 -0
  46. package/dist/faces/inter/files/inter-vietnamese-standard-normal.woff2 +0 -0
  47. package/dist/faces/inter/files/inter-vietnamese-wght-italic.woff2 +0 -0
  48. package/dist/faces/inter/files/inter-vietnamese-wght-normal.woff2 +0 -0
  49. package/dist/faces/inter/index.css +69 -0
  50. package/dist/faces/source-serif-4/LICENSE +93 -0
  51. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-ext-opsz-italic.woff2 +0 -0
  52. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-ext-opsz-normal.woff2 +0 -0
  53. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-ext-standard-italic.woff2 +0 -0
  54. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-ext-standard-normal.woff2 +0 -0
  55. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-ext-wght-italic.woff2 +0 -0
  56. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-ext-wght-normal.woff2 +0 -0
  57. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-opsz-italic.woff2 +0 -0
  58. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-opsz-normal.woff2 +0 -0
  59. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-standard-italic.woff2 +0 -0
  60. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-standard-normal.woff2 +0 -0
  61. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-wght-italic.woff2 +0 -0
  62. package/dist/faces/source-serif-4/files/source-serif-4-cyrillic-wght-normal.woff2 +0 -0
  63. package/dist/faces/source-serif-4/files/source-serif-4-greek-opsz-italic.woff2 +0 -0
  64. package/dist/faces/source-serif-4/files/source-serif-4-greek-opsz-normal.woff2 +0 -0
  65. package/dist/faces/source-serif-4/files/source-serif-4-greek-standard-italic.woff2 +0 -0
  66. package/dist/faces/source-serif-4/files/source-serif-4-greek-standard-normal.woff2 +0 -0
  67. package/dist/faces/source-serif-4/files/source-serif-4-greek-wght-italic.woff2 +0 -0
  68. package/dist/faces/source-serif-4/files/source-serif-4-greek-wght-normal.woff2 +0 -0
  69. package/dist/faces/source-serif-4/files/source-serif-4-latin-ext-opsz-italic.woff2 +0 -0
  70. package/dist/faces/source-serif-4/files/source-serif-4-latin-ext-opsz-normal.woff2 +0 -0
  71. package/dist/faces/source-serif-4/files/source-serif-4-latin-ext-standard-italic.woff2 +0 -0
  72. package/dist/faces/source-serif-4/files/source-serif-4-latin-ext-standard-normal.woff2 +0 -0
  73. package/dist/faces/source-serif-4/files/source-serif-4-latin-ext-wght-italic.woff2 +0 -0
  74. package/dist/faces/source-serif-4/files/source-serif-4-latin-ext-wght-normal.woff2 +0 -0
  75. package/dist/faces/source-serif-4/files/source-serif-4-latin-opsz-italic.woff2 +0 -0
  76. package/dist/faces/source-serif-4/files/source-serif-4-latin-opsz-normal.woff2 +0 -0
  77. package/dist/faces/source-serif-4/files/source-serif-4-latin-standard-italic.woff2 +0 -0
  78. package/dist/faces/source-serif-4/files/source-serif-4-latin-standard-normal.woff2 +0 -0
  79. package/dist/faces/source-serif-4/files/source-serif-4-latin-wght-italic.woff2 +0 -0
  80. package/dist/faces/source-serif-4/files/source-serif-4-latin-wght-normal.woff2 +0 -0
  81. package/dist/faces/source-serif-4/files/source-serif-4-vietnamese-opsz-italic.woff2 +0 -0
  82. package/dist/faces/source-serif-4/files/source-serif-4-vietnamese-opsz-normal.woff2 +0 -0
  83. package/dist/faces/source-serif-4/files/source-serif-4-vietnamese-standard-italic.woff2 +0 -0
  84. package/dist/faces/source-serif-4/files/source-serif-4-vietnamese-standard-normal.woff2 +0 -0
  85. package/dist/faces/source-serif-4/files/source-serif-4-vietnamese-wght-italic.woff2 +0 -0
  86. package/dist/faces/source-serif-4/files/source-serif-4-vietnamese-wght-normal.woff2 +0 -0
  87. package/dist/faces/source-serif-4/index.css +59 -0
  88. package/package.json +5 -3
  89. package/dist/client/assets/index-D6XyJYZH.css +0 -2
  90. package/dist/client/assets/index-RAnQsb-L.js +0 -110
package/README.md CHANGED
@@ -1,12 +1,25 @@
1
- <p align="center">
2
- <img src="src/client/public/icon.svg" alt="Frameboard logo" width="64" height="64">
3
- </p>
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
- ![Frameboard, a local design board for agents and developers](.github/social-card.png)
9
+ [![npm](https://img.shields.io/npm/v/frameboard)](https://www.npmjs.com/package/frameboard)
10
+ [![Verify](https://img.shields.io/github/actions/workflow/status/erclx/frameboard/verify.yml?branch=main&label=Verify)](https://github.com/erclx/frameboard/actions/workflows/verify.yml)
11
+ [![Node](https://img.shields.io/node/v/frameboard)](package.json)
12
+ [![License](https://img.shields.io/npm/l/frameboard)](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,113 +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
- In a folder with no board above it, `serve` creates `.frameboard/` there with one empty project and opens it at `http://127.0.0.1:4173` in a tab that can edit, where a first page asks for a project name, a screen size, and a look. A tab you open on that address yourself only reads, so run `frameboard open` for another that edits.
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
- - Agents draw by writing HTML files and running commands that print JSON, exit with stable codes, and never prompt
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
- ### Board folder
32
-
33
- A board folder holds projects, a project holds pages, and a page holds frames.
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
- ### Selecting
95
-
96
- On the board, Cmd-click or double-click selects an element inside a frame.
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
- - Paste or drop a PNG, JPEG, GIF, or WebP image into a note or a reply, and the agent gets its path to open
107
- - The notes stay in each page's `notes.json`, and their images in its `.notes/` folder
108
- - With nobody listening, Send can start a session through a command you export before `serve`, such as `FRAMEBOARD_DISPATCH='claude --bg "$FRAMEBOARD_NOTE"'`, which gets the note in its environment
109
- - The command runs in the folder `serve` started in, and `claude --bg` starts only once Claude Code trusts that folder
110
-
111
- ### 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
112
45
 
113
- In the board you move and resize frames, Alt-drag one to drop a copy, and hold Space to pan with any tool. You add, rename, reorder, delete, and search pages, and add a frame at a phone, tablet, or desktop size with the Frame tool. The inspector's Preview row redraws a frame at another width to watch it reflow, and writes nothing.
46
+ [Everything you can do on the board](docs/board.md)
114
47
 
115
- - On the home view, New project adds a project, a card's right-click menu opens, renames, duplicates, pins, or deletes one, and Sort orders them by last edited, created, or name, in either direction
116
- - The inspector edits a frame's fill and an element's opacity, radius, type, line height, letter spacing, fill, stroke, shadow, and text, its numbers stepping on arrows and scrubbing from a label
117
- - 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
118
- - Cmd+F finds a frame, an element, or a line of copy on any page of the project and jumps to it
119
- - 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
120
49
 
121
- The Text and Shape tools drop a paragraph, rectangle, ellipse, or divider into a frame's layout where you click, sizing a rectangle or ellipse to a drag. Drag a selected element to move it, Delete to take it out, or double-click text to retype it. The color picker holds a hex field, opacity, and token swatches, and flags a color no token names.
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
122
53
 
123
- 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.
54
+ [The command and check reference](docs/agents.md)
124
55
 
125
56
  ## Requirements
126
57
 
@@ -130,6 +61,7 @@ Frameboard runs on macOS and Linux, with Node 22 or later or with Bun. Windows s
130
61
 
131
62
  ## Links
132
63
 
64
+ - [How it works](docs/how-it-works.md) for the board folder, tokens, and themes
133
65
  - [Contributing guide](CONTRIBUTING.md) for setup, tests, and the commit rules
134
66
  - [Security policy](SECURITY.md) for reporting a vulnerability privately
135
67
  - [Issue tracker](https://github.com/erclx/frameboard/issues)