PhysBox Logo physbox.io
Version 2.0 WebAssembly Engines Active

Scientific Simulation, Unbound.

Three hyper-realistic, open-source simulation engines running 100% in your browser. From real-time Hardware-In-The-Loop (HIL) microcontrollers and microsecond electronics to procedural OpenSCAD 3D printing and adaptive ecosystem graphs—run instantly, locally, and completely free.

Engines Purpose-Built for Exploratory Science

A triad of specialized simulation tools designed to eliminate the boundary between raw physical mathematics, hardware-in-the-loop microcontrollers, and 3D procedural CAD.

Stylized Mockup Actual Screenshot
Circuit Simulator Interface
Electronics & Signals ⚡ Hardware-In-The-Loop (HIL)

PhysBox: Volt

A high-fidelity electronics playground powered by an optimized, custom-compiled Ngspice WebAssembly engine with real-time Hardware-In-The-Loop (HIL) execution. Design, wire, and test complex electrical circuits with true physical waveforms synchronized directly with physical microcontrollers.

  • Hardware-In-The-Loop (HIL) Microcontroller Bridge: Wire physical ESP32 & CYD microcontrollers directly into the WASM SPICE worker via high-speed UART (460800 baud) & WebSockets. Supports MicroPython & C++ native batching (`hil_batch`), sub-millisecond digital logic threshold derivation, and lookahead queue buffering (40ms steps / 240ms target) to eliminate hardware starvation.
  • Integrated Audio Inputs & Outputs: Bind real hardware microphone inputs to input nodes, feed raw DAC outputs directly to your system speakers, and synthesize hardware filters in real-time.
  • Visual React Flow Canvas & MCU Sandbox: Build and modify circuit nets with a modular node-editor, program microcontrollers inside the schematic, and execute firmware cycles alongside passive components.
Stylized Mockup Actual Screenshot
Physics Simulator Interface
Generative Physics 🛠️ OpenSCAD & 3D Printing

PhysBox: Mesh

Code. Simulate. Print. Powered by AI.

An advanced mechanical simulator powered by a custom-compiled MuJoCo WebAssembly engine and an integrated WASM OpenSCAD compiler. Generate parametric procedural CAD models, test physical joint mechanics in real-time, and export 3D-print ready STL files.

  • Procedural WASM OpenSCAD & Parametric Sliders: Write constructive solid geometry (CSG) code live inside the browser node inspector. Automatically compiles code and generates interactive UI sliders from annotations (`// [min:step:max]`) for instant parameter tuning.
  • 1-Click Z-Up STL Export for 3D Printing: Export individual procedural components or full mechanical assemblies directly to Z-up orientation STL files, formatted specifically for modern 3D printer slicers (PrusaSlicer, Bambu Studio, Cura).
  • Proximity-Aware Coupling & Complete DOF Control: Solves pinion, gear, and rack behaviors on the fly using rigid mathematical joint constraints, or uncheck coupling to test pure colliding gear teeth friction across 6-DOF bodies.
Stylized Mockup Actual Screenshot
Process Simulator Interface
Hybrid Systems & CA

PhysBox: Flux

A hybrid systems simulator engineered to model complex relationships, cellular events, and system cycles. Bridge the gap between deterministic calculus and stochastic environmental cellular grids.

  • Runge-Kutta Differential Solver: Simulate multi-variable ecological balances, predator-prey dynamics, and process loops with extreme numerical stability.
  • Wildfire Cellular Automata: Model pixel-by-pixel fire front spread, incorporating wind vectors, moisture, and response dispatch logic directly on an interactive 2D grid.
  • General IoT & Smart Nodes: Read real-world telemetry via WebSocket inputs and fire outbound webhooks for physical actions, combined with a State-Gated LLM Copilot to build grids and write custom logic safely.

Empowering AI Agents with Actionable Tooling

Bridging cognitive reasoning with physically and sociologically accurate environments. physbox.io provides zero-latency local action spaces where agents can test layouts, solve physical problems, and safely interact with real-world systems.

Action Spaces Over Empty Logic

Large Language Models are exceptional at writing code and reasoning through text, but they operate in a physical vacuum. Without realistic feedback, an AI agent cannot correctly optimize an audio amplifier circuit, balance an unstable mechanical linkage, test a physical ESP32 HIL microcontroller loop, or generate printable 3D CAD parts. They need grounded world models to solve complex, multi-modal tasks.

PhysBox solves this by exposing simplified, highly accurate physical, hardware, and sociological engines directly to AI agents. It provides a robust, local sandbox where agents can explore bounds, isolate failure points, and solve complex problems they otherwise couldn't touch.

AI AGENT SANDBOX

Interactive Interfaces for Agents

Built entirely on client-side WebAssembly, our simulators enable AI agents to bridge the gap between abstract reasoning and concrete physical execution. Agents can utilize browser automation (like Puppeteer or Playwright) or standard WebSockets to interact with simulations in real-time:

  • Procedural CAD & 3D Printing Generation: AI agents can write and refactor OpenSCAD code to create custom brackets, gears, and enclosures, test structural stability in MuJoCo, and output 3D-printable STL files.
  • Real-World Hardware & Telemetry (HIL): Using websocket telemetry, serial HIL bridges, and general IoT webhooks, agents can stream hardware pin states, read sensor values, and drive physical microcontrollers directly.
  • Iterative Design Self-Correction: Agents observe physical bounds and signal waveforms at 60fps, self-correcting schematic nets and CAD parameters until physical and functional requirements are met.

Zero-Server Web Architecture

By compiling industry-standard C simulation engines and CAD compilers to WebAssembly, we deliver desktop-grade physics, HIL hardware, and 3D modeling directly in the browser.

WebAssembly Simulators

Native C simulation cores like Ngspice and MuJoCo compiled directly to WebAssembly for native-level execution speeds and complete browser sandboxing.

Hardware-In-The-Loop (HIL)

High-speed UART (460800 baud) & WebSocket protocol linking WASM circuit solvers with MicroPython/C++ firmware running on physical ESP32/CYD microcontrollers.

WASM OpenSCAD & 3D Printing

Integrated CSG geometry engine compiling OpenSCAD code to MuJoCo collision meshes in WASM with live parametric UI sliders and 1-click STL 3D-print export.

Offline-First Stack

Runs entirely client-side. The landing page, assets, and all three simulators operate smoothly with zero external database dependencies or subscription models.

Our Open-Source Pledge

We believe scientific and educational tools should be accessible to everyone, everywhere. physbox.io is completely free to use, contains no hidden tiers, requires no account creation, and will remain open-source forever. You can clone the repositories and run them offline locally.