Installation & Setup
Last updated:
Browser requirements, network configuration, and optional desktop integration for WebSandbox.
Browser Requirements
WebSandbox requires a browser that supports the following platform APIs:
- SharedArrayBuffer — required by WebAssembly threads (enabled automatically when the page is served with COOP/COEP headers)
- Service Workers — used to intercept and route preview traffic from the in-browser dev server
- IndexedDB — used to persist your workspace file system and git state across page refreshes
- WebAssembly — the WebContainer runtime is compiled to WASM
| Browser | Minimum Version | Status |
|---|---|---|
| Google Chrome | 90+ | ✓ Fully Supported |
| Microsoft Edge | 90+ | ✓ Fully Supported |
| Mozilla Firefox | 90+ | ⚠ Supported (minor quirks) |
| Safari | 16.4+ | ⚠ Limited (no SharedArrayBuffer on iOS) |
Network Requirements
WebSandbox requires an internet connection for the initial page load to download the WebContainer WASM binary. After the Service Worker is registered and the binary is cached, WebSandbox can run most operations offline.
The following domains must be reachable through your network or proxy:
websandbox.dev— main applicationcdn.websandbox.dev— static assets and WASM binary CDNregistry.npmjs.org— fornpm installinside workspacescors.isomorphic-git.org— CORS proxy for git remote operations
Service Worker Setup
WebSandbox automatically registers a Service Worker on first load. The Service Worker is responsible for:
- Serving the
Cross-Origin-Embedder-Policy: require-corpandCross-Origin-Opener-Policy: same-originheaders that unlockSharedArrayBuffer - Intercepting preview traffic (requests to the in-browser dev server port) and routing them to the WebContainer network stack
- Caching the WASM binary and core assets for offline use
If you see a "Service Worker registration failed" error, ensure your browser is not in private/incognito mode, as some browsers restrict Service Workers in that context.
PWA Installation (Optional)
WebSandbox ships as a Progressive Web App. You can install it to your operating system for a native-like experience:
- Chrome / Edge — Click the install icon in the address bar, or go to Settings → Install WebSandbox as an app
- macOS — Use Safari's File → Add to Dock option
Once installed, WebSandbox opens in a standalone window without browser chrome and behaves like a native desktop IDE.
Enterprise Deployment Notes
If you are deploying WebSandbox access within a corporate network, ensure your content security policy and proxy allow the domains listed in the Network Requirements section above. Contact enterprise@websandbox.online for enterprise licensing, SSO configuration, and dedicated infrastructure options.