Skip to content
anghabarPublic

About

Browser-based network simulation engine powered by WebAssembly. Master Cisco and Huawei syntax locally.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

NetSim Community Edition

NetSim Logo

The Open Source Network Simulator

License: AGPL v3 Version PRs Welcome Rust TypeScript

Engineered for High-Performance Network Labs.
A deterministic simulation engine written in Rust and compiled to WebAssembly.
Zero virtualization. Zero latency. 100% Browser-native.

Releases • Report Bug • Request Feature


🚀 Overview

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.

NetSim Dashboard

✨ Key Features (v1.1.0 WASM Core)

  • 🦀 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.

👀 Visuals

NetSim Lab Session

📦 Quick Start

Prerequisites

  • 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.

Run it locally

# 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 dev

The development server prints the local address to open (by default http://localhost:5173).

Scripts

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.

🏗️ Architecture

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.

🔒 Privacy

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.

🛡️ Security

Please report vulnerabilities privately, as described in SECURITY.md. Do not open a public issue for a suspected security problem.

🤝 Contributing & Governance

We welcome contributions! Please follow these steps:

  1. Read our Code of Conduct to maintain a professional environment.
  2. Read the contributing guide: it covers the development setup, the checks to run before a pull request and the project policies.
  3. Fork the repo and create your branch as <type>/<topic-in-english>.
  4. Run the checks listed in the contributing guide, including cargo test for the Rust core.
  5. Open a Pull Request.

📄 License

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).

About

Browser-based network simulation engine powered by WebAssembly. Master Cisco and Huawei syntax locally.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages