StackBlitz provides WebContainers, a browser-based runtime that runs Node.js entirely in the browser without any server-side infrastructure. This enables instant boot times, zero-install development environments, and seamless live previews for web applications. StackBlitz is widely used for documentation examples, bug reproductions, and collaborative coding, with full npm package support and a Node.js-compatible file system.
Embed live, editable code examples directly in your documentation that run in the browser without any server, allowing readers to experiment with your library in real time.
Create instant reproduction environments for bug reports by sharing a StackBlitz URL that boots the exact project configuration needed to demonstrate the issue.
Start coding a new idea in under 2 seconds with zero setup. StackBlitz supports React, Vue, Angular, Svelte, Next.js, and dozens of frameworks out of the box.
Generate live preview environments for pull requests that reviewers can interact with directly in the browser without cloning, installing, or running the project locally.
import sdk from "@stackblitz/sdk";// Embed a live editor in your documentation pageexport function embedLiveExample(elementId: string) {sdk.embedProjectId(elementId, "nextjs-starter", {forceEmbedLayout: true,openFile: "app/page.tsx",theme: "dark",height: 500,clickToLoad: false,});}// Open a GitHub repo in StackBlitz programmaticallyexport function openInStackBlitz(repo: string, branch = "main") {sdk.openGithubProject(repo, {openFile: "README.md",newWindow: true,ref: branch,});}// Create a new project from file contentsexport async function createPlayground(files: Record<string, string>) {const vm = await sdk.openProject({title: "My Playground",template: "node",files,});return vm;}
Seamless integration, great documentation. Set up in under 10 minutes.
2 days ago
Works well for our use case. Would love to see more webhook event types.
1 week ago
Excellent compliance coverage. HIPAA audit trail works perfectly.
2 weeks ago
| Key | Description | Example |
|---|---|---|
| STACKBLITZ_API_KEY | API key for StackBlitz SDK (optional, for enterprise features) | sb_xxxxxxxxxxxxxxxxxxxxxxxx |
StackBlitz provides WebContainers, a breakthrough technology that runs Node.js entirely in the browser. This enables instant-boot development environments with zero installation, making it ideal for interactive documentation, bug reproductions, and rapid prototyping. The SDK allows embedding live code editors in any web page, and projects support full npm ecosystems without server-side infrastructure.