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.
Files changed (41) hide show
  1. package/README.md +28 -16
  2. package/dist/cli.js +25841 -21785
  3. package/dist/client/assets/index-8TyiWhdN.js +108 -0
  4. package/dist/client/assets/index-CaVPbXim.css +2 -0
  5. package/dist/client/index.html +18 -2
  6. package/dist/faces/caveat/LICENSE +93 -0
  7. package/dist/faces/caveat/files/caveat-cyrillic-ext-wght-normal.woff2 +0 -0
  8. package/dist/faces/caveat/files/caveat-cyrillic-wght-normal.woff2 +0 -0
  9. package/dist/faces/caveat/files/caveat-latin-ext-wght-normal.woff2 +0 -0
  10. package/dist/faces/caveat/files/caveat-latin-wght-normal.woff2 +0 -0
  11. package/dist/faces/caveat/index.css +39 -0
  12. package/dist/faces/geist/LICENSE +93 -0
  13. package/dist/faces/geist/files/geist-cyrillic-ext-wght-italic.woff2 +0 -0
  14. package/dist/faces/geist/files/geist-cyrillic-ext-wght-normal.woff2 +0 -0
  15. package/dist/faces/geist/files/geist-cyrillic-wght-italic.woff2 +0 -0
  16. package/dist/faces/geist/files/geist-cyrillic-wght-normal.woff2 +0 -0
  17. package/dist/faces/geist/files/geist-latin-ext-wght-italic.woff2 +0 -0
  18. package/dist/faces/geist/files/geist-latin-ext-wght-normal.woff2 +0 -0
  19. package/dist/faces/geist/files/geist-latin-wght-italic.woff2 +0 -0
  20. package/dist/faces/geist/files/geist-latin-wght-normal.woff2 +0 -0
  21. package/dist/faces/geist/files/geist-vietnamese-wght-italic.woff2 +0 -0
  22. package/dist/faces/geist/files/geist-vietnamese-wght-normal.woff2 +0 -0
  23. package/dist/faces/geist/index.css +49 -0
  24. package/dist/faces/geist-mono/LICENSE +93 -0
  25. package/dist/faces/geist-mono/files/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
  26. package/dist/faces/geist-mono/files/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  27. package/dist/faces/geist-mono/files/geist-mono-cyrillic-wght-italic.woff2 +0 -0
  28. package/dist/faces/geist-mono/files/geist-mono-cyrillic-wght-normal.woff2 +0 -0
  29. package/dist/faces/geist-mono/files/geist-mono-latin-ext-wght-italic.woff2 +0 -0
  30. package/dist/faces/geist-mono/files/geist-mono-latin-ext-wght-normal.woff2 +0 -0
  31. package/dist/faces/geist-mono/files/geist-mono-latin-wght-italic.woff2 +0 -0
  32. package/dist/faces/geist-mono/files/geist-mono-latin-wght-normal.woff2 +0 -0
  33. package/dist/faces/geist-mono/files/geist-mono-symbols2-wght-italic.woff2 +0 -0
  34. package/dist/faces/geist-mono/files/geist-mono-symbols2-wght-normal.woff2 +0 -0
  35. package/dist/faces/geist-mono/files/geist-mono-vietnamese-wght-italic.woff2 +0 -0
  36. package/dist/faces/geist-mono/files/geist-mono-vietnamese-wght-normal.woff2 +0 -0
  37. package/dist/faces/geist-mono/index.css +59 -0
  38. package/dist/hook.js +52 -10
  39. package/package.json +16 -5
  40. package/dist/client/assets/index-B0tSZ6Z3.css +0 -2
  41. 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
- ## Install
9
+ ![Frameboard, a local design board for agents and developers](.github/social-card.png)
10
+
11
+ ## Quick start
6
12
 
7
13
  ```bash
8
- npm install -g frameboard
14
+ npx frameboard serve
9
15
  ```
10
16
 
11
- Bun works too, with `bun add -g frameboard`. To try it without installing, run `npx frameboard serve`.
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
- ## First run
19
+ ## What you get
14
20
 
15
- ```bash
16
- frameboard serve
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
- In a folder with no board, `serve` creates `.frameboard/` at the repository top, or in the current folder outside a repository, holding one empty project. It serves on `http://127.0.0.1:4173`, or on a free port when 4173 is taken, and opens the board in your browser unless you pass `--no-open` or a board tab is already connected. Running `serve` again for the same board prints the address of the server already running rather than starting a second, and opens a tab only when none is open.
27
+ ## How it works
20
28
 
21
- The board opens on a home view listing every project. Opening one shows its pages and a canvas of live frames you pan and zoom, each reloading the moment its file changes. Play hands your clicks to the frames, Esc returns to Edit, and Cmd+\ hides the panels. `frameboard show <frame>` points the open board at a frame.
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
- `frameboard docs` prints every command, flag, record shape, exit code, and check rule, and `frameboard --version` prints the installed version.
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
- ## How it works
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
- Frameboard has no hosted service and no MCP server. The design is a folder of HTML files on your disk, which an agent writes and the board renders as real web pages, so animation, video, and interaction work as they would in a browser. Frameboard keeps no private copy of them.
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
- A board folder holds projects, a project holds pages, and a page holds frames, each frame one `.html` file beside a `layout.json` that records where it sits. The `project`, `page`, and `frame` commands add, rename, move, and delete them on disk, and `list` shows the board. `edit` sets one inline style declaration, attribute, or text on one element of a frame and leaves every other byte of the file as it was. Every command takes `--json`, prints one JSON document, exits with a stable code, and never prompts, so an agent can script it.
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
- `frameboard check` reports every content rule a frame, page, or project breaks, such as a link outside the frame's page folder, a font the browser picks by default, or colors set for one theme alone, and exits 8 on any finding. The board runs the same rules on every change it watches and marks a frame's label with its findings. The Claude Code plugin in `plugins/frameboard/` runs them after each agent write and hands the findings back in the same turn, along with the `frameboard` skill.
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 server binds to `127.0.0.1` alone, so the board never leaves your machine. Releases before 1.0 ship the board in stages. Today the package carries the board folder, the structure commands, `edit`, `show`, the live board, and the content checks, and editing by hand in the board arrives in a later 0.x release.
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, or on Bun.
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