New

CodeSandbox is now part of Together AI! We have joined forces to launch CodeSandbox SDK and bring code interpretation to generative AI.

Learn more

Changelog

commit
CodeSandbox SDK sessions API, list running sandboxes & many improvements

CodeSandbox SDK sessions API, list running sandboxes & many improvements

Time for another big update to CodeSandbox SDK, including a new API and some top feature requests.

Hey hey 👋

We're back with another CodeSandbox update!

Now that we're back on a regular changelog schedule, let's look at the top features & improvements we shipped in the last 2 weeks.


What's new?

+-1

CodeSandbox SDK: sessions API 👯

We introduced a new API to CodeSandbox SDK, which allows you to create multiple users in a single sandbox, allowing for collaborative editing and sharing sandboxes publicly. This has been a top feature request and it unlocks some cool use cases like allowing multiple users to connect to the same sandbox/branch and collaboratively edit files. It also enables creating anonymous previews. More details in our Docs.

Sessions API
+-3

Coming soon - CodeSandbox SDK support for Sandpack 👀

We have the first working prototype of Sandpack running CodeSandbox SDK! This will allow you to run server-side sandboxes directly in Sandpack, which in turn will allow for easier integration of CodeSandbox SDK for use cases that require an in-browser playground/editor. More updates soon!

+-3

Instant node_modules âš¡

With this experimental feature, we mount a FUSE filesystem for node_modules. This FS lazily serves contents from a global pnpm store (shared by all VMs) based on pnpm-lock.yaml. This reduces npm installation time (from scratch, basic Next.js project) from 8s to 25ms and the node_modules folder is deduplicated across all VMs, saving a lot of disk space. This will make creating new VMs from scratch much faster, in case you don't have a snapshot yet available. The functionality is currently behind a feature flag; in the next update, we'll open it up to play with.

+-3

CodeSandbox SDK: list running sandboxes 📃

You can now list running sandboxes programmatically or via the CLI, making it easier to monitor and manage active environments. Filter by status or tag, retrieve sandbox details in bulk, and even automate mass hibernation or shutdown. These updates improve sandbox management at scale, with more runtime insights coming soon.

List sandboxes in CodeSandbox SDK

CodeSandbox SDK Improvements & Bug Fixes

+-3

Added sandbox.keepActiveWhileConnected(enabled: boolean) to keep a sandbox from hibernating while the SDK is connected (for more granular hibernation control).

+-3

Added support for env and cwd in the sandbox.shells.run API.

+-3

ESM builds should now (finally) work properly in serverless environments!

+-3

.csbignore, .gitignore, and .dockerignore files will not be part of Snapshot Builder's output anymore.

+-3

Removed the unexpected behavior that kept a sandbox alive for 2x hibernation timeout if a client was connected.

+-3

More improvements to memory snapshot loading, which now allows CodeSandbox SDK to resume & clone VMs ~100-200ms faster.

+-3

Fixed a bug in CodeSandbox SDK where child processes of a process would not always get terminated when terminating a shell.

+-3

Increased the limit for sandbox tags to 64 characters to support users wanting to use UUIDs as tags.

+-3

WebSocket requests will not wake a VM anymore from hibernation; HTTP requests will still wake a VM.

+-3

Several improvements to the CodeSandbox SDK implementation in Together Code Interpreter.

General Improvements & Bug Fixes

+-3

Fixed an issue that caused the terminal to run start tasks in an infinite loop in Python Devboxes.

+-3

Fixed an issue in our style loader that resulted in an error when using CSS @import statements from node_modules dependencies.

+-3

Improved the 502 error message when a Devbox preview breaks, namely when the VM runs out of memory.

+-3

Fixed an issue with the IDs of archived sandboxes.

+-3

Fixed an issue with the subscription management buttons not displaying correctly in the workspace settings for some annual Pro workspaces.

+-3

Fixed an issue with mangled CDN URLs when a string was used in the alias.

+3

Several other general improvements and bug fixes, mostly focused on improving UX and stability.



And that's all we have for you today.

We're thrilled to see so many people building exciting projects on top of CodeSandbox SDK!

We have lots of exciting features ahead, so stay tuned.

See you soon 👋

commit
Joining Together AI, launching CodeSandbox SDK & tons of improvements
commit
New Status Page, Sandpack Accessibility Improvements and Tons of Fixes
commit
New Template Picker, Sandpack Static File Support and Several Improvements
commit
New Editor Powered by Web VS Code, Test Runner, and Several Improvements
commit
Web VS Code Beta and Several Improvements
commit
Storybook Add-on, SOC 2, Unlimited Public Sandboxes and more
commit
VS Code Web, Extension Marketplace and Dashboard Updates
commit
New Repo Import Flow, Annual Plans, Better AI and UX Improvements
commit
VM Resizing and Dashboard & Editor Improvements
commit
CodeSandbox CDE, Usage-based Billing, and Live Sessions
commit
Unified Platform, Codeium and VS Code editor
commit
Enterprise, Dev Containers, GPT-4 and VS Code extension update
commit
AI Commit Messages 2.0, new command palette and more
commit
SSO, VIM mode, dependency picker and Chrome DevTools
commit
Code reviews, editor updates and custom themes
commit
Boxy AI assistant, Go support, VS Code overhaul, and editor updates
commit
PHP support, faster microVMs and better stability
commit
Seamless branching, workspace scopes, Python support and many more
commit
Docker support, Rust, seamless branching and much more
commit
Cloud Sandboxes for iOS & VS Code, new onboarding and more
commit
New dashboard, repositories and cloud sandboxes
commit
The realtime multiclient collaboration update
commit
GitHub App updates, better Astro support and a new login method
commit
VS Code Insider support, faster project imports and much more
commit
Sandpack meets Dracula, support for custom NPM registries and bug fixes
commit
Better list-view and rename branches from the command palette
commit
Public beta, new documentation and GiHub App
commit
Always on previews, VScode improvements and better UI consistencies.
commit
Sandpack June Update
commit
Binary files on mobile, more syntax highlights and repository renames.
commit
Drag and drop file upload, better framework support and more.
commit
Firecracker by default, more storage and more FPS.
commit
Sandpack April & May Update
commit
Protected branches, bulk discard and relative file path.
commit
CodeSandbox May Update
commit
Sandpack March Update
commit
Announcing CodeSandbox Projects
commit
Sandpack February Update
commit
Meet the new CodeSandbox
commit
Sandpack January Update
commit
Sandpack Devtools have landed
commit
Welcome to our release notes