Tweet by _ashleypeacock

June 25, 2025

One of the use cases I talked about in my Cloudflare containers post was running code in a sandbox (e.g. a website to prompt an app needs to run "untrusted" code in a safe way). Looks like this is now easy thanks to a new npm package Cloudflare just dropped, aptly named sandbox! It has some nice capabilities such as being able to run commands inside the sandbox, you can make directories, checkout code from Git, as well as add/delete and move files. Seems a pretty nice wrapper, and I suspect there might be lots of simple packages to make common use cases easy with containers.

Author
_ashleypeacock
Date
June 25, 2025