# mesa/mesa

Mesa is an open-source Python library for agent-based modeling, ideal for simulating complex systems and exploring emergent behaviors.

Repository: https://github.com/mesa/mesa
Canonical: https://ross.abutalabs.com/products/mesa
Homepage: https://mesa.readthedocs.io
Language: Python
License: Apache-2.0
License Family: permissive
Topics: mesa, agent-based-modeling, agent-based-simulation, simulation-framework, simulation, simulation-environment, complex-systems, complexity-analysis, modeling-agents, spatial-models, gis
Last push: 2026-08-26T18:30:23+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 75, longevity 100
- inputs: {"age_days": 4366, "days_push": 7, "days_rel": 171, "gap_med": 20, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3810, forks 1295 (observed 2026-08-28T04:08:20.505742+00:00)

## What it is
Mesa is an open-source Python framework for agent-based modeling (ABM), providing modular components like spatial grids, agent schedulers, browser-based visualization, and analysis tools. It aims to be the Python alternative to NetLogo, Repast, or MASON for simulating complex systems and emergent behaviors.

## Use cases
- simulate complex systems with interacting agents in python
- build agent-based models like wolf-sheep predator-prey dynamics
- explore emergent behavior in multi-agent simulations
- visualize agent-based simulations in a browser or jupyter
- python alternative to netlogo or repast
- model spatial agent systems with grids and gis data
- teach or research complexity science and ABM

## When to choose
- you want to build agent-based models in Python with reusable components
- you need built-in browser-based visualization and Jupyter support
- you want to analyze simulation results with Python's data science stack
- you're migrating from NetLogo, Repast, or MASON to Python

## When to avoid
- you need high-performance discrete-event simulation at industrial scale
- you need a GUI desktop modeling environment rather than a Python library
- your use case is machine learning training rather than agent-based simulation

## Facets
- artifact type: library
- maturity: active
- function: simulation, data-visualization, data-science
- domain: simulation, data-science, developer-tools
- platform: python, cross-platform, browser
- tags: agent-based-modeling, abm, complex-systems, emergent-behavior, spatial-models, netlogo-alternative, multi-agent-systems

## Member repositories
- mesa/mesa (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:20.505742+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:26:38.044367+00:00, confidence not recorded.
  - readme: https://github.com/mesa/mesa (fetched 2026-08-28T04:08:20.505742+00:00, sha 5d2b531c043d)
  - registry_pypi: https://pypi.org/pypi/mesa/json (fetched 2026-08-29T09:22:06.929185+00:00, sha 876e39456f8b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
