stackblitz-hello-world
/stackblitz-hello-world
Build a minimal, controlled WebContainer smoke test that boots once, mounts a small project, observes process exit, and captures the preview URL. Use when proving browser/runtime compatibility before building a larger in-browser development experience. Trigger with "StackBlitz hello world", "test WebContainers", or "run Node in the browser".
- Author
- jeremylongshore ↗
- Repository
- tons-of-skills-marketplace ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Build a minimal, controlled WebContainer smoke test that boots once, mounts a small project, observes process exit, and captures the preview URL. Use when proving browser/runtime compatibility before building a larger in-browser development experience. Trigger with "StackBlitz hello world", "test WebContainers", or "run Node in the browser".
Triggers from the description
Arguments
/stackblitz-hello-world [project-path] [entrypoint]
Original author description
Build a minimal, controlled WebContainer smoke test that boots once, mounts a small project, observes process exit, and captures the preview URL. Use when proving browser/runtime compatibility before building a larger in-browser development experience. Trigger with "StackBlitz hello world", "test WebContainers", or "run Node in the browser".
How it works
- Overview
- Prerequisites
- Tool Discipline
- Current Contract
- Authentication
- Workflow
- Approval Boundaries
- Output
- Error Handling
- Examples
SKILL.md preview
--- name: stackblitz-hello-world description: >- Build a minimal, controlled WebContainer smoke test that boots once, mounts a small project, observes process exit, and captures the preview URL. Use when proving browser/runtime compatibility before building a larger in-browser development experience. Trigger with "StackBlitz hello world", "test WebContainers", or "run Node in the browser". argument-hint: "[project-path] [entrypoint]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.7.0 author: Jeremy Longshore <jeremy@intentsolutions.io> license: MIT tags: - saas - stackblitz - webcontainers - quickstart model: inherit effort: medium compatibility: Designed for Claude Code --- # WebContainer Controlled Smoke Test ## Overview This skill adds or plans the smallest useful WebContainer proof: one instance, one deterministic file tree, one bounded dependency install, one server process, and one preview readiness observation. It avoids presenting a tutorial snippet as a production architecture. ## Prerequisites - A browser application already passing the StackBlitz integration preflight - Cross-origin isolation and HTTPS behavior verified for the target environment - A small synthetic project that contains no proprietary source or secrets ## Tool Discipline Use `Read`, `Glob`, and `Grep` to establish the application entrypoint, package versions, and existing lifecycle ownership. Use `WebFetch` only for current official StackBlitz or WebContainers documentation. Use `Write` or `Edit` for a user-requested smoke-test implementation after inspection. ## Current Contract - `WebContainer.boot()` is expensive and permits only one concurrent instance; centralize ownership. - `mount()` accepts a `FileSystemTree` or supported binary snapshot and copies it into the virtual filesystem. - Check a spawned install process through its `exit` promise before starting the server. - Register `server-ready`, `error`, and cleanup handlers before relying on a preview URL; retain the unsubscribe functions. - Use the URL emitted by `server-ready` rather than constructing a preview host. ## Authentication The smoke test must not contain API keys, registry tokens, cookies, or `.env` data. If commercial API-key configuration or organization auth is required, consume the existing runtime binding and initialization module without displaying its value or duplicating the flow. ## Workflow 1. Confirm the current package and browser support assumptions from repository evidence. 2. Reuse or create a singleton owner for the WebContainer instance. 3. Define a tiny synthetic project with a locked dependency set and explicit start script. 4. Mount the tree, spawn the repository-approved install command, stream bounded status output, and fail on a nonzero exit. 5. Subscribe to readiness and error events, start the server, and attach the emitted URL to the intended preview element. 6. Record cleanup behavior for listeners, processes, and `teardown()` when the owning view is permanently disposed. ## Approval Boundaries Do not add arbitrary user source, private packages, production secrets, telemetry, or broad network access to the smoke test without explicit authorization and a security review. Do not alter production isolation headers merely to make a local example pass. ## Output Return the exact test surface, package and header evidence, lifecycle owner, expected state sequence, bounded logs, preview readiness result, cleanup path, and any environment-specific limitation. ## Error Handling | Condition | Response | |---|---| | A second boot path exists | Stop and consolidate lifecycle ownership before testing. | | Install exits nonzero | Preserve the exit code and bounded output; do not blindly retry. | | Preview never becomes ready | Check process exit and `port`/`error` events before changing ports. | | Test needs real customer code | Replace it with a synthetic fixture and report the missing contract separately. | ## Examples For a Vite host, mount a two-file synthetic Node project, wait for a successful install exit, start its server, and verify the `server-ready` URL in one supported browser without committing any generated dependency tree. ## Resources - [Official StackBlitz and WebContainers references](references/official-docs.md) - [WebContainers quickstart](https://webcontainers.io/guides/quickstart) - [WebContainer API reference](https://webcontainers.io/api)
Files in this package (2)
- SKILL.md 4 KB
- references/official-docs.md 1 KB
Versions
The database has no other skills named stackblitz-hello-world.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 74c035da1d8f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100stackblitz-core-workflow-a
Architect a custom in-browser development experience around WebContainers with explicit file, editor, terminal, process, preview, and persistence boundaries. Use when evolving a playground into a maintainable IDE-like product. Trigger with "build a WebContainer IDE", "browser… - 100stackblitz-common-errors
Diagnose WebContainer startup, isolation, Service Worker, dependency, process, preview, and browser failures from evidence before changing code or headers. Use when a StackBlitz runtime or embed fails, hangs, or behaves differently across browsers. Trigger with "StackBlitz… - 100cursor-hello-world
Create your first project with Cursor AI features. Triggers on "cursor hello world", "first cursor project", "cursor getting started", "try cursor ai", "cursor basics". Use when working with cursor hello world functionality. Trigger with phrases like "cursor hello world", "cursor world", "cursor". - 100customerio-hello-world
Create a minimal working Customer.io example. Use when learning Customer.io basics, testing SDK setup, or creating your first messaging integration. Trigger with phrases like "customer.io hello world", "first customer.io message", "test customer.io", "customer.io example". - 100uloop-hello-world
Sample uloop hello-world tool. Use to verify custom tool wiring or inspect a minimal tool implementation example. - 100hello-world
A minimal example skill that greets users and explains how skills work. Use when user says "hello world skill", "test my skills setup", or "show me how skills work".