A local desktop shell for building and previewing Node.js web applications in a browser sandbox, with continuous GitHub sync. Written for developers and Windows administrators who need to audit configuration paths, runtime modes, shortcuts, CLI flags, and failure modes before deploying Stackblitz Desktop across a team.
Overview | Requirements | Key Features | Configuration | Backend Comparison | Keyboard Shortcuts | Command-Line Options | Troubleshooting | FAQ | Notes
Stackblitz Desktop wraps the WebContainer runtime in a native Windows shell so full-stack Node.js projects can be edited, built, and previewed without a local toolchain install. It targets developers, team leads, and IT staff who standardize a single IDE build across machines.
It boots a local desktop process that hosts a browser-based editor, runs npm installs and Vite/Next.js dev servers inside the WebContainer sandbox, and mirrors committed work to a connected GitHub repository. Nothing is written to a global Node install; the sandbox owns the dependency graph per project.
Front-end and full-stack developers who want preview parity with the browser without maintaining WSL, nvm, or per-machine Node versions. IT administrators use the document below to pin versions, control the update channel, and redirect logs and caches to managed paths.
The installer deploys the desktop shell, the WebContainer runtime bundle, the embedded Chromium preview surface, and a helper CLI (stackblitz.exe) used for headless project opens and diagnostics.
| Spec | Minimum | Recommended |
|---|---|---|
| OS | Windows 10 21H2 (x64) | Windows 11 23H2 or later |
| CPU | 2 cores, 2.0 GHz | 4 cores, 2.8 GHz or faster |
| RAM | 4 GB | 16 GB |
| Display | 1280x720 | 1920x1080 or higher |
| Storage | 1.5 GB free | 10 GB free SSD |
| Network | 10 Mbps, GitHub reachable | 50 Mbps, GitHub + npm registry reachable |
- WebContainer sandbox , runs Node.js projects in an in-process virtual filesystem without installing Node globally.
- Live GitHub sync , commits edits to a linked repository on a configurable debounce interval.
- Embedded preview surface , serves the dev server port inside an isolated Chromium frame.
- Project import , pulls a repository by URL or zip without a prior local clone.
- Dependency cache , persists decoded
node_modulestarballs across projects under a shared cache root. - Headless open , launches a project into the shell from Explorer context menu or CLI.
- Port forwarding , exposes sandbox ports to
localhostfor external browser testing. - Managed update channel , switches between stable and preview builds via a single registry value.
| Path | Purpose |
|---|---|
%LOCALAPPDATA%\StackblitzDesktop\Cache |
WebContainer dependency and tarball cache |
%APPDATA%\StackblitzDesktop\settings.json |
User settings, keybinds, update channel |
%APPDATA%\StackblitzDesktop\projects.json |
Recent project list and GitHub links |
%LOCALAPPDATA%\StackblitzDesktop\Logs |
Rolling diagnostic logs (7 day retention) |
%PROGRAMDATA%\StackblitzDesktop\policy.json |
Machine-wide policy overrides (update channel, telemetry) |
%LOCALAPPDATA%\StackblitzDesktop\runtime |
Pinned WebContainer runtime bundle |
| Setting | Default | Notes |
|---|---|---|
update.channel |
stable |
Options: stable, preview. Overridable by policy.json. |
sync.debounceMs |
1500 |
GitHub push debounce after last edit. |
telemetry.enabled |
true |
Set false to disable anonymous usage metrics. |
log.level |
info |
Options: error, warn, info, debug, trace. |
autostart.tray |
false |
Adds tray icon and optional login autostart. |
cache.maxGb |
5 |
Evicts LRU cache entries above the cap. |
preview.port |
5173 |
Local port for dev server forwarding. |
| Backend | Startup (cold) | Steady RAM | Node version lock | When to pick |
|---|---|---|---|---|
| WebContainer sandbox | ~4 s | ~700 MB | Per-project, no host Node | Default for team parity and zero-install |
| WSL2 Ubuntu | ~11 s | ~1.2 GB | Host-managed | Need native binaries or GPU builds |
| Host Node + local npm | ~2 s | ~250 MB | Global shim | Single project, full host toolchain |
| Sandbox state | Disk use | Reset cost | When to pick |
|---|---|---|---|
| Warm cache | 0 MB added | Reuse last project | Repeated work on one repo |
| Cold cache | ~1.1 GB | Full npm install |
Fresh import or corrupted tree |
| Snapshotted runtime | ~250 MB | Instant restore | CI parity checks |
| Action | Shortcut |
|---|---|
| Open command palette | Ctrl+Shift+P |
| Toggle preview pane | Ctrl+Shift+V |
| Open project by URL | Ctrl+K O |
| Force GitHub sync now | Ctrl+Shift+S |
| Reopen closed editor tab | Ctrl+Shift+T |
| Toggle terminal panel | Ctrl+` |
| Clear WebContainer cache | Ctrl+Shift+Delete |
| Copy current file path | Ctrl+Shift+C |
| Open settings JSON | Ctrl+, |
| Flag | Argument | Purpose |
|---|---|---|
--open |
<repo-url> |
Launch shell with the given GitHub repo |
--path |
<folder> |
Open a local project directory |
--headless |
none | Start runtime without the editor UI |
--port |
<n> |
Set forwarded preview port |
--cache-dir |
<path> |
Override the WebContainer cache root |
--no-sync |
none | Disable GitHub sync for this session |
--log-level |
<level> |
Set log level for the run |
--reset-cache |
none | Purge cache before opening |
stackblitz.exe --open https://github.com/org/repo --port 5173 --log-level debug| Exit Code | Meaning |
|---|---|
0 |
Success |
2 |
Invalid argument or missing repo |
10 |
WebContainer runtime failed to boot |
20 |
GitHub authentication or sync failure |
30 |
Port forwarding conflict |
The embedded Chromium frame never receives the dev server port, usually because the forwarded port is occupied or blocked by a firewall rule.
- Run
stackblitz.exe --open <repo> --port 5180to force a different port. - Confirm no other process holds the port with
netstat -ano | findstr :5180. - Allow
stackblitz.exethrough Windows Defender Firewall on private networks. - Clear the WebContainer cache via
--reset-cacheand reopen the project.
The stored OAuth token has expired or the linked repository was renamed, so commits queue indefinitely.
- Sign out and back in from the command palette (
Ctrl+Shift+P). - Verify the repo still exists and your account retains write access.
- Inspect
%LOCALAPPDATA%\StackblitzDesktop\Logsfor the failing request. - Trigger a manual sync with
Ctrl+Shift+Safter re-authentication.
The dependency cache has a partial tarball, often after an interrupted install or a full disk during extraction.
- Run
stackblitz.exe --reset-cachebefore opening the project. - Confirm
%LOCALAPPDATA%\StackblitzDesktop\Cachehas free space abovecache.maxGb. - Delete the project's
.stackblitzfolder if one exists and reopen. - Retry with
--log-level debugto capture the missing path.
The shell is configured for silent start but the tray registration was removed by a policy or a stale shortcut.
- Set
autostart.traytotrueinsettings.json. - Restart the shell and check Task Manager for the
StackblitzDesktopprocess. - Reinstall with
--repairif the startup shortcut is absent. - Confirm
%PROGRAMDATA%\StackblitzDesktop\policy.jsondoes not disable tray mode.
No. The WebContainer sandbox executes JavaScript and WebAssembly only, so packages with native .node binaries fail to load. Use WSL2 or a host Node install for those projects.
Projects already cached under the WebContainer cache open and preview offline. GitHub sync queues changes and flushes when connectivity returns, but a cold import requires network access to GitHub and the npm registry.
Both live in %APPDATA%\StackblitzDesktop\settings.json under preview.port and sync.debounceMs. Machine-wide overrides belong in %PROGRAMDATA%\StackblitzDesktop\policy.json, which takes precedence.
Stackblitz and WebContainer are trademarks of their respective owners. Stackblitz Desktop is an independent Windows wrapper and is not affiliated with or endorsed by Stackblitz Ltd. Windows is a trademark of Microsoft Corporation.
