Engineered for High-Performance Network Labs.
A deterministic simulation engine written in Rust and compiled to WebAssembly.
Zero virtualization. Zero latency. 100% Browser-native.
NetSim Community Edition is an open-source network simulator that runs entirely in your browser. Starting with v1.1.0, the core simulation logic has been migrated from TypeScript to Rust/WebAssembly to achieve near-native execution speeds and deterministic protocol behavior.
It provides a high-performance, client-side network simulation environment that runs entirely in your browser, bypassing the need for heavy VMs or backend servers.
- 🦀 Rust-Powered Engine: High-performance core handling packet switching and complex routing logic with memory safety.
- 🌐 100% Client-Side: Runs entirely in your browser using WebAssembly. Zero latency, zero data egress.
- 🔌 Multi-Vendor CLI: Native support for Cisco (IOS) and Huawei (VRP) command syntaxes.
- 🔒 Privacy First: Your topologies and configurations never leave your machine.
- 🔋 Built-in Labs: Ready-to-use scenarios for STP, OSPF, and VLAN practice.
- 🛠️ Modern Stack: Built with React 19, Rust, and React Flow.
- Node.js 20.19+ or 22.12+ (required by the Vite 7 toolchain) with npm.
- Rust stable toolchain, installed with rustup.
- wasm-pack, used to compile the core to WebAssembly.
# 1. Clone the repository
git clone https://github.com/anghabar/netsim.git
# 2. Enter the directory
cd netsim
# 3. Install the JavaScript dependencies
npm install
# 4. Build the WebAssembly core
# (needed before the first run and after every change in wasm-core/)
npm run build:wasm
# 5. Start the development server
npm run devThe development server prints the local address to open (by default http://localhost:5173).
| Command | What it does |
|---|---|
npm run build:wasm |
Compiles wasm-core/ to WebAssembly with wasm-pack into src/wasm/pkg. |
npm run dev |
Starts the Vite development server. |
npm test |
Runs the unit tests with Vitest. |
npm run typecheck |
Type-checks the TypeScript sources. |
npm run lint |
Runs ESLint over the project. |
npm run build |
Builds the WebAssembly core and the production bundle into dist/. |
The Rust tests run with cargo test --manifest-path wasm-core/Cargo.toml.
NetSim utilizes a decoupled architecture where a high-speed Rust core manages the network state, exposed to a React frontend via a typed WebAssembly bridge.
| Layer | Technology | Description |
|---|---|---|
| Core Engine | Rust + WASM | Logic for OSPF, BGP, STP, and CLI parsing. |
| State Management | Zustand | Syncs the WASM state with the UI components. |
| Visualization | React Flow | Interactive node-based topology editor. |
| Interface | Tailwind CSS | Responsive, dark-themed professional UI. |
NetSim is designed to run entirely in your browser: there is no account, no server and no telemetry or analytics. Topologies, lab progress and settings are kept in memory and in your browser's local storage, and they leave your machine only when you export a file yourself. Anything that breaks this promise is treated as a security issue; see SECURITY.md.
Please report vulnerabilities privately, as described in SECURITY.md. Do not open a public issue for a suspected security problem.
We welcome contributions! Please follow these steps:
- Read our Code of Conduct to maintain a professional environment.
- Read the contributing guide: it covers the development setup, the checks to run before a pull request and the project policies.
- Fork the repo and create your branch as
<type>/<topic-in-english>. - Run the checks listed in the contributing guide, including
cargo testfor the Rust core. - Open a Pull Request.
Distributed under the GNU Affero General Public License v3.0 (AGPL-3.0).
- Free for personal and educational use.
- Commercial use requires a dedicated license. Contact
[email protected].
netsim by anghabar · https://netsim.dev
Copyright (c) 2026 anghabar. Licensed under the GNU AGPL-3.0 (see LICENSE).

