Project: Code Executor
What is it?
- Runs Python, SQL, Bash, JavaScript, and Deno in a sandboxed container
- Isolated execution environment — no persistent state between runs
- Hosted as part of Demo Garden, wakes on demand
- Similar in concept to Judge0 or Piston, but minimal and self-hosted
Backstory
Built as an experiment in sandboxed execution and as a useful addition to Demo Garden. The goal was a simple tool to run code snippets quickly without spinning up a local environment — useful for testing ideas, demonstrating concepts, or teaching.
The execution environment runs inside a Deno container with restricted access. It became one of the first services hosted on Demo Garden, which made it a good test case for the lazy loader and the broader platform architecture.
Source code: github.com/pnettto/code-executor.
Technical details
Stack
- Deno (runtime + sandboxing)
- Docker (containerized execution)
- Hosted on Demo Garden (AWS EC2 + lazy loader)