The fastest, lightest 2D physics
for JavaScript.

Fast2D is the fastest, most lightweight, dependency-free, TypeScript-first 2D physics engine for JavaScript — with cross-platform deterministic multiplayer.

0 dependencies 20.8 KB gzip TypeScript-first Deterministic Renderer-agnostic
Explore the demos ↓ Commercial license

No physics or engine knowledge needed. Copy a ready-made prompt and paste it into ChatGPT, Claude, Copilot, or Cursor — it wires Fast2D into your game for you.

Copy, paste, run

First simulation in 10 lines

minimal-fast2d.mjs
box.y = -4.00

0 fps 0 bodies 0 awake 0 steps/s 0.0 ms/step

Head-to-head

Fast2D is #1. See the live benchmark.

Compare the same seeded scenes across Fast2D, Matter.js, Planck.js, and p2.js — Fast2D posts the lowest ms/step every time.

Open benchmark