Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

Matter.js

2D rigid body physics engine for web and game development.

Game development npm MIT

Used in agent projects
24
0.2% of 12,697 public repos built with AI coding agents
Rank in game development
#3 of 3
by use in those projects
Downloads
307K
npm, last 7 days, matter-js
GitHub stars
18.4K
last push Sep 30, 2026

How Matter.js is used

Matter.js is a dependency in 24 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #3 of 3 in game development. The most used alternative there is Phaser. Projects that use it most often also use Three.js (83.3%), React Three Fiber (79.2%), GSAP (62.5%).

Often used with Matter.js

Three.js83.3% of Matter.js projects · 4.5× more than average
React Three Fiber79.2% of Matter.js projects · 4.3× more than average
GSAP62.5% of Matter.js projects · 13.2× more than average
React Icons58.3% of Matter.js projects · 10.8× more than average
Framer Motion54.2% of Matter.js projects · 4.0× more than average
React95.8% of Matter.js projects · 2.2× more than average
React Router50.0% of Matter.js projects · 6.5× more than average
clsx54.2% of Matter.js projects · 3.1× more than average

Install

Packagenpm install matter-js
Main stacksTypeScript / JavaScript (12), Next.js (9), React Native / Expo (2), Python (1)
Example projectsluigimannoni/experiments

Alternatives to Matter.js

All game development

Tool Used in agent projectsDownloads / wk GitHub starsLicense
Phaser npm
Fast, free HTML5 game framework for building 2D games for desktop and mobile.
517 (4.1%) 493K 40.4K MIT
phaser3-rex-plugins npm
Collection of community plugins extending Phaser 3 game engine capabilities.
26 (0.2%) 15.8K 1,332 MIT
Is Matter.js right for your project? Ask AgentGid →