modlit / simulations, tools and games

Models you can open, run and play.

Physicist, software engineer, and curious about almost everything. Here are models of batteries, epidemics, porous materials and emergent behaviour, plus a game, each one running in your browser.

Behind this: reaction–diffusion, two chemicals and two rules. Move the pointer to feed it, orBrush a finger sideways across it to feed it, or open it in Emergence.

Projects

Live apps you can open in the browser, and write-ups of how each tool was built.

Games

valley

A satirical tech board game whose AI opponents run in the browser.

Rules in Rust; the AI opponents think with a 33 KB trained network, offline.

Complex systems

emergence

21 simulations of simple rules making large-scale behaviour.

No server, and more than a thousand tests check each model against what its text claims.

Geomorphology

mountains

Push land up out of the sea and watch rivers carve it into mountains.

About 260 lines of Rust, checked against the steady-state slope–area law to within 2%.

Porous materials

pores

Twelve PoreSpy generators in 3D, measured and ready to take back to Python.

Checked against PoreSpy 3.3: the deterministic generators and local thickness agree voxel for voxel.

Pharmacology

dose

Paste a dose-response experiment, get EC50s, confidence intervals and curve comparisons.

Matches the standard R package to five or six significant figures, in 100 KB.

Materials

crystal

Plant seeds in a cold liquid and watch crystals grow and collide.

About 300 lines of Rust, and the whole app is a quarter of a megabyte.

Neuroscience

neuron

Touch a neuron and watch the spike travel along its branches.

About 400 lines of Rust, 70 KB, and a loaded neuron never leaves the page.

Porous materials

gtrax

Tortuosity from a greyscale scan, with no segmentation step.

About 900 lines of Rust. The whole app is 250 KB, and your scan never leaves your machine.

Epidemiology

outbreak

Tracking Bluetongue across Europe in an afternoon.

Built in an afternoon from the official WOAH outbreak records.

Batteries

acoustics

From a layered physical model to tooling experimentalists can rerun.

Built for Sention, so experimentalists can fit the model to their own measurements.

Writing

Thoughts and opinions on building research software that other people can run.

Feb 2026 6 min read Modlit thesis Most academic code is written to get a paper out. What if it were written to get a product out? Read the essay

Get in touch.

Questions, ideas or a game you liked: a line to the address below reaches me.

[email protected]