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

Portals

A public URL for a server in the tab

When a program in a pod opens a port, Portals give it a public URL. Anyone you send the link to can reach the running server.

Share what's running

01

A URL for every port

Bind a port and BrowserPod hands you a public hostname that routes to it.

02

HTTP and WebSockets

Inbound requests and WebSocket connections reach the server inside the pod.

03

Demos that are the product

Send a link to a working build instead of a video, with no environment to set up.

04

Part of BrowserPod Edge

Portals come with Edge, which connects pods to the internet, with 1,000 hours free every month.

How Portals work

When a process in a pod binds a port, BrowserPod Edge gives it a public hostname of the form <id>-<port>.browserportal.io. HTTP requests and WebSocket connections to that hostname are routed through our network into the pod, to the server listening on the port.

Your page hears about each Portal through onPortal, with its URL and port, so you can show a live preview, copy a link or open it in a new tab.

Portals are part of BrowserPod Edge, the network service that connects pods to the internet, so they need a pod booted on an Edge network. Every Portal is logged to your account and kept for 12 months.

What you need to know

Anyone with the link can reach it

Every server in a pod running in a user's browser gets its own Portal, at a random hostname. Share it like any other URL.

Free hours every month

Edge includes 1,000 connected hours a month at no cost. Pro adds more hours, at $0.01 per connected hour beyond its allowance, and custom egress allowlists.

Listen for Portals

Boot on an Edge network, start a server, and BrowserPod reports the public URL for each port.

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

// Edge connects to the internet
const network = await BrowserPod.createEdgeNetwork({ apiKey: "your-key" });
const pod = await BrowserPod.boot({ network });
const terminal = await pod.createDefaultTerminal(document.querySelector("#console"));

pod.onPortal(({ url, port }) => console.log(port, url));
await pod.run("bash", ["-c", "npm run dev"], { terminal, cwd: "/home/user/app" });

Questions

Who can reach a Portal?

Anyone with the URL. Each Portal gets a random hostname.

What is BrowserPod Edge?

Edge connects your pods to the rest of the internet: Portals, GitHub and APIs. npm works without it. It's the one paid part, from $0.01 per connected pod-hour, with 1,000 hours free every month.

Do Portals support WebSockets?

Yes. Both HTTP requests and WebSocket connections are routed to the server in the pod.

Where does the server actually run?

In the user's tab. Edge only routes the traffic between the public URL and the pod.

Can Portals use our own domain?

Yes, with self-hosted Edge on Enterprise, which runs on your own Cloudflare account with your own domain.

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