nadeeshanj.dev Simulation 0 ms
← Back to inventory

Emergence Lab - Agent-Based Simulations

Eight complex-system simulations in the browser, where simple local rules produce big emergent behaviour.

Simulation 2026 Live

  • TypeScript
  • Canvas
  • Web Workers
  • Cloudflare Pages

Overview

Emergence Lab is a collection of interactive, in-browser complex-system simulations. Each entity follows simple local rules, and the interesting macro behaviour - population cycles, extinction, equilibrium, flocking - emerges from their interactions rather than being programmed in.

It runs entirely client-side and deploys as static assets on Cloudflare Pages, so it costs nothing to host at any traffic level.

Enchantments 4

Field notes

Emergence as the teaching goal

The point isn't the individual agents - it's watching a food-chain settle into cycles, or a flock organise with no leader. Exposing every parameter live lets you feel how a small rule change tips a system from equilibrium into collapse.

Zero-backend architecture

Everything runs in the browser on HTML Canvas, with Web Workers for the compute-heavy models. Deployed as static files on Cloudflare's free tier, there's no server to pay for or maintain - the architecture makes scientific visualisation essentially free to publish.

Recipe 4 ingredients

FrontendTypeScriptFrontendHTML CanvasComputeWeb WorkersHostingCloudflare Pages
Emergence Lab

Item frames 3

15