FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Original HTTPS Page]

pflow · GitHub

pflow

Building a dynamic, programmable, and human-readable Web3

pflow — One Petri Net, Several Rigorous Lenses

Declare a net — places, transitions, rates — and simulate it, fit it, and verify it without leaving the same model.

Arc topology is the rate law: a double arc fires quadratically with concentration, a weighted arc scales a flow. Start with ODE — the fastest way to watch a model move — then reach for exact stochastic simulation, parameter fitting, or formal verification against the same declared net.

Open Editor | Read the Book


Model → Simulate → Fit → Verify

Model Simulate Fit Verify
Places, transitions, weighted arcs — stored as JSON-LD with content-addressed identity. Arc topology is the rate law: a double arc makes a transition fire quadratically with concentration. Tsit5/RK45 ODE relaxation, exact Gillespie SSA, and chemical-Langevin SDE — three semantics from one declaration. Gradient-free and gradient-based (forward + adjoint sensitivity) parameter fitting. Every fitted value is still a transition rate. Reachability, P/T-invariants, and declarative property checking with proved/refuted/unknown verdicts and counterexamples.
pflow.xyz go-pflow/solver go-pflow/learn go-pflow/verify

Same declared model, byte-exact across languages: JS (pflow.xyz), Go (go-pflow), Rust (pflow-rs), and Julia (pflow-jl, bridged to AlgebraicPetri.jl).


Start here: ODE Demos

Demo What it shows Link
Predator-Prey Lotka-Volterra dynamics, continuous simulation Run
Enzyme Kinetics Michaelis-Menten, biochemical modeling Run
Knapsack Optimization via mass-action kinetics Run
ODE Simulation & Prediction Walkthrough of the solver itself Run

ODE is the fastest way to see a model move, not the whole toolkit — the same declared net also drives exact stochastic simulation, parameter fitting, and formal verification (see the table above). More examples — discrete state machines, workflows, ZK proofs, games — live one level down, in the individual project READMEs below.


Projects

Repository Purpose
go-pflow Core Go library. ODE/SSA/SDE engines, parameter fitting, reachability & verification. The reference implementation.
pflow-xyz Visual editor + browser ODE simulator, held byte-exact to go-pflow.
pflow-rs Rust port — ODE solvers, token-model DSL, ZK provers.
pflow-jl Julia port, bridged to AlgebraicPetri.jl for categorical composition and mass-action ODEs.
petri-pilot MCP server for AI-assisted model design + deterministic app generation from a validated model.
book-pflow-xyz "Petri Nets as a Universal Abstraction" — practitioner's guide.
Model (pflow.xyz) ──▶ go-pflow (ODE · SSA · SDE · fit · verify) ──▶ pflow-rs / pflow-jl (byte-exact ports)
                                        │
                                        ▼
                              petri-pilot (app generation, MCP)

AI-Assisted Model Design (MCP)

petri-pilot exposes MCP tools so an agent can design, simulate and verify a model directly:

claude mcp add --transport http petri-pilot https://pilot.pflow.xyz/mcp
petri_validate    →  Check model structure
petri_simulate    →  Fire transitions, trace state (ODE/SSA/SDE)
petri_analyze     →  Reachability, deadlocks, liveness
petri_codegen     →  Generate Go backend
petri_application →  Full-stack app from high-level spec
petri_extend      →  Modify existing models

The LLM designs the net. The engines decide what it does. No LLM-generated math in the output.


Links

Pinned Loading

  1. pflow-xyz pflow-xyz Public

    Visual editor and browser ODE simulator for Petri nets, byte-exact to go-pflow

    JavaScript 4

  2. book-pflow-xyz book-pflow-xyz Public

    Petri Nets as a Universal Abstraction — a technical book on modeling state machines, workflows, and token standards with Petri nets

    HTML 4 1

  3. pflow-rs pflow-rs Public

    Rust port of go-pflow — ODE/SSA solvers, token-model DSL, ZK provers

    Rust 1

  4. go-pflow go-pflow Public

    Petri net library — ODE, SSA & SDE simulation, parameter fitting, and formal verification, in Go

    Go 11 1

  5. pflow-jl pflow-jl Public

    Julia package for Petri nets — colored tokens, mass-action ODEs, bridged to AlgebraicPetri.jl

    Julia

Repositories

Loading
Type
Select type
All Public Sources Forks Archived Mirrors Templates
Language
Select language
All Go HTML JavaScript Julia Rust
Sort
Select order
Last updated Name Stars
Showing 7 of 7 repositories
  • pflow-xyz Public

    Visual editor and browser ODE simulator for Petri nets, byte-exact to go-pflow

    pflow-xyz/pflow-xyz's past year of commit activity
    JavaScript 4 MIT 0 0 1 Updated Oct 28, 2026
  • pflow-native Public

    Native Petri-net editor and simulator on pflow-rs (egui/eframe), with a command registry shared by app, CLI and MCP

    pflow-xyz/pflow-native's past year of commit activity
    Rust 0 MIT 0 0 1 Updated Oct 28, 2026
  • pflow-rs Public

    Rust port of go-pflow — ODE/SSA solvers, token-model DSL, ZK provers

    pflow-xyz/pflow-rs's past year of commit activity
    Rust 1 MIT 0 1 0 Updated Oct 28, 2026
  • go-pflow Public

    Petri net library — ODE, SSA & SDE simulation, parameter fitting, and formal verification, in Go

    pflow-xyz/go-pflow's past year of commit activity
    Go 11 MIT 1 0 0 Updated Oct 28, 2026
  • book-pflow-xyz Public

    Petri Nets as a Universal Abstraction — a technical book on modeling state machines, workflows, and token standards with Petri nets

    pflow-xyz/book-pflow-xyz's past year of commit activity
    HTML 4 MIT 1 0 0 Updated Oct 28, 2026
  • pflow-jl Public

    Julia package for Petri nets — colored tokens, mass-action ODEs, bridged to AlgebraicPetri.jl

    pflow-xyz/pflow-jl's past year of commit activity
    Julia 0 MIT 0 0 0 Updated Oct 27, 2026
  • .github Public

    Organization profile and configuration

    pflow-xyz/.github's past year of commit activity
    0 MIT 0 0 0 Updated Sep 10, 2026

Back | FazBrowse Home | New Git URL