Planck.js is a JavaScript rewrite/port of the physics engine Box2D, designed to provide 2D rigid-body physics simulation usable directly in web contexts or any JavaScript environment. By offering collision detection, rigid-body dynamics, joints, and simulation capabilities, Planck.js makes it possible for developers to build physically realistic 2D games, simulations, or visualizations in browsers or Node.js without relying on native code. Its API mirrors Box2D’s concepts — bodies, fixtures, shapes, joints — which makes it familiar to users of classic Box2D, while being idiomatic for JavaScript developers. Because it's pure JavaScript, Planck.js integrates easily with HTML5 canvas, WebGL, or other browser-based rendering pipelines, facilitating smooth physics-driven games across platforms. It also is conducive to rapid prototyping and experimentation, since it avoids the complexity of compiling native libraries for web.

Features

  • 2D rigid-body physics simulation with collision detection, dynamics, and joints
  • Pure JavaScript implementation — works in browsers and any JS runtime without native dependencies
  • Familiar API modeled after Box2D (bodies, fixtures, shapes, joints) for ease of use if you know Box2D
  • Integrates easily with canvas, WebGL, HTML5 or other JS rendering pipelines
  • Suitable for games, simulations, or interactive visualizations needing realistic physics behavior
  • Good for rapid prototyping and cross-platform 2D physics in web contexts

Project Samples

Project Activity

See All Activity >

Categories

Game Engines

License

MIT License

Follow Planck.js

Planck.js Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Planck.js!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Game Engines

Registered

2025-12-01