/stackblitz-pack:stackblitz-rate-limitsfrom stackblitz-pack
Documents WebContainer resource limits (memory, CPU, file system, processes) and provides code snippets to monitor memory pressure and optimize file system size for the StackBlitz SDK.
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.
WebContainer resource limits: memory, CPU, file system size, process count.
| Resource | Limit | Notes |
|---|---|---|
| Memory | ~2GB | Shared with browser tab |
| File system | Ephemeral, in-memory | Lost on page refresh |
| Processes | Multiple concurrent | Each consumes memory |
| Network | HTTP only | No raw TCP/UDP sockets |
| npm packages | Most work | Native addons not supported |
// Monitor memory usage inside WebContainer
const proc = await wc.spawn('node', ['-e', `
setInterval(() => {
const mem = process.memoryUsage();
const mbUsed = Math.round(mem.heapUsed / 1024 / 1024);
if (mbUsed > 500) console.warn('High memory: ' + mbUsed + 'MB');
}, 5000);
`]);
// Mount only essential files -- skip test files, docs, etc.
const productionFiles: FileSystemTree = {
'package.json': { file: { contents: minimalPackageJson } },
src: { directory: { /* only source files */ } },
// Skip: tests/, docs/, .git/, large assets
};
await wc.mount(productionFiles);
| Issue | Cause | Solution |
|---|---|---|
| Tab crashes | OOM | Reduce mounted files, fewer deps |
| Slow npm install | Large deps | Use --prefer-offline, fewer packages |
| Process killed | Memory limit | Monitor with memoryUsage() |
For security, see stackblitz-security-basics.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
webcontainers, stackblitz, resource-limits, memory-management, sdk
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