Modern TypeScript wrapper for the Nape 2D physics engine
Rigid bodies • Convex polygons • Circle shapes • Constraints • Collision callbacks • Spatial queries — all with a clean, typed API.
npm install @newkrok/nape-js
Click/drag on the canvas to interact. Pick a demo below.
Measured in your browser right now. Each test runs the physics step()
in a tight loop and reports the median time per step.
Press the button to start.