Conversation
added 11 commits
February 8, 2026 21:13
Add `deno sandbox quickstart` to create pre-configured snapshots from popular tools. Supports 5 presets (Python, Node.js, Data Science, Web Tools, System Tools) plus a custom multi-select flow. Includes non-interactive mode via --preset flag for scripting.
- Use throw instead of error() inside try blocks so the finally block runs sandbox cleanup instead of exiting immediately - Make snapshot failure exit non-zero instead of silently succeeding - Log errors in sandbox teardown catch blocks instead of swallowing them
- Extract runInSandbox helper for repeated spawn/status pattern - Fix step counter off-by-one (totalSteps counted 2 base but only 1 used) - Simplify install summary, prompt, and package loop - Use Set for setup command dedup to match package dedup - Remove empty try/finally and unnecessary snapshotCreated flag - Remove unused context parameter from buildSnapshot
- Stop spinner on volume/sandbox creation failures for clean output - Include orphaned volume cleanup instructions when sandbox boot fails - Track failed setup commands and warn that snapshot will be incomplete - Fix misleading "temporary volume" comments (volume is kept permanently)
donjo
commented
Feb 23, 2026
| setupCommands: string[]; | ||
| } | ||
|
|
||
| const PRESETS: Preset[] = [ |
Author
There was a problem hiding this comment.
Consider these placeholders until I confer with the dev rel team on things we may want to showcase as use cases. I'd also like to make a "list your own packages" option but figure we should do that as a followup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The goal of this feature is to give people a way to build some snapshots for opinionated use cases of the sandbox product. Once they have those snapshots created, they can use them to spawn other sandboxes. Initially, we are providing a few templated use cases but would eventually want to allow people to type out a list of packages that they want to be installed that they could do via the CLI instead of programmatically generating them by writing a one-off file that generates a sandbox and creates a snapshot.
Demo
quickstart.mov