stackblitz-debug-bundle

Featured

Collect WebContainer diagnostic info: boot state, file system, process list. Use when working with WebContainers or StackBlitz SDK. Trigger: "stackblitz debug".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# StackBlitz Debug Bundle ## Overview Collect WebContainer diagnostic info: boot state, file system, process list. ## Instructions ### Step 1: Check Boot State ```typescript async function diagnoseWebContainer(wc: WebContainer) { const report: Record<string, any> = {}; // File system check try { const entries = await wc.fs.readdir('/'); report.filesystem = { status: 'ok', rootEntries: entries.length }; } catch (e: any) { report.filesystem = { status: 'error', message: e.message }; } // Node.js check try { const proc = await wc.spawn('node', ['-e', 'console.log(JSON.stringify({version: process.version, arch: process.arch}))']); let output = ''; proc.output.pipeTo(new WritableStream({ write(data) { output += data; } })); await proc.exit; report.node = JSON.parse(output); } catch (e: any) { report.node = { status: 'error', message: e.message }; } // Memory check try { const proc = await wc.spawn('node', ['-e', 'console.log(JSON.stringify(process.memoryUsage()))']); let output = ''; proc.output.pipeTo(new WritableStream({ write(data) { output += data; } })); await proc.exit; report.memory = JSON.parse(output); } catch { report.memory = 'unavailable'; } return report; } ``` ### Step 2: Check Browser Support ```typescript function checkBrowserSupport() { return { sharedArrayBuffer: typeof SharedArrayBuffer !== 'undefined', crossOriginIsolated: window.crossOriginIsolated, servi...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category