Analysis updated 2026-07-03
Study how a modular browser physics engine is structured by reading the PhysicsJS source code before forking it.
Add gravity, bouncing, and collision detection to a browser-based game using the pre-built files in the dist directory.
Use PhysicsJS as a reference for understanding how to build a plugin-based JavaScript library architecture.
Create interactive browser animations where objects fall and collide realistically without a full game engine.
| wellcaffeinated/physicsjs | techxuexi/techxuexi-js | toddmotto/echo | |
|---|---|---|---|
| Stars | 3,699 | 3,698 | 3,698 |
| Language | JavaScript | JavaScript | JavaScript |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 1/5 | 1/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Project is unmaintained since beta 0.7.0, pre-built files are in the dist directory so you can use it without building from source.
PhysicsJS is a JavaScript library for simulating physical interactions in a web browser. It was designed to be modular and easy to extend, meaning you can include only the parts you need rather than loading an entire monolithic library. Common use cases include browser-based games or interactive animations that need objects to fall, bounce, collide, or follow realistic motion. The library reached version 0.7.0 in beta before the author stopped active development. The README is upfront that this project is no longer maintained, and it points readers toward Matter.js as a more actively developed alternative that covers the same ground and more. For anyone who still wants to use PhysicsJS, the built distribution files are in the repository's dist directory, and the project's website provided installation and usage instructions. The source files are in the src directory, and building from source required Grunt, a JavaScript build tool. Running Grunt compiles the source and runs unit tests, a watch mode was available to rebuild automatically as you edited files. The project is licensed under the MIT license, so it can be used freely in commercial and personal projects. It was created by Jasper Palfree and is no longer accepting active contributions, though the code remains available for anyone who wants to fork it or study how a modular physics engine for the browser can be structured. Given its unmaintained status, new projects would generally be better served by a library that is still receiving updates.
An archived, modular JavaScript physics library for adding realistic collisions, gravity, and motion to browser games and animations, no longer maintained, with Matter.js recommended instead.
Mainly JavaScript. The stack also includes JavaScript, Grunt.
MIT license, use freely in personal or commercial projects, just keep the copyright notice.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.