This is a library of interactive code playground components for Svelte 5 websites. It provides two main tools: a Web Sandbox for HTML/CSS/JavaScript demos and a Svelte Sandbox for multi-file Svelte component examples. Both show a split view with an editable code panel on one side and a live preview on the other. The components automatically handle external libraries and update the preview instantly as users type. Developers can customize the colors and fonts to match their site's design. The library is well-documented, published on npm, and includes a standalone code editor component for those who want more control.
How It Works
You're building a learning platform or documentation site where visitors should experiment with code directly on the page.
With one simple command, the playground components become part of your website project.
You place the sandbox component on your page and it immediately shows your code with a live preview side-by-side.
For HTML, CSS, and JavaScript demos where visitors can build web pages interactively.
For Svelte component examples with multiple files that work together.
You adjust colors, fonts, and sizes so the playground matches your website's design perfectly.
People edit the code and watch their changes appear instantly in the preview window, like magic.
Visitors can experiment with real code directly on your website, creating an engaging learning experience.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.