If you’ve ever played Sim City then you’ll be familiar with agent-based simulation in a spatial context, from the individual people all the way down to the energy and water as it flows through the network. AgentMaps is a JavaScript library for both the creation and visualisation of spatial agent-based simulations, allowing you to create a simulation anywhere in the world.

Make social simulations on interactive maps with Javascript! Agent-based modeling for the web. - noncomputable/AgentMaps