Repolode
BabylonJS

BabylonJS/Babylon.js

A JavaScript/TypeScript 3D game and rendering engine that runs in the browser on WebGL, WebGPU and WebXR.

Open-source alternative to:Unity WebGL

Stars
26,213
Forks
3,713
Open issues
23
Last commit
8 hours ago

What is it?

Babylon.js is an open-source 3D engine for building games, interactive scenes and visualizations that run in a web browser. It is written in TypeScript and distributed as a JavaScript framework with full typing support, so it can be installed from npm, loaded from a CDN for experiments, or bundled into a larger application.

The engine provides a scene graph with cameras, lights, meshes and built-in shape builders, and can import glTF and .babylon scene files. Its rendering targets include WebGL, WebGPU and WebXR for virtual and augmented reality, and it exposes Web Audio for sound. A public playground and sample collection let developers test API calls in the browser before writing code.

The project's documentation covers setup, the npm ES6 packages for tree shaking, and a set of exporters for 3ds Max, Maya and Blender. The CDN is intended for learning and small experiments rather than production use.

Key features

  • 01Renders 3D scenes with WebGL, WebGPU and WebXR support.
  • 02Imports glTF and .babylon scene files.
  • 03Provides built-in mesh builders, cameras, lights and materials.
  • 04Ships as npm packages with TypeScript typings and ES6 modules for tree shaking.
  • 05Includes an online playground and many samples for learning the API.

Use cases

  • Building browser-based 3D games or interactive experiences.
  • Creating web visualizations and product viewers with 3D models.
  • Developing WebXR applications for VR and AR headsets.
  • Prototyping 3D ideas quickly in the online playground before writing a project.

Quick start

  1. 1

    Install Babylon.js from npm

    npm install babylonjs --save
  2. 2

    Import Babylon.js in your code

    import * as BABYLON from 'babylonjs';
  3. 3

    Create an engine, scene and render loop using the usage example from the README

Things to know

  • The CDN is not meant for production use, so you must host the packages yourself for real apps.

Topics

FAQ

What is Babylon.js?
A JavaScript/TypeScript 3D game and rendering engine that runs in the browser on WebGL, WebGPU and WebXR. Babylon.js is an open-source 3D engine for building games, interactive scenes and visualizations that run in a web browser. It is written in TypeScript and distributed as a JavaScript framework with full typing support, so it can be installed from npm, loaded from a CDN for experiments, or bundled into a larger application.
Is Babylon.js free to use? What license does it have?
Babylon.js is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is Babylon.js still maintained?
Actively maintained. The last commit to Babylon.js was on Oct 22, 2026.
What can I use Babylon.js for?
Building browser-based 3D games or interactive experiences. Creating web visualizations and product viewers with 3D models. Developing WebXR applications for VR and AR headsets. Prototyping 3D ideas quickly in the online playground before writing a project.
How do I install Babylon.js?
Install Babylon.js from npm: npm install babylonjs --save Import Babylon.js in your code: import * as BABYLON from 'babylonjs'; Create an engine, scene and render loop using the usage example from the README
Where can I get Babylon.js?
The source code and installation instructions are on GitHub: https://github.com/BabylonJS/Babylon.js

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects