Documentation
¶
Overview ¶
Desktop example: build the local e2b.Dockerfile as a template, launch a sandbox, print the noVNC URL, then prove that SDK PTY sessions are mirrored into the shared tmux that the VNC desktop shows.
Requirements verified here:
- Browser GUI over VNC: prints an HTTPS noVNC URL the caller can open.
- Bash-PTY visibility: writes a marker to a bash PTY started via Pty.Create, then snapshots `tmux -L main` with Commands.Run and asserts the marker appears there.
- Dev toolkit smoke test: python3 + node imports run cleanly.
Note: `Commands.Run` does NOT go through a PTY and therefore is NOT mirrored to the VNC desktop. Use `Pty.Create` for a visible session, or explicitly send keystrokes with `tmux -L main send-keys -t main "<cmd>" Enter`.
Usage:
source ./.env && go run ./examples/desktop
Set E2B_TEMPLATE_ID to reuse an existing template (skips build + teardown).
Click to show internal directories.
Click to hide internal directories.