BrowserPod 3.0 runs Rust BrowserPod 3.0 runs unmodified Rust programs in the browser Announcement
Using a coding agent? Not sure where to start? Talk to us
Sign up for Edge Get an Edge API key, with 1,000 free hours Contact us Talk to the team

Courses every student can run

BrowserPod is a microVM that runs in the browser. Give every student a real terminal and real runtimes in the lesson, with nothing to install and nothing for you to host.

Why it works for teaching

Setting up a toolchain is where many lessons lose students before they write a line of code. BrowserPod puts the real runtime in the lesson, with the exercise's files already in place.

Each student's pod runs on their own device, so a whole class running the same exercise costs you nothing and never queues. Pods start without downloading a full image, and a storageKey keeps a student's progress between visits.

The library is free for any use. When exercises need npm, GitHub or an API, add BrowserPod Edge.

What you need to know

Two headers on your course site

Serve the pages that run pods with Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp.

What people build

01

Courses and workshops

A whole class runs the same exercise at once, each on their own device.

02

Coding exercises

Each exercise seeds its files, so students start exactly where the lesson is.

03

Educational apps

Learning tools with a real terminal and real runtimes inside them.

04

Classroom labs

Lab sessions that run in the browser, with nothing to install on school machines.

What your students get

The real tools, in the lesson, with nothing to install and nothing for you to host.

From exercise to lesson

  1. Add the package

    npm i @leaningtech/browserpod in your course site.

  2. Set two headers

    Serve the page cross-origin isolated with COOP and COEP.

  3. Seed the exercise

    Write the exercise's files into the pod when the lesson loads.

  4. Let students run it

    Attach a terminal and let them run, edit and break things safely.

A runnable exercise

Seed the exercise into the pod and open a shell in it, right in the lesson.

app.js
import { BrowserPod } from "@leaningtech/browserpod";

const pod = await BrowserPod.boot({ storageKey: "lesson-1" });
const terminal = await pod.createDefaultTerminal(document.querySelector("#lesson"));

const file = await pod.createFile("/home/user/exercise.js", "utf-8");
await file.write(`// Make this print "Hello, class"`);
await file.close();

await pod.run("bash", [], { terminal, cwd: "/home/user" });

Questions

Do students need an account?

No. Pods run in their browser with no sign-up.

Can a whole class run at once?

Yes. Each student's pod runs on their own device, so a whole class running the same exercise never queues.

Can students break something?

Only their own pod. Each student's work runs in their own browser, apart from your site and from every other student.

Can progress be saved?

Yes. Boot with a storageKey and the student's files persist in the browser between visits.

Can we self-host BrowserPod?

Yes. Enterprise covers self-hosting the runtime and the network stack, vendoring it into your build and redistributing it in your product.

Stay informed with BrowserPod news

BrowserCode: a browser-based coding playground, powered by WebAssemblyBrowserCode is a free, open source, fully client-side coding playground. Open a tab, pick a template, clone a repo or pick an agent and start building. No account, no installs, no servers, no setup. Ana GabySoftware Engineer @ Leaning TechnologiesBeyond WASI: Running any Rust application in the browser with BrowserPod 3.0BrowserPod can now run real Rust programs in the browser, compiled from unmodified source with stock rustc and cargo. Yuri IozzelliSenior Software Engineer @ Leaning TechnologiesA Linux-like kernel in a browser tab - deep dive in the BrowserPod architectureHow the BrowserPod kernel supports running many Linux applications concurrently in the browser using WebAssembly. Alessandro PignottiCTO @ Leaning TechnologiesBrowserPod 2.0: in-browser WebAssembly sandboxes. Run git, bash, node, python...BrowserPod 2.0 ships with a real bash shell, git, and core Linux utilities. Yuri IozzelliSenior Software Engineer @ Leaning TechnologiesBrowserPod: universal in-browser sandbox powered by Wasm (starting with Node.js)Stefano De Rossi, Alessandro PignottiCEO @ Leaning TechnologiesBrowserPod: WebAssembly in-browser code sandboxes for Node, Python, and RailsBrowserPod Beta is live: zero latency in-browser code sandboxes in WebAssembly for Node, Python and Rails. Alessandro Pignotti, Stefano De RossiCTO @ Leaning TechnologiesBrowserPod: In-browser full-stack environments for IDEs and Agents via WasmBrowserPod is a WebAssembly-based, client-side container that brings full-stack dev environments to the browser, ideal for web IDEs, docs, and AI agents.Alessandro Pignotti, Stefano De RossiCTO @ Leaning Technologies