ponzu 1.76.0 → 1.78.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 CHANGED
@@ -53,7 +53,7 @@ Any other MCP client can launch `ponzu mcp` over stdio, or use `http://127.0.0.1
53
53
 
54
54
  ### The plugin
55
55
 
56
- Claude Code and Codex can also install Ponzu as a plugin. It adds Ponzu's skills (start a design from a brief, bring a screen into Ponzu, explore variations, implement a design, watch your comments) and the same server the app sets up. It launches the Mac app's server, so open the app once first.
56
+ Claude Code and Codex can also install Ponzu as a plugin. It adds Ponzu's skills (start a design from a brief, bring a screen into Ponzu, explore variations, make a product shot, implement a design, watch your comments) and the same server the app sets up. It launches the Mac app's server, so open the app once first.
57
57
 
58
58
  ```sh
59
59
  claude plugin marketplace add north-brook/ponzu && claude plugin install ponzu@ponzu
@@ -66,7 +66,7 @@ Then ask for something:
66
66
 
67
67
  > Design a landing page for a houseplant shop in a new `design/shop.design`. Give me three takes on the hero.
68
68
 
69
- When an agent points you at a design, it gives you a link rather than a folder path, so it opens in Ponzu instead of your editor: `https://ponzu.design/local#mac=workstation&file=/path/to/app.design&artboard=ab_hero` for the Mac app, or the canvas's own `http://localhost:7777/?file=…` under `ponzu serve`. `artboard` is optional and opens on that board. `mac` is the Mac the design is on, by its Tailscale name, so the link opens on your other Macs too, through Ponzu's link between them; without Tailscale it's left out and the link opens the path on the Mac you click it on. The ponzu.design page hands the design to the app as `ponzu://open?mac=…&file=…` (chats drop links in schemes they don't know) or offers the download if Ponzu isn't installed; the path stays after the `#`, which browsers never send to the site. `/local` sits beside `/gh` for designs on GitHub.
69
+ When an agent points you at a design, it gives you a link rather than a folder path, so it opens in Ponzu instead of your editor: `https://ponzu.design/local#mac=workstation&file=/path/to/app.design&artboard=ab_hero` for the Mac app, or the canvas's own `http://localhost:7777/?file=…` under `ponzu serve`. `page` and `artboard` are optional: `page=<id>` opens on that page, `artboard=<id>` on that board, and with both it opens on the board when it's on that page, otherwise on the page. `mac` is the Mac the design is on, by its Tailscale name, so the link opens on your other Macs too, through Ponzu's link between them; without Tailscale it's left out and the link opens the path on the Mac you click it on. The ponzu.design page hands the design to the app as `ponzu://open?mac=…&file=…` (chats drop links in schemes they don't know) or offers the download if Ponzu isn't installed; the path stays after the `#`, which browsers never send to the site. `/local` sits beside `/gh` for designs on GitHub.
70
70
 
71
71
  To go back and forth on a design, use the `watch` prompt (or say "watch my comments in Ponzu"). The agent watches the canvas for your comments, handles each one and resolves it, replying only to answer a question or flag something. Agents also start watching on their own once they've put work up for you to review, and you can still chat with them while they do.
72
72
 
@@ -105,7 +105,7 @@ Each artboard file holds one `<section data-artboard>`. Its size is the `width`
105
105
 
106
106
  - **Edit it however you like.** Ponzu watches the folder. An edit from your editor, `sed` or another agent shows up live and becomes an event agents can react to.
107
107
  - **Ids are lazy.** Hand-written elements get stable ids derived from their position. Ponzu writes an id into a file only when something needs to point at it.
108
- - **Inert by default.** `<script>`, `on*` handlers and `javascript:` URLs are stripped on load.
108
+ - **Inert by default.** `<script>`, `on*` handlers and `javascript:` URLs are stripped on load. The one script kept is a scene (below), which is data, never code.
109
109
  - **Comments are pins.** A thread in `comments.json` sits on an artboard (`artboardId`, plus `nodeId` for a node in it) or on a page's open canvas (`pageId`), at `x`/`y`. One missing a field isn't shown, and stays in the file until it's fixed.
110
110
  - **Agents can read the format too.** `get_guide('format')` gives them every file's fields, with examples, for importing or generating a design by writing it directly.
111
111
  - **Fonts just work.** Google Fonts named in `font-family` load automatically on the canvas and in screenshots.
@@ -113,6 +113,26 @@ Each artboard file holds one `<section data-artboard>`. Its size is the `width`
113
113
 
114
114
  To implement a design, point your coding agent at the folder. The HTML, tokens and comments are the spec.
115
115
 
116
+ ### Scenes
117
+
118
+ An artboard can play itself as a product demo: a cursor that moves, clicks and types, a toast that rises, a total that rolls. The artboard's HTML holds the finished screen, and one `<script type="ponzu/act">` in it lists the beats:
119
+
120
+ ```html
121
+ <script type="ponzu/act">
122
+ click @Field
123
+ type @Email placeholder=@Placeholder
124
+ click @Invite
125
+ show @"New member" grow
126
+ & show @Toast rise
127
+ count @Seats from 4
128
+ poster
129
+ wait 2000
130
+ reset
131
+ </script>
132
+ ```
133
+
134
+ It never runs as code. Ponzu measures the board and turns each beat into Web Animations, so a scene pauses and seeks like any CSS animation: the canvas loops it, a screenshot shows its `poster` frame, and `record` films a storyboard with one frame per beat. Hover, press and focus come from the design's own `:hover`, `:active` and `:focus` rules and their transitions. `get_guide('act')` is the language; `get_guide('product')` is how to make a product shot worth looking at, adapted from [Stageshow](https://github.com/benjitaylor/skills) by Benji Taylor; [`examples/product-shots.design`](examples/product-shots.design) has three to start from.
135
+
116
136
  ### Share it from GitHub
117
137
 
118
138
  A `.design` committed to a public repo opens on the canvas at `ponzu.design/gh/<owner>/<repo>/<path/to/name.design>`, read-only, with its comments, images and fonts: [this repo's Kettle](https://ponzu.design/gh/north-brook/ponzu/examples/kettle.design), for one. Add `@<branch, tag or commit>` to the repo for another ref, or leave off the path to list every design in the repo. Link it from your README with a badge labelled by the design's name; without `?label=` it reads "open in | Ponzu":
@@ -168,6 +188,8 @@ About thirty tools in six groups. `get_guide` serves the house rules.
168
188
  | Converse | `list_comments` `get_comment` `create_comment` `reply` `set_comment_status` `send_feedback` |
169
189
  | Listen + remember | `wait_for_activity` `set_status` `write_note` `read_notes` `get_guide` |
170
190
 
191
+ Guides cover the basics, layout, type, motion, product shots, scenes and a kit of windows and phones at real geometry, among others.
192
+
171
193
  Skills for agents that support them ship in [the plugin](#the-plugin), in [`plugin/skills/`](plugin/skills).
172
194
 
173
195
  ## Telemetry