Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stackblitz Desktop - Full-Stack Web IDE on Windows 10/11

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.

Status Stable  Windows 10 | 11  Type Reference  License MIT  Release v1.0

Stackblitz Desktop on Windows, reference page banner

Open reference page

Overview  |  Requirements  |  Key Features  |  Configuration  |  Backend Comparison  |  Keyboard Shortcuts  |  Command-Line Options  |  Troubleshooting  |  FAQ  |  Notes

Overview

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.

What It Does

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.

Who It Is For

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.

What Ships in the Build

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.

Requirements

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

Key Features

  • 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_modules tarballs 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 localhost for external browser testing.
  • Managed update channel , switches between stable and preview builds via a single registry value.

Configuration

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 Comparison

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

Keyboard Shortcuts

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+,

Command-Line Options

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

Troubleshooting

Preview pane stays blank after project opens

The embedded Chromium frame never receives the dev server port, usually because the forwarded port is occupied or blocked by a firewall rule.

  1. Run stackblitz.exe --open <repo> --port 5180 to force a different port.
  2. Confirm no other process holds the port with netstat -ano | findstr :5180.
  3. Allow stackblitz.exe through Windows Defender Firewall on private networks.
  4. Clear the WebContainer cache via --reset-cache and reopen the project.

GitHub sync stalls with repeated 401 responses

The stored OAuth token has expired or the linked repository was renamed, so commits queue indefinitely.

  1. Sign out and back in from the command palette (Ctrl+Shift+P).
  2. Verify the repo still exists and your account retains write access.
  3. Inspect %LOCALAPPDATA%\StackblitzDesktop\Logs for the failing request.
  4. Trigger a manual sync with Ctrl+Shift+S after re-authentication.

npm install fails inside the sandbox with ENOENT

The dependency cache has a partial tarball, often after an interrupted install or a full disk during extraction.

  1. Run stackblitz.exe --reset-cache before opening the project.
  2. Confirm %LOCALAPPDATA%\StackblitzDesktop\Cache has free space above cache.maxGb.
  3. Delete the project's .stackblitz folder if one exists and reopen.
  4. Retry with --log-level debug to capture the missing path.

Tray icon missing and autostart does not fire

The shell is configured for silent start but the tray registration was removed by a policy or a stale shortcut.

  1. Set autostart.tray to true in settings.json.
  2. Restart the shell and check Task Manager for the StackblitzDesktop process.
  3. Reinstall with --repair if the startup shortcut is absent.
  4. Confirm %PROGRAMDATA%\StackblitzDesktop\policy.json does not disable tray mode.

FAQ

Can Stackblitz Desktop run a project that needs native Node addons?

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.

Does the shell keep working offline?

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.

Where do I change the preview port and sync interval together?

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.

Notes

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.

Releases

Packages

Contributors

Languages