# codesandbox/sandpack

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/codesandbox-sandpack).**

6,167 stars · 480 forks · TypeScript · Apache-2.0

## Links

- GitHub: https://github.com/codesandbox/sandpack
- Homepage: https://sandpack.codesandbox.io
- awesome-repositories: https://awesome-repositories.com/repository/codesandbox-sandpack.md

## Topics

`documentation` `hacktoberfest` `live-coding` `playground` `reactjs` `sandbox` `sandpack`

## Description

Sandpack is a browser-based toolkit for building live code editing experiences. It combines a custom Node.js runtime that executes JavaScript and npm dependencies entirely client-side with composable React components for assembling code editor interfaces, all within an iframe-sandboxed execution environment for security.

The toolkit provides a hot-reload development workflow where file and dependency updates are streamed to the running preview and trigger automatic recompilation without a full page refresh. It includes a theme-override styling system for customizing the editor and preview appearance, along with predefined theme selection and the ability to import community themes from an external package.

Sandpack supports embedding live code editors and interactive playgrounds into any web page, with bidirectional event-driven communication between the editor and bundler. It also offers shareable sandbox URL generation and one-click opening of snippets in the full CodeSandbox editor for collaboration or debugging.

## Tags

### Security & Cryptography

- [NPM-Enabled Sandboxes](https://awesome-repositories.com/f/security-cryptography/sandboxed-browser-runtimes/npm-enabled-sandboxes.md) — Provides an in-browser sandbox that executes JavaScript and Node.js code with full npm dependency resolution.
- [Bundler Loaders](https://awesome-repositories.com/f/security-cryptography/iframe-sandboxing/bundler-loaders.md) — Provides a client API to mount a bundler inside a given iframe for code execution. ([source](https://sandpack.codesandbox.io/docs/advanced-usage/client))
- [Iframe Sandboxing](https://awesome-repositories.com/f/security-cryptography/third-party-script-security/iframe-sandboxing.md) — Executes user code inside an isolated iframe to prevent interference with the host page. ([source](https://cdn.jsdelivr.net/gh/codesandbox/sandpack@main/README.md))

### Development Tools & Productivity

- [Node.js Execution Environments](https://awesome-repositories.com/f/development-tools-productivity/browser-based-execution-environments/node-js-execution-environments.md) — Executes JavaScript and npm dependencies entirely in the browser using a custom Node.js runtime without a remote server. ([source](https://sandpack.codesandbox.io/))
- [Custom Code Editor Interface Assemblers](https://awesome-repositories.com/f/development-tools-productivity/custom-code-editor-interface-assemblers.md) — Assemble a tailored code editing experience by combining individual Sandpack components and utilities. ([source](https://sandpack.codesandbox.io/docs/))
- [Sandbox Hot Reloaders](https://awesome-repositories.com/f/development-tools-productivity/hot-code-reloading/desktop-hot-reloaders/extension-hot-reloaders/sandbox-hot-reloaders.md) — Pushes file and dependency updates to the running preview and triggers automatic recompilation without full page reload.
- [Sandbox Hot Reloading](https://awesome-repositories.com/f/development-tools-productivity/hot-code-reloading/sandbox-hot-reloading.md) — Pushes new files, dependencies, and entry points to a running preview and sees changes reflected automatically without a full reload.
- [Live](https://awesome-repositories.com/f/development-tools-productivity/terminal-syntax-highlighting-engines/in-browser-code-editing/code-editors/live.md) — Ships an embeddable code editor that compiles and runs JavaScript and Node.js applications in-browser. ([source](https://cdn.jsdelivr.net/gh/codesandbox/sandpack@main/README.md))

### Programming Languages & Runtimes

- [Custom Node.js Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/webassembly/browser-based-runtimes/node-js-sandbox-runtimes/custom-node-js-runtimes.md) — Provides a custom Node.js runtime that executes JavaScript and npm dependencies entirely client-side.

### Testing & Quality Assurance

- [Embeddable Playgrounds](https://awesome-repositories.com/f/testing-quality-assurance/software-testing/component-testing/interactive-playgrounds/code-execution-playgrounds/embeddable-playgrounds.md) — Provides embeddable components that combine a live code editor with a real-time preview for any web page. ([source](https://sandpack.codesandbox.io/))

### User Interface & Experience

- [Code Editor Components](https://awesome-repositories.com/f/user-interface-experience/code-editor-components.md) — Assembles a tailored code editing interface by combining components, applying themes, and adjusting layout.
- [Composable Editor Interfaces](https://awesome-repositories.com/f/user-interface-experience/editor-ui-themes/composable-editor-interfaces.md) — Ships composable React components for assembling custom code editing interfaces with theming support.
- [Sandbox](https://awesome-repositories.com/f/user-interface-experience/graphical-user-interfaces/ai-specific-ux-design/artifact-renderers/hot-reloading-previews/sandbox.md) — Pushes new files, dependencies, and entry points to the preview and hot-reloads the changes automatically. ([source](https://sandpack.codesandbox.io/docs/advanced-usage/client))
- [Editor Appearance Customization](https://awesome-repositories.com/f/user-interface-experience/editor-customization-tools/editor-appearance-customization.md) — Adjusts the appearance and layout of the code editor and preview panel through themes, component composition, and configuration. ([source](https://sandpack.codesandbox.io/))
- [Editor Themes](https://awesome-repositories.com/f/user-interface-experience/editor-themes.md) — Applies custom themes to the code editor and preview components to match a brand or user preference. ([source](https://cdn.jsdelivr.net/gh/codesandbox/sandpack@main/README.md))
- [Theme Overriding Systems](https://awesome-repositories.com/f/user-interface-experience/theme-overriding-systems.md) — Applies visual themes to editor and preview components through a customizable style property override mechanism.
- [Theme Customization](https://awesome-repositories.com/f/user-interface-experience/visual-theme-configurations/visual-themes/theme-customization.md) — Overrides individual style properties of the default theme to create a personalized look for the code editing environment. ([source](https://sandpack.codesandbox.io/docs/getting-started/themes))

### Web Development

- [NPM-Enabled Live Editors](https://awesome-repositories.com/f/web-development/live-preview-systems/editor-live-previews/npm-enabled-live-editors.md) — Provides an embeddable component toolkit for creating live-running code editing experiences with npm support.
- [Sandbox](https://awesome-repositories.com/f/web-development/url-generators/sandbox.md) — Generates shareable URLs from current sandbox files for editor and embed links. ([source](https://sandpack.codesandbox.io/docs/advanced-usage/client))

### Business & Productivity Software

- [Component-Based Assemblies](https://awesome-repositories.com/f/business-productivity-software/document-assembly-systems/component-based-assemblies.md) — Ships composable React components for assembling custom code editing interfaces with configurable elements.

### Software Engineering & Architecture

- [Bidirectional Event Channels](https://awesome-repositories.com/f/software-engineering-architecture/event-driven-architectures/bidirectional-event-channels.md) — Manages bidirectional message passing between the editor and bundler through scoped events and callbacks.
