Repository navigation
Getting Started
In Claude Code (not run by the verification program):
/plugin marketplace add m4bwav/threewright
/plugin install threewright@threewright
Other agents (Copilot CLI, Cursor, Codex): copy skills/* into the agent's skill folder and keep the plugin folder where the skills can find scripts/, kb/ and templates/, two levels up from each SKILL.md. The root plugin.json (added in 0.6.5) is the manifest GitHub Copilot CLI reads; Claude Code reads .claude-plugin/plugin.json.
Installing the plugin installs no npm packages. The development package.json lives in dev/ and is only needed for the tests and for serving pinned CDN files offline.
| Need | For | Notes |
|---|---|---|
| Node 22 or newer | every command | no npm dependencies |
| Chrome or Chromium |
check, scene, shot, sheet, perf, shaders, video, doctor
|
Playwright and Puppeteer browsers are found too; TW_CHROME points at one |
| ffmpeg | video |
on the PATH, or TW_FFMPEG
|
| npm |
tw vendor, --cdn offline, tw new for templates that vendor, tw versions
|
runs npm pack for exact pinned versions |
lint, glb, kb, templates, diff and deprecations need no browser.
tw doctorOn the Windows 11 test machine (RTX 5060 Ti) it printed:
node v24.18.0 ok
chrome C:\Program Files\Google\Chrome\Application\chrome.exe (Chrome/157.0.0.0)
ffmpeg ok
headless default: WebGL ANGLE (NVIDIA, NVIDIA GeForce RTX 5060 Ti (0x00002D04) Direct3D11 vs_5_0 ps_5_0, D3D11) · WebGPU adapter ok (nvidia blackwell)
headless --gl swiftshader: WebGL ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver) · WebGPU no adapter
cdn.jsdelivr.net from the browser: reachable (200)
The two headless lines matter most: the first is what tw check uses by default, the second is the software fallback (--gl swiftshader), which has no WebGPU adapter. On a Linux container with Chromium 141 on SwiftShader, three r186's WebGPU backend fails and pages run on the WebGL 2 fallback (README, "Tested where").
Copy a starter, then check it:
tw new html-importmap site
tw check site/tw new prints where it copied the files and what to run next:
copied html-importmap to <work>\site
next: serve the folder with any static server (module imports do not load from file://)
<work> is the folder you ran it in. tw check serves the folder itself, so no other server is needed for it. Its output is explained on Commands.
Then lint the code and look at one picture:
tw lint site/
tw shot site/ --out shot.pngshot prints the image's size and what it costs an agent to look at it:
wrote shot.png (960x540, 700 image tokens)
Image costs use Claude's formula, ceil(w/28) x ceil(h/28); TW_IMAGE_TIER=standard switches to the older one for models before Claude 4.7 (tw --help).
tw keeps downloaded packages in its cache, %LOCALAPPDATA%\threewright\cache on Windows and ~/.cache/threewright elsewhere (TW_CACHE moves it), until you delete it. Each browser run uses a throwaway Chrome profile in the temp folder.
Next: Commands, or The skills to see what the agent does with them.
Using it
- Getting started
- The skills
- Commands
- The knowledge base
- Templates
- Errors and edge cases
- Recipes
- Works with
- FAQ
The releases
Contributing
Elsewhere