# casement

A native Wayland window we paint ourselves, that an agent can drive from outside: it reads the node tree, presses a button by id, and takes a PNG of the window's own buffer.

[Source on GitHub](https://github.com/mackenziebowes/casement).

## Install

```
git clone https://github.com/mackenziebowes/intui
git clone https://github.com/mackenziebowes/casement
cd casement
cargo build --release
```

## Commands

```
casement: Open the window with --port 9341 (--layer for an overlay, --keys to let a click give it the keyboard, --log for state changes), then drive it over HTTP on localhost: /frame.png, /state, /tree, /intui, /click/<id>, /events.
casement-show: Show any IntUI tree in a running casement: casement-show < rig/trees/mixed.json; --events prints what people do with it.
casement-follow: Keep the window in step with any command that prints a tree, and give each IntUI event to a command on stdin: casement-follow --every 5 --on-event 'CMD' -- cat rig/trees/mixed.json.
```

---

Published 2026-11-03. Web page: https://www.mackenziebowes.com/tools/casement Part of [Tools](https://www.mackenziebowes.com/tools).
