How 0gis0/docker-sandboxes works
This repository is a Docker Sandboxes learning guide, with a reusable Bun kit, a custom-template example, and a small Bun static-file server. The documented user workflow is to install and authenticate with sbx, launch an agent, then manage sandboxes and customize them with network policies, kits, or templates. The README documents sbx behavior; sampled server code shows only HTTP routing and file serving, so no deeper connection between the server and the sandbox examples is asserted.
Main entry points: server.ts Bun HTTP server · spec.yaml Bun toolkit · files Kit files · Dockerfile Custom template
Components 12
Sandbox workflow
- sbx CLI
- AI agents
- Sandbox dashboard
- Network policies
Customization artifacts
- Bun toolkit
sandbox-kit/spec.yaml - Kit files
sandbox-kit/files - Custom template
Dockerfile
Bun example server
- Bun HTTP server
src/server.ts - Web page
src/public/index.html - Stylesheet
src/public/styles.css
Other components
- Developer
- Browser client
Connections 11
- Developer → sbx CLI: runs commands
README.md - sbx CLI → AI agents: launches
README.md - Developer → Sandbox dashboard: opens
README.md - Developer → Network policies: manages
README.md - sbx CLI → Bun toolkit: applies kit
README.md - Bun toolkit → Kit files: copies files
README.md - sbx CLI → Custom template: runs template
README.md - Developer → Browser client: requests page
- Browser client → Bun HTTP server: sends HTTP request
- Bun HTTP server → Web page: serves file
src/server.ts - Bun HTTP server → Stylesheet: serves file
src/server.ts