Rust/WASM force simulation kernel for Hylograph.
High-performance force simulation using Rust compiled to WebAssembly. Provides 3-4x speedup over the D3.js kernel for large graphs while maintaining API compatibility with hylograph-simulation.
spago install hylograph-wasm-kernelThe WASM module must be loaded before use. See showcases/wasm-force-demo for a complete example.
Hylograph.Kernel.WASM.Engine- WASM engine implementationHylograph.Kernel.WASM.Simulation- Simulation controlHylograph.Kernel.WASM.Events- Event handlingHylograph.Kernel.WASM.FFI- WASM FFI bindingsHylograph.Kernel.WASM.Halogen- Halogen integration
import Hylograph.Simulation (runSimulation, Engine(..))
-- Use WASM engine instead of D3
{ handle, events } <- runSimulation config { engine = WASM }- hylograph-wasm-kernel - WASM physics kernel (this package)
- hylograph-d3-kernel - D3 physics kernel (fallback)
- hylograph-simulation - High-level simulation API
- hylograph-simulation-core - Kernel-agnostic types
MIT