/stackblitz-pack:stackblitz-hello-worldfrom stackblitz-pack
Boots a WebContainer in the browser, mounts a file tree, installs npm dependencies, and starts a dev server. Use for learning WebContainers, building browser IDEs, or running Node.js without a backend.
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.
Boot a WebContainer, mount a file system tree, install dependencies with npm, and start a dev server -- all running inside the browser tab. No backend server needed.
@webcontainer/api installed (see stackblitz-install-auth)import { WebContainer, FileSystemTree } from '@webcontainer/api';
const files: FileSystemTree = {
'package.json': {
file: {
contents: JSON.stringify({
name: 'wc-hello',
scripts: { start: 'node index.js', dev: 'nodemon index.js' },
dependencies: { express: '^4.18.0' },
}),
},
},
'index.js': {
file: {
contents: `
const express = require('express');
const app = express();
app.get('/', (req, res) => res.send('Hello from WebContainer!'));
app.listen(3000, () => console.log('Server running on port 3000'));
`.trim(),
},
},
src: {
directory: {
'utils.js': { file: { contents: 'module.exports = { greet: (n) => "Hello " + n };' } },
},
},
};
const wc = await WebContainer.boot();
await wc.mount(files);
console.log('Files mounted. Installing dependencies...');
const installProcess = await wc.spawn('npm', ['install']);
// Stream install output
installProcess.output.pipeTo(new WritableStream({
write(data) { console.log(data); },
}));
const installCode = await installProcess.exit;
if (installCode !== 0) throw new Error(`npm install failed: exit ${installCode}`);
console.log('Dependencies installed.');
const serverProcess = await wc.spawn('npm', ['start']);
serverProcess.output.pipeTo(new WritableStream({
write(data) { console.log(data); },
}));
// Listen for server-ready event
wc.on('server-ready', (port, url) => {
console.log(`Server ready at ${url} (port ${port})`);
// Display in iframe
document.querySelector('iframe')!.src = url;
});
added 57 packages in 3s
Dependencies installed.
Server running on port 3000
Server ready at https://xxx.webcontainer.io (port 3000)
| Error | Cause | Solution |
|---|---|---|
npm install hangs | Large dependency tree | Use --prefer-offline or fewer deps |
server-ready never fires | App not listening on a port | Ensure app.listen() is called |
| Port conflict | Another process on same port | Use a different port |
ENOENT for file | File not in mount tree | Verify FileSystemTree structure |
Proceed to stackblitz-local-dev-loop for development workflow setup.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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