omp packages

pi-monet0.1.3

Monet: a live browser canvas for pi — file-driven HTML artifacts, element annotations, runtime + visual feedback, and a design-to-implement workflow

alberthou Published 6 days ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-monet 🎨

A live browser canvas for pi, delivered as an Agent Skills package (works with any agent that has bash).

The agent writes self-contained HTML files into .pi/monet/<session-id>/; a local daemon watches the directory and hot-reloads a liquid-glass browser viewer over WebSocket. You can Alt+click any element to annotate it; runtime errors and post-change screenshots are pushed back to the agent automatically, closing the self-correction loop. Design in the canvas, then ask the agent to implement it in your real project.

Install

pi install npm:pi-monet

Or add a local clone to ~/.pi/agent/settings.json:

{ "packages": ["/path/to/pi-monet"] }

Then npm install in the package directory and /reload in pi.

Commands

  • /monet [open|stop|status|shot] — direct canvas control (no agent turn)
  • /design <request> — start an AI design task in the canvas

Manual CLI

node skills/monet/scripts/cli.js start          # daemon + browser
node skills/monet/scripts/cli.js status
node skills/monet/scripts/cli.js screenshot     # headless render → PNG
node skills/monet/scripts/cli.js stop

Design

  • Files are the source of truth; the agent uses its native write/edit tools, so iterations are cheap targeted edits.
  • Each pi session gets its own canvas directory, daemon, and feedback stream — multiple sessions in the same project don't interfere.
  • Daemon binds 127.0.0.1 only, random port, per-run token on every HTTP/WS request.
  • Artifacts render in an iframe sandboxed without allow-same-origin.
  • Element picker shows the captured target with parent/child granularity control.
  • Runtime errors and screenshots are pushed to the agent via a pi bridge extension.
  • Daemon self-exits after 30 idle minutes with no browser connected.