# liabru/matter-js

a 2D rigid body physics engine for the web ▲● ■

Repository: https://github.com/liabru/matter-js
Canonical: https://ross.abutalabs.com/products/matter-js
Language: JavaScript
License: MIT
License Family: permissive
Topics: physics, javascript, rigid-bodies, web, canvas, physics-engine
Last push: 2024-08-17T14:14:36+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4578, "days_push": 746, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18383, forks 1991 (observed 2026-08-28T04:11:26.615098+00:00)

## What it is
Matter.js is a 2D rigid body physics engine written in JavaScript for the web. It simulates bodies, collisions, constraints, and composites, rendering to canvas or integrating with other renderers.

## Use cases
- simulate 2d physics in the browser
- add rigid body physics to an html5 game
- collision detection and response for javascript
- build soft bodies and cloth simulations
- physics-based interactive web animations

## When to choose
- you need 2D physics in JavaScript with no native dependencies
- you want a well-documented, MIT-licensed engine with many examples

## When to avoid
- you need 3D physics
- you need maximum performance for thousands of bodies in a native engine

## Facets
- artifact type: library
- maturity: stable
- function: game-engine, simulation
- domain: graphics, web-development
- platform: browser
- tags: 2d-physics, rigid-body, canvas, collision-detection, game-development, javascript, nodejs

## Member repositories
- liabru/matter-js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:26.615098+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-29T17:02:03.824316+00:00, confidence not recorded.
  - readme: https://github.com/liabru/matter-js (fetched 2026-08-28T04:11:26.615098+00:00, sha 81cf1fce74cf)
  - registry_npm: https://registry.npmjs.org/matter-js (fetched 2026-08-29T08:00:08.384582+00:00, sha e7dfd9730ca6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
