/stackblitz-pack:stackblitz-install-authfrom stackblitz-pack
Installs and configures the WebContainer API for browser-based Node.js and the StackBlitz SDK for embedding interactive code editors.
Ships in stackblitz-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Set up the WebContainer API for running Node.js in the browser, or the StackBlitz SDK for embedding interactive code editors. WebContainers require no auth -- they run entirely client-side. The StackBlitz SDK is for embedding projects from stackblitz.com.
npm install @webcontainer/api
npm install @stackblitz/sdk
WebContainers require cross-origin isolation. Add these headers to your server:
// Express middleware
app.use((req, res, next) => {
res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp');
res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');
next();
});
// Vite config
export default defineConfig({
server: {
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
},
},
});
import { WebContainer } from '@webcontainer/api';
const wc = await WebContainer.boot();
console.log('WebContainer booted successfully');
// Verify filesystem works
await wc.mount({ 'test.txt': { file: { contents: 'Hello WebContainers!' } } });
const content = await wc.fs.readFile('/test.txt', 'utf-8');
console.log(`File content: ${content}`);
WebContainer booted successfully
File content: Hello WebContainers!
| Error | Cause | Solution |
|---|---|---|
SharedArrayBuffer is not defined | Missing COOP/COEP headers | Add cross-origin isolation headers |
Failed to boot | Multiple instances | Only one WebContainer per page |
Not in secure context | HTTP instead of HTTPS | Use HTTPS or localhost |
Proceed to stackblitz-hello-world for your first WebContainer project.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flight505/skill-forge --plugin stackblitz-pack18 skills in this plugin
/stackblitz-ci-integrationCI testing for WebContainer apps with Playwright browser tests.
Use when working with WebContainers or StackBlitz SDK.
Trigger: "stackblitz CI".
/stackblitz-common-errorsFix WebContainer and StackBlitz errors: COOP/COEP, SharedArrayBuffer, boot failures.
Use when WebContainers fail to boot, embeds don't load,
or processes crash inside WebContainers.
Trigger: "stackblitz error", "webcontainer error", "SharedArrayBuffer not defined".
/stackblitz-core-workflow-aBuild a browser-based code editor with WebContainers: file tree, editor, terminal, and preview.
Use when creating interactive coding environments, building educational tools,
or embedding development environments in web apps.
Trigger: "webcontainer IDE", "browser IDE", "stackblitz editor", "code playground".
Other plugins' skills for the same job