We've added a powerful new feature: generate beautiful flowchart reports with embedded statistics! These reports show your actor system topology, message flows, and performance metrics all in one view. Check out the Reports & Diagrams section below.
Interactive reports showing actor system topology, message flows, and statistics. Includes Mermaid flowcharts and sequence diagrams.
Export simulations to production code in multiple languages and frameworks. Includes C++, Java, Pony, Go, and more with complete build systems.
Simulate hours of behavior in milliseconds. No more waiting for timeouts in tests.
Perfect reproducibility. Same input = same output, every single time.
Built-in message counting, rate calculations, and performance metrics.
Beautiful diagrams with Mermaid flowcharts and sequence diagrams.
Generate production-ready code in C++, Java, Go, and Pony.
Drop-in replacement for GenServer with virtual time support.
Track every message exchange for debugging and analysis.
Test ideas in Elixir, then export to production languages.
Install from Hex and start simulating in minutes:
# Add to mix.exs
def deps do
[
{:gen_server_virtual_time, "~> 0.4.0"}
]
end
# Create a simulation
simulation = ActorSimulation.new()
|> ActorSimulation.add_actor(:producer,
send_pattern: {:rate, 100, :data},
targets: [:consumer])
|> ActorSimulation.add_actor(:consumer)
|> ActorSimulation.run(duration: 5000)
# Generate a flowchart report
html = ActorSimulation.generate_flowchart_report(simulation,
title: "My System")
File.write!("report.html", html)