frameboard 0.0.1 → 0.2.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 +30 -12
  2. package/dist/cli.js +39474 -2987
  3. package/dist/client/assets/index-BAjwLY8j.js +64 -0
  4. package/dist/client/assets/index-BfJBy5ow.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 +19382 -0
  39. package/package.json +37 -7
  40. package/dist/client/assets/index-BDTUttkQ.js +0 -9
  41. package/dist/client/assets/index-Rd1X0R13.css +0 -2
package/README.md CHANGED
@@ -1,32 +1,50 @@
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`.
12
-
13
- ## First run
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`.
14
18
 
15
- ```bash
16
- frameboard serve
17
- ```
19
+ ## What you get
18
20
 
19
- The command prints the address it serves on, which is `http://127.0.0.1:4173` unless you pass `--port`. Open it in a browser to see the board. `frameboard --version` prints the installed version.
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
20
26
 
21
27
  ## How it works
22
28
 
23
- 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.
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.
30
+
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
- 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 `serve` command and the board's shell, and the board folder, the agent commands, and the content checks arrive in later 0.x releases.
33
+ 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.
34
+
35
+ `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 finding. The board runs the same rules on each change. `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.
36
+
37
+ 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`.
38
+
39
+ The Claude Code plugin in `plugins/frameboard/` runs the 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.
40
+
41
+ Releases before 1.0 ship the board in stages. Editing by hand in the board arrives in a later 0.x release.
26
42
 
27
43
  ## Requirements
28
44
 
29
- Frameboard runs on Node 22 or later, or on Bun.
45
+ Frameboard runs on macOS and Linux, with Node 22 or later or with Bun. Windows support is planned.
46
+
47
+ `capture`, `frame fit`, and `inspect` render in Playwright's headless shell. Without it, they print the command that installs it and download nothing.
30
48
 
31
49
  ## Links
32
50