JavaScript Physics

Open-source JavaScript projects categorized as Physics

Top 20 JavaScript Physic Projects

  • matter-js

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

    Project mention: Draggable physics button? How would you create such an effect? | | 2023-05-16

    If you don't want to create your own physics engine, there are also existing ones like matter.js.

  • whitestorm.js

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

  • Klotho

    AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)

  • p2.js

    JavaScript 2D physics library

    Project mention: 8 Ball Pool - An online multiplayer billiards game against players or bots | | 2023-02-14

    Not sure if I'd do it again, but I used p2.js. I wanted to use a reliable physics engine that was determenistic to ensure I could synchronise it for multiplayer purposes (otherwise, two different clients see two different things). I had to adjust the settings quite a bit to make it work, and it has its limitations, but it came out pretty decent in the end I would say!

  • LayaAir

    LayaAir is an open-source 2D/3D engine. LayaAir Engine is designed for high performance games.LayaAir support TypeScript and JavaScript、ActionScript 3.0 programming language.Can develop once, publish for multi platform.

  • alien.js

    👽 Future web pattern

  • MainLoop.js

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

  • aframe-physics-system

    Physics system for A-Frame VR, built on CANNON.js.

    Project mention: A-Frame Camera Collision | | 2023-01-24

    I found it kind of overkill when I tried using it, but maybe it will help you:

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • quantum-game

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

    Project mention: Quantum Computing gaming concepts | | 2022-12-15
  • SpaceHuggers

    A roguelike platformer with destructible environments in 13KB of JavaScript

  • encounter

    Remaking the classic C64 game in WebGL.

    Project mention: In-browser retro-futuristic tank game | | 2022-08-07

    Wow this has a ton in common with my port of the C64 game ENCOUNTER,

    Great job on the aesthetics!

  • ElectronVisualized

    A web-based viewer and an API for atomic and molecular orbitals.

    Project mention: New Way to Visualize Atoms and Molecules: Electronify | | 2023-04-07

    Yes it is! Here’s the web backbone code for the server and the official progressive web app that i made. Both iOS and android apps were completey rewritten from scratch using expo (react native) and expo-three, but they still share the same server as the web ver. Mobile ver. github page

  • Sandboxels

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

    Project mention: Sandboxels 1.8.3 - Deserted Update | | 2023-05-26

    Play now!

  • inverted-pendulum

    Pendulum physics simulation

  • particle.js

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

    Project mention: Particle Physics Simulation | | 2022-12-04

    You can check the source code and a work-in-progress doc here

  • pqm

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

  • kg-uniphy

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

    Project mention: Show HN: A Mindmap of Physics | | 2022-11-17

    Is this still a work in progress? I'm curious on your thoughts on how someone would find, as an example, [0] to be a useful resource.


  • webxr-threejs-midi-visualizer

    WebXR, augmented reality MIDI data visualization, built with Three.js and Tone.js. See video:

  • 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

  • magic-three

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

    Project mention: Writing Javascript without a build system | | 2023-03-30

    Take a look [ECMA6 - NO BUILD - TYPE=MODULE] :

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

  • Sonar

    Write Clean JavaScript Code. Always.. Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

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). The latest post mention was on 2023-05-26.

JavaScript Physics related posts


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

Project Stars
1 matter-js 14,686
2 whitestorm.js 5,999
3 p2.js 2,525
4 LayaAir 1,334
5 alien.js 683
6 MainLoop.js 487
7 aframe-physics-system 478
8 quantum-game 336
9 SpaceHuggers 188
10 encounter 45
11 ElectronVisualized 44
12 Sandboxels 40
13 inverted-pendulum 22
14 particle.js 12
15 pqm 12
16 kg-uniphy 11
17 webxr-threejs-midi-visualizer 11
18 Projectile-Motion-Simulation 4
19 magic-three 2
20 Rocket-test 1
ONLYOFFICE Docs — document collaboration in your environment
Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises