JavaScript Physics

Open-source JavaScript projects categorized as Physics

Top 23 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

    SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control. Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal 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. mujoco_wasm

    Simulate and Render MuJoCo Models in the Browser!

    Project mention: MuJoCo Demo | news.ycombinator.com | 2025-02-27
  9. 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
  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. SpaceHuggers

    A roguelike platformer with destructible environments in 13KB of JavaScript

  12. ElectronVisualized

    Public Archive: Beautiful and Elegant Quantum Mechanics Visualization.

  13. encounter

    Remaking the classic C64 game in WebGL.

  14. particle.js

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

  15. inverted-pendulum

    pendulum physics simulation

  16. pqm

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

  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. webxr-threejs-midi-visualizer

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

  19. kg-uniphy

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

  20. 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

  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. qm3d

    3D quantum wave packet engine. possibly the world's first open-source, browser-based 3D quantum wave packet simulator in JavaScript, bringing real-time quantum visualisation directly to anyone online.

    Project mention: QM3D Physics engine open source. | dev.to | 2025-10-20
  23. 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

  24. SKALE-Physics

    Immensely scalable 2D Arcade Physics Engine for massive simulation games (Dwarf Fortress, Rimworld, etc), (and multiplayer games) that need 100,000+ bodies.

    Project mention: How I created the fastest JavaScript Physics Engine. | dev.to | 2025-06-15
  25. 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.

  26. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream 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

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 - Stream
    getstream.io | 25 Dec 2025
    Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure. 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,180
2 matter-js 17,876
3 whitestorm.js 6,267
4 p2.js 2,685
5 MainLoop.js 542
6 quantum-game 353
7 mujoco_wasm 349
8 Sandboxels 312
9 SpaceHuggers 278
10 ElectronVisualized 74
11 encounter 51
12 particle.js 27
13 inverted-pendulum 24
14 pqm 15
15 matrix-engine 15
16 webxr-threejs-midi-visualizer 14
17 kg-uniphy 13
18 magic-three 12
19 2d-collision-simulator 6
20 qm3d 6
21 Projectile-Motion-Simulation 5
22 SKALE-Physics 3
23 Rocket-test 1

Sponsored
SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control
Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.
surveyjs.io