<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/we-replaced-stackblitz-and-codesandbox-with-a-self-hosted-demo-runner-here-s-everything-that-broke--dwltsbc1w" -->

---
title: We replaced StackBlitz and CodeSandbox with a...
description: A documentation platform replaced StackBlitz and CodeSandbox embeds with a self-hosted demo runner built on Cloudflare Workers, using two execution tiers: most...
canonical: https://daily.dev/posts/we-replaced-stackblitz-and-codesandbox-with-a-self-hosted-demo-runner-here-s-everything-that-broke--dwltsbc1w
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: We replaced StackBlitz and CodeSandbox with a self-hosted demo runner. Here's everything that broke along the way. | daily.dev
og:description: A documentation platform replaced StackBlitz and CodeSandbox embeds with a self-hosted demo runner built on Cloudflare Workers, using two execution tiers: most...
og:url: https://daily.dev/posts/we-replaced-stackblitz-and-codesandbox-with-a-self-hosted-demo-runner-here-s-everything-that-broke--dwltsbc1w
og:image: https://api.daily.dev/og/posts/dwLtsBc1W.png
og:image:alt: We replaced StackBlitz and CodeSandbox with a self-hosted demo runner. Here's everything that broke along the way.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# We replaced StackBlitz and CodeSandbox with a self-hosted demo runner. Here's everything that broke along the way.

**[Joseph Petty](https://daily.dev/sources/zpb9mu4ubnjor54jkhxoc)** · [@greenflux](https://daily.dev/greenflux) · 1 min read · 1 upvotes · 0 comments

## Summary

A documentation platform replaced StackBlitz and CodeSandbox embeds with a self-hosted demo runner built on Cloudflare Workers, using two execution tiers: most examples bundle in the browser for free, while SSR frameworks like Next.js and Angular get a dedicated dev-server container. The migration generated 1,452 docs examples via a pipeline instead of manual maintenance, made every example runnable against any of five major versions or a live PR build, and serves share links as prebuilt static files. The team reports that most breakage the migration surfaced had been hidden for years behind sandbox defaults, and the writeup covers real 30-day cost figures and a spend-ceiling design to prevent runaway costs on a public compute endpoint.

## Content

Hundreds of live docs examples ran on StackBlitz and CodeSandbox embeds: the bill scaled with traffic, outages arrived as user reports, and nothing reliably pinned an example to the library version the page was documenting. This is the story of replacing them with a self-hosted runner on Cloudflare Workers: two execution tiers behind one adapter, where most examples bundle in the browser for free and only SSR frameworks like Next.js and Angular get a real dev-server container.

The result: 1,452 docs examples generated by a pipeline instead of maintained by hand, every one runnable on any of five majors or a build straight off an open PR, and share links served as prebuilt static files. The surprising part is what the migration surfaced- most of the breakage it found was already there, hidden for years behind sandbox defaults nobody could monitor. 

Read the full story, including real 30-day cost numbers and the spend-ceiling design that keeps a public compute endpoint from running away.

[https://handsontable.com/blog/how-we-replaced-stackblitz-and-codesandbox-with-our-own-demo-runner?utm_source=linkedin&utm_medium=social&utm_campaign=demo-runner-launch&utm_content=jp-post](https://handsontable.com/blog/how-we-replaced-stackblitz-and-codesandbox-with-our-own-demo-runner?utm_source=linkedin&utm_medium=social&utm_campaign=demo-runner-launch&utm_content=jp-post)

## Similar posts on daily.dev

- [Dogfooding at scale: migrating cdnjs to Cloudflare’s Developer Platform](https://daily.dev/posts/dogfooding-at-scale-migrating-cdnjs-to-cloudflare-s-developer-platform-rysprc2qr) · Cloudflare · 8 upvotes · 0 comments
- [Upgrading a Next.js App Before Anything Breaks](https://daily.dev/posts/upgrading-a-next-js-app-before-anything-breaks-ac5rj93kf) · RUBYLAND · 0 upvotes · 0 comments
- [Cloudflare Details Its Migration from WordPress to EmDash](https://daily.dev/posts/cloudflare-details-its-migration-from-wordpress-to-emdash-053ygal7y) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#serverless](https://daily.dev/tags/serverless), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/we-replaced-stackblitz-and-codesandbox-with-a-self-hosted-demo-runner-here-s-everything-that-broke--dwltsbc1w)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/we-replaced-stackblitz-and-codesandbox-with-a-self-hosted-demo-runner-here-s-everything-that-broke--dwltsbc1w","headline":"We replaced StackBlitz and CodeSandbox with a self-hosted demo runner. Here's everything that broke along the way.","text":"A documentation platform replaced StackBlitz and CodeSandbox embeds with a self-hosted demo runner built on Cloudflare Workers, using two execution tiers: most examples bundle in the browser for free, while SSR frameworks like Next.js and Angular get a dedicated dev-server container. The migration generated 1,452 docs examples via a pipeline instead of manual maintenance, made every example runnable against any of five major versions or a live PR build, and serves share links as prebuilt static files. The team reports that most breakage the migration surfaced had been hidden for years behind sandbox defaults, and the writeup covers real 30-day cost figures and a spend-ceiling design to prevent runaway costs on a public compute endpoint.","url":"https://daily.dev/posts/we-replaced-stackblitz-and-codesandbox-with-a-self-hosted-demo-runner-here-s-everything-that-broke--dwltsbc1w","datePublished":"2026-09-15T13:25:12.017Z","dateModified":"2026-09-15T13:25:32.433Z","author":{"@type":"Person","name":"Joseph Petty","url":"https://daily.dev/greenflux","image":"https://media.daily.dev/image/upload/s--veWd0iRh--/f_auto/v1725792042/avatars/avatar_ZPb9mU4UbNJoR54JkhxoC","description":"Head of DX @ Handsontable\nFounder/ Freelancer @ GreenFlux, LLC greenflux.github.io","worksFor":{"@type":"Organization","name":"Appsmith","logo":"https://res.cloudinary.com/daily-now/image/upload/s--UoClaMwT--/f_auto/v1725651404/companies/appsmith"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":2120}},"image":"https://media.daily.dev/image/upload/s--EaaNPm5z--/f_auto/v1789478712/posts/dwLtsBc1W?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/zpb9mu4ubnjor54jkhxoc","name":"Joseph Petty"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Joseph Petty","item":"https://daily.dev/sources/zpb9mu4ubnjor54jkhxoc"},{"@type":"ListItem","position":3,"name":"We replaced StackBlitz and CodeSandbox with a self-hosted demo runner. Here's everything that broke along the way."}]}
```

