JavaScript Physics

Open-source JavaScript projects categorized as Physics

Top 20 JavaScript Physic Projects

  1. popmotion

    Simple animation libraries for delightful user interfaces

    Project mention: Top 10 JavaScript Animation Libraries in 2025 | dev.to | 2025-03-10

    Check Popmotion 🔥

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.

    SurveyJS logo
  3. matter-js

    a 2D rigid body physics engine for the web ▲● ■

  4. whitestorm.js

    :rocket: 🌪 Super-fast 3D framework for Web Applications 🥇 & Games 🎮. Based on Three.js

  5. p2.js

    JavaScript 2D physics library

  6. MainLoop.js

    Provides a well-constructed main loop useful for JavaScript games and other animated or time-dependent applications.

  7. quantum-game

    Quantum Game (old version) - a puzzle game with real quantum mechanics in a browser

  8. SpaceHuggers

    A roguelike platformer with destructible environments in 13KB of JavaScript

  9. Civic Auth

    Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.

    Civic Auth logo
  10. Sandboxels

    Sandboxels is an in-browser falling sand simulation game, with mechanics such as heat simulation, electricity, density, chemical reactions, fire, and over 500 unique elements to play with.

  11. ElectronVisualized

    Public Archive: Beautiful and Elegant Quantum Mechanics Visualization.

  12. encounter

    Remaking the classic C64 game in WebGL.

  13. inverted-pendulum

    pendulum physics simulation

  14. particle.js

    A JavaScript 3D n-body particle simulator using a simplified model of Particle Physics.

  15. pqm

    Physical Quantities and Measures (PQM) is a Node and browser package for dealing with numbers with units

  16. webxr-threejs-midi-visualizer

    WebXR, augmented reality MIDI data visualization, built with Three.js and Tone.js. See video: https://youtu.be/lIecCGtbqSM

  17. matrix-engine

    webGL2 implementation (opengles2/3). ClassObject scene draw orientend framework based on crazzy fast glmatrix engine. ECMA 6 JS Project in base. Obj loader, raycast, BVH animation etc.

    Project mention: Matrix-roulette - Physics + Server game regime | dev.to | 2025-04-23
  18. kg-uniphy

    Physics, if you already knew physics. Open source Physics book Obsidian vault.

  19. magic-three

    Using power of Three.js and Ammo.js .Class oriented , script type module. No build no extra time spend needed. Networking with webRTC/Node.js signaling server. First person shooter Multiplayer solution

  20. Projectile-Motion-Simulation

    A simple projectile motion simulator made made using matter.js , it looks cool and ofc gonna help you see physically accurate projectile motion

  21. 2d-collision-simulator

    A simple collision simulator made in javascript to simulate elastic and inelastic collisions.

    Project mention: Built a 2d collision simulator | dev.to | 2025-04-16
  22. Rocket-test

    This is a simulation of a solid propellant rocket . The situations is a straight accent and descent , that means angle of launch is perpendicular to the surface and acceleration due to gravity is assumed constant throughout.

  23. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript Physics discussion

Log in or Post with

JavaScript Physics related posts

  • Matrix-roulette - Physics + Server game regime

    2 projects | dev.to | 23 Apr 2025
  • Draggable physics button? How would you create such an effect?

    1 project | /r/CodingHelp | 16 May 2023
  • New Way to Visualize Atoms and Molecules: Electronify

    3 projects | /r/chemistry | 7 Apr 2023
  • Atomic Orbitals On Your Phone

    1 project | /r/chemistry | 7 Apr 2023
  • My chemistry teachers quite comical representation of electron orbitals

    1 project | /r/chemistry | 5 Apr 2023
  • Hiring - FullStack - Remote $150-180k Base + Bonus

    1 project | /r/rails | 25 Jan 2023
  • A-Frame Camera Collision

    2 projects | /r/WebVR | 24 Jan 2023
  • A note from our sponsor - SurveyJS
    surveyjs.io | 13 May 2025
    Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more. Learn more →

Index

What are some of the best open-source Physic projects in JavaScript? This list will help you:

# Project Stars
1 popmotion 20,075
2 matter-js 17,408
3 whitestorm.js 6,205
4 p2.js 2,668
5 MainLoop.js 536
6 quantum-game 346
7 SpaceHuggers 274
8 Sandboxels 242
9 ElectronVisualized 72
10 encounter 50
11 inverted-pendulum 25
12 particle.js 21
13 pqm 15
14 webxr-threejs-midi-visualizer 13
15 matrix-engine 12
16 kg-uniphy 12
17 magic-three 10
18 Projectile-Motion-Simulation 5
19 2d-collision-simulator 5
20 Rocket-test 1

Sponsored
JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?