@termdraw/pi embeds termDRAW inside Pi using opentui-island so you can open the editor as a full-screen Pi overlay and insert drawings back into the current editor.
pi install npm:@termdraw/piFor a project-local install:
pi install -l npm:@termdraw/piInside Pi:
/termdraw
Use Enter or Ctrl+S to insert the drawing into Pi. Use Ctrl+Q to close without inserting.
From this repo:
bun install
pi install ./packages/piOr run the extension directly for a one-off test:
pi -e ./packages/pi/extensions/index.tsThere is a tmux-based end-to-end smoke test that verifies:
- Pi starts with the extension loaded
/termdrawopens the embedded overlay- saving returns the drawing back into the Pi editor
Run it from the repo root:
bun run smoke:piRequirements:
piinstalled and onPATHtmuxinstalled
Set PI_TERMDRAW_SMOKE_KEEP_SESSION=1 if you want the tmux session left alive for debugging on exit.
- Requires Bun 1.3+ on the machine running Pi.
- The embedded island currently loads from source (
islands/termdraw.island.tsx) via Bun. - For local development,
[email protected]is used for save/cancel result bridging. opentui-islandmay still require--legacy-peer-depsin some npm setups depending on the Pi version in use.- This package targets the terminal Pi experience first. GUI support will depend on Pi's extension UI surface.
MIT. See LICENSE.