run-app
/run-app
Launch the tonk web app in this container without nix (local access service + trunk serve) and drive it in headless Chromium with Playwright. Use to run, screenshot, or verify any UI change in the real app, not just its tests.
- Author
- tonk-labs ↗
- Repository
- tonk ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: dev-web.sh, drive.mjs
What it does and when to use it
Launch the tonk web app in this container without nix (local access service + trunk serve) and drive it in headless Chromium with Playwright. Use to run, screenshot, or verify any UI change in the real app, not just its tests.
Original author description
Launch the tonk web app in this container without nix (local access service + trunk serve) and drive it in headless Chromium with Playwright. Use to run, screenshot, or verify any UI change in the real app, not just its tests.
How it works
- Drive it
- Gotchas
SKILL.md preview
---
name: run-app
description: Launch the tonk web app in this container without nix (local access service + trunk serve) and drive it in headless Chromium with Playwright. Use to run, screenshot, or verify any UI change in the real app, not just its tests.
---
# Run the tonk web app (no nix)
`nix develop -c dev:web` is the normal path; this container has no nix. The
same thing by hand:
```bash
.claude/skills/run-app/dev-web.sh # ~8 min cold, seconds warm
```
It installs `trunk` 0.21.14 and the `wasm-bindgen` CLI matching the
workspace pin into `~/.local/bin`, starts `tonk-access-local`, writes the
gitignored `rust/tonk-ui/.Trunk.dev.toml` / `.index.dev.html` with the
proxies `dev:web` adds (`/@`, `/.well-known/tonk`, `/.well-known/did.json`,
`/customer/`, `/ucan/`), and runs `trunk serve` on `:8080`. Logs are in
`/tmp/tonk-run/`. Trunk watches the workspace, so edits rebuild; a library
change (`rust/tonk-core/assets/library/*.yaml`) is served at once.
Stop: `lsof -ti:8080 -sTCP:LISTEN | xargs -r kill` and kill
`tonk-access-local` by its PID (`pgrep -f tonk-access-local`) — avoid broad
`pkill -f` patterns.
## Drive it
Playwright is installed globally; link it next to your script, and Chromium
is preinstalled (`PLAYWRIGHT_BROWSERS_PATH`, never `playwright install`):
```bash
cd /tmp/some-dir && ln -sf "$(npm root -g)" node_modules
cp /home/user/tonk/.claude/skills/run-app/drive.mjs .
OUT=shot.png node drive.mjs # load, settle, screenshot
```
A fresh browser context is a fresh profile: it seeds the current libraries
and lands in the onboarding "Welcome" space (`/space/did:key:…`).
## Gotchas
- **Frames.** The page is nested sealed iframes (`about:srcdoc`): the
profile chrome guest (FABB, `<command-palette>`) and inside it the space
guest. Find elements with `frameWith(page, () => !!document.querySelector(…))`
and re-find after anything that may remount a guest.
- **Keys.** `page.keyboard` goes to the focused frame. To hit a document
listener in a guest, dispatch there:
`frame.evaluate(() => document.dispatchEvent(new KeyboardEvent('keydown', {key:'k', ctrlKey:true})))`.
- **Author elements** (`element!:`) must not be named `tonk-*` or `wa-*`: the
element runtime never announces those tags, so they stay inert.
- **Settle time.** First load runs onboarding; wait ~30s before driving.
Files in this package (3)
- SKILL.md 2 KB
- dev-web.sh 2 KB
- drive.mjs 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · tonk-labs/tonk | 100 | MIT |
| ChrisTowles/towles-tool | 100 | MIT |
| ruyd/private-meeting-assistant | 100 | MIT |
| Esposter/Esposter | 90 | Apache-2.0 |
| yuri-xyz/skills | 86 | MIT |
Database snapshot: 13.11.2026 · package version eadb44ae33e2 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100run-blog
Launch the local blog and drive it in headless Chromium, signed in as a throwaway Admin. Use when checking a change in the real app (the admin post editor, publishing, a public post page) or taking screenshots of it. - 100playwright-e2e
End-to-end test and click-verify a web app with Playwright — write specs, drive authenticated pages, screenshot, and run in CI. Use when a web change has to be proven in a real browser rather than by unit tests. - 100playwright-verify
Verify a web app's behavior in headless Chromium with Playwright, and give a web project that check as `make e2e`. Use after changing a web UI, when asked to confirm a page works in a real browser, or when a web project has no browser check yet. Use it instead of an interactive… - 100tonk
Use when the user pastes a Tonk share link, asks to work in a Tonk space, or asks what Tonk spaces this machine can reach. Covers joining a space from a link, finding its subject, and reading and writing it through the local Tonk peer. - 98playwright-harness
Drive a real browser with Playwright on any OS and gate on what you observe: write a script, launch Chromium (headless by default; a shared headed window when a human must watch or drive), drive the page, and assert on screenshots plus collected page errors. The operational… - 100run
Launch and drive this project's app to see a change working. Use when asked to run, start, or screenshot the app, or to confirm a change works in the real app (not just tests). First looks for a project skill that already covers launching the app; otherwise falls back to…