Development
Requirements
- Bun for workspace installs and scripts
- Node.js 18+
- tmux and cloudflared for end-to-end tests
- Daytona API key + git credentials for the sandbox integration test (optional)
- Playwright for UI e2e tests
Install
bun installRun the app
bun run dev:beamThis builds the CLI, starts the local server on a fixed port, and launches the Vite dev UI with proxies for /api, /ws, and /s.
Multiple sessions
TERMBRIDGE_SESSIONS=2 bun run dev:beamOr use the shortcut:
bun run dev:beam:multiLocal cookie mode
When developing without HTTPS:
TERMBRIDGE_INSECURE_COOKIE=1 bun run dev:beamTests
bun run testtest:mockedruns unit/integration tests with 100% coverage.test:cliruns real CLI + UI e2e tests (tmux + cloudflared + Playwright). It also runs the Daytona sandbox test whenTERMBRIDGE_E2E_DAYTONA=1and the Daytona env vars are set intermbridge-test-app/.env.
Docs site
The docs live in apps/docs and use Onedocs + Fumadocs.
bun run --cwd apps/docs devBuild:
bun run --cwd apps/docs build