Skip to content

About Deepbox

The runtime that lets a lesson execute TypeScript in your tab.

The problem

A course that teaches code has two bad options. Show static snippets and let the reader imagine the output, or send every run to a server and pay for it forever.

Static snippets teach less. Server runs cost money per learner, break offline, and put a queue between a question and its answer.

What Deepbox does

Deepbox is a TypeScript sandbox that runs inside a web worker. The code you edit in a lesson compiles and executes on your own machine, with no network round trip and no account.

The worker has no access to the network, to your storage, or to the page around it. It has a time budget and a memory budget, and it is stopped when it passes either.

Honest about speed

This is not a replacement for a real numerical stack. Matrix work that NumPy does in milliseconds will be slower here, and large training runs are out of reach on purpose.

What it is good at is the size of thing a lesson needs: a few hundred data points, a small network, a loop you can watch converge. Every exercise in the course is sized to that budget.

Use it yourself

Deepbox is a separate project and you can put it in your own site. It is documented at deepbox.dev.