Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

A browser-based Linux network lab for practicing routing, switching, cabling and packet capture without installing a VM.

105
4
TypeScript
MIT
7 days old

Introduction

uNLAb boots real Linux kernels in WebAssembly via unkernel and connects the guests to a virtual Ethernet switch, so you can build a small network in a browser tab and watch what happens to traffic. It targets learners and homelab users who want to practice IPv4 routing, switch ports, VLANs, spanning tree, cable faults and traffic capture without a local hypervisor. Machines run in browser workers, and a virtual switch forwards their frames while a capture view decodes them.

Quick Start

  1. Open the live lab. In Welcome to unLAB, keep the two Alpine machines and click Boot 2 machines; wait for 2 links up in the Rack manager.
  2. In node1's terminal, run ping -c 1 -W 2 node2 and look for 0% packet loss.
  3. Open the capture on switch0 to see the ICMP echo request and reply.
  4. Cut node2's cable in the Rack manager, repeat the ping and observe 100% packet loss; reconnect and the packet loss returns to 0%.

The first ping walkthrough and manual cover the rest. Lab commands such as spawn, mkswitch, cable, link down and capture are available from the command bar (⌘K on macOS, Ctrl+/ elsewhere).

Terminal and Agent Access

Running npx unlab.run on the same computer links the open lab to your terminal, opening shells with ssh node1, forwarding ports with forward, and routing guest internet access through your machine. It requires Node.js 22.12+, OpenSSH and Chrome or Chromium on Linux or macOS. Agents can connect through npx -y unlab.run mcp, and Chrome 150+ users can try the in-browser WebMCP tool list.

Constraints

A lab holds up to 16 machines and 8 switches; each switch has 8 ports, and a machine has one to four NICs. Package installation goes through a gateway accepting only repository requests unless the CLI is linked. Guest internet access through the CLI excludes UDP, traceroute and IPv6, and inbound connections aren't possible. SSH sharing depends on Tailcat and the lab tab staying open. The project is MIT licensed, and local builds need Node.js 24 plus extra toolchains for the optional Go and Zig components.

HotRepo's take

The project has no GitHub daily rank record. On the new-project TypeScript list it was observed at 102 stars, 4 forks and 2 stars gained over a roughly one-hour window on 29 November 2026, which supports only that-day activity rather than a trend. For readers, the distinguishing fact is that packets are captured from the switch itself, making a failed ping and a cut cable directly inspectable instead of simulated.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. iximiuz/pathvizVisualize how packets traverse Linux Netfilter hooks across devices, bridges, and the IP layer in a live browser view.Go103
  2. michidk/sidebysideCompare how Firefox, Chromium, Epiphany and other real browsers render one URL, each running in a Linux VM in your tab.TypeScript105