Skip to content

Repository files navigation

terminaldraw

terminaldraw is built on tldraw extended with terminal emulators on the canvas.

terminaldraw video

Inspiration

terminaldraw was inspired by the CLI in kavla.dev and the idea of combining a canvas with terminal-driven workflows. This repository is a separate localhost only project to explore this further.

How it works

Each terminal shape is backed by a real PTY session on the user's machine:

  • the React app runs on http://localhost:5173
  • a local bridge runs on http://localhost:4317
  • terminal rendering is handled by xterm.js
  • shell execution is handled by node-pty
  • deleting a terminal shape kills the PTY session
  • the canvas state persists in localstorage

Running

npm install && npm run dev

Open http://localhost:5173/ in your browser.

etc

Please open PRs!

Discord

About

a tldraw canvas but with terminals

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages