type: service
status: active
timestamp: 2026-06-20
tags: [code-playground, embed, fullstack, primary]

StackBlitz

Full-stack browser sandboxes embedded as iframes — free unlimited public projects

StackBlitz

Role

Hosts the full-stack runnable demos embedded in oriz-blog-site posts and any tutorial pages that need a real Node runtime in the browser. Vue, React, Svelte, Astro, Next.js, Nuxt — anything that needs npm install working in-page lands here. Embedded via <iframe> with StackBlitz’s URL params (?embed=1&file=...&view=preview).

Free tier

Card / subscription required?

NO. Free-tier sign-up is GitHub OAuth. No payment method requested.

Embed pattern

<iframe
  src="https://stackblitz.com/edit/oriz-demo-vue-router?embed=1&file=src/App.vue&view=preview"
  style="width:100%;height:500px;border:0;border-radius:8px"
  allow="cross-origin-isolated"
  loading="lazy"
></iframe>

Lazy-loaded by default — won’t bloat first contentful paint on listing pages, only fires when scrolled into view.

Alternatives

Swap cost

Low — the embedded <iframe src> URL is the only site-side coupling. Sandboxes are versioned in their own StackBlitz accounts; if we ever move, the source files come down via stackblitz.com/edit/<slug> → “Download Project” and re-upload to CodeSandbox / a self-hosted WebContainer page.

Why this is our pick

WebContainers is the only browser-native Node runtime that works without server round-trips, which matters for blog posts where we don’t want to pay for a backend. Free public projects are unlimited forever, GitHub OAuth is the only sign-up step, and the iframe embed is the most stable across ad-blockers we’ve tested.

Cross-refs


Edit on GitHub · Back to index