waypuppet runs a Wayland application without a desktop. It provides a command-line interface to capture images, inspect the accessibility tree, and send input. Use it to inspect an application or automate GUI tests.
With mise, install the x86-64 Linux binary through its Packslip backend:
mise use -g packslip:github.com/moosingin3space/waypuppet
waypuppet doctorThis requires a release carrying packslip.sigstore.json; releases made before
Packslip support was added need the archive installation below. Omit -g to record
waypuppet in a project's mise.toml. To link the matching agent skill into that
project, run mise skills sync --dir .agents/skills after installation.
Download the x86-64 Linux archive from the releases page. Extract it, install the binary, and check the available runtime:
tar xzf waypuppet-*-x86_64-linux.tar.gz
install -m755 waypuppet ~/.local/bin/
waypuppet doctorThe release binary needs libwayland-server and
libxkbcommon. If doctor reports that a runtime is missing, run waypuppet setup.
waypuppet run --detach -- ./my-app
waypuppet wait --windows 1
waypuppet shot
waypuppet killshot writes a PNG file and prints its path. A detached session continues until you stop
it. For a step-by-step example, see the tutorial.
Run waypuppet --help for all commands and waypuppet COMMAND --help for their options.
Commands use the default session unless you set --session NAME or the
WAYPUPPET_SESSION environment variable. Use --json for machine-readable responses
where supported.
| Command | Purpose |
|---|---|
doctor, setup |
Check the runtime or install one. |
run, sessions, ps, kill |
Start, inspect, and stop sessions. |
decorations |
Probe decoration negotiation and surface geometry. |
shot, logs |
Capture a PNG or read the application's output. |
tree, select |
Inspect the accessibility tree and find a widget. |
click, move, scroll |
Send pointer input. |
key, type |
Send key chords or type text. |
resize |
Change a window's size. |
clipboard get, clipboard set |
Read or offer clipboard text. |
wait |
Wait for windows, a title, frames, idle time, or process exit. |
fingerprint |
Record or check the rendering environment for image tests. |
For example, waypuppet tree --selectors shows selectors for accessible widgets.
Use waypuppet select 'button[name="Save"]' to check a selector, then use
waypuppet click --on 'button[name="Save"]' to click it. Selector syntax is a subset
of CSS; run waypuppet select --help for the supported forms.
run and serve accept --decorations server|client|auto:
server(the default) negotiates compositor decorations and draws no window chrome.clientrequests toolkit decorations, useful for testing decorated windows.autohonors the client's preference, defaulting to server mode when none is set.
Use waypuppet decorations or waypuppet decorations --json to probe each window.
The result includes the policy, acknowledged mode, root surface origin, and full
surface bounds (also available in ps --json). negotiated: null means no mode
has been acknowledged, including clients that do not support xdg-decoration.
Negotiation describes responsibility, not visible pixels: some clients always draw
their own header bars. Inspect a capture to see what they painted.
Window input coordinates and accessibility bounds are relative to the root content surface; decoration offsets are translated by the compositor. The probe reports that surface's origin in output coordinates, so a point can also be located in a capture. Input is routed to the actual surface under the pointer, including decoration subsurfaces. Keep the same decoration policy when comparing golden images; the rendering fingerprint does not encode session settings such as this policy or output size.
Input commands wait for a client frame after they send input. If the application does not
draw a frame before the settle timeout, the command reports an error. wait exits with
status 0 when its condition is met, 3 when it times out, and 1 if it cannot answer.
waypuppet selects a runtime when it needs one. Use waypuppet doctor to inspect that
choice. See the CI guide for software rendering and image comparisons.
The CLI communicates with a session over a Unix socket. The Rust service types are in
waypuppet-proto.
- Tutorial: start and inspect an application.
- CI guide: run tests and compare captures in CI.
- Documentation index: project and development documentation.
- Agent skill: instructions for coding agents.