Gathering detailed insights and metrics for babylonjs
Gathering detailed insights and metrics for babylonjs
Gathering detailed insights and metrics for babylonjs
Gathering detailed insights and metrics for babylonjs
@babylonjs/core
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
@babylonjs/loaders
For usage documentation please visit https://doc.babylonjs.com/features/featuresDeepDive/importers/loadingFileTypes/.
babylonjs-gltf2interface
A typescript declaration of babylon's gltf2 interface.
@babylonjs/gui
Babylon.js GUI module =====================
Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
npm install babylonjs
Typescript
Module System
Node Version
NPM Version
86.5
Supply Chain
100
Quality
95.3
Maintenance
100
Vulnerability
100
License
TypeScript (86.64%)
HLSL (5.84%)
JavaScript (4.54%)
SCSS (1.53%)
Roff (0.97%)
HTML (0.44%)
FLUX (0.04%)
Total Downloads
3,466,839
Last Day
462
Last Week
12,426
Last Month
52,429
Last Year
671,630
Apache-2.0 License
24,265 Stars
45,575 Commits
3,539 Forks
538 Watchers
15 Branches
561 Contributors
Updated on Jun 30, 2025
Minified
Minified + Gzipped
Latest Version
8.14.1
Package Id
babylonjs@8.14.1
Unpacked Size
54.21 MB
Size
10.22 MB
File Count
17
NPM Version
10.8.2
Node Version
20.19.2
Published on
Jun 30, 2025
Cumulative downloads
Total Downloads
Last Day
6.7%
462
Compared to previous day
Last Week
-9.1%
12,426
Compared to previous week
Last Month
-7.3%
52,429
Compared to previous month
Last Year
-2.8%
671,630
Compared to previous year
Getting started? Play directly with the Babylon.js API using our playground. It also contains a lot of samples to learn how to use it.
Any questions? Here is our official forum.
For the preview release, use the following URLs:
BabylonJS and its modules are published on npm with full typing support. To install, use:
1npm install babylonjs --save
This will allow you to import BabylonJS entirely using:
1import * as BABYLON from 'babylonjs';
or individual classes using:
1import { Scene, Engine } from 'babylonjs';
If using TypeScript, don't forget to add 'babylonjs' to 'types' in tsconfig.json
:
1 ... 2 "types": [ 3 "babylonjs", 4 "anotherAwesomeDependency" 5 ], 6 ...
To add a module, install the respective package. A list of extra packages and their installation instructions can be found on the babylonjs user on npm.
See Getting Started:
1// Get the canvas DOM element 2var canvas = document.getElementById('renderCanvas'); 3// Load the 3D engine 4var engine = new BABYLON.Engine(canvas, true, {preserveDrawingBuffer: true, stencil: true}); 5// CreateScene function that creates and return the scene 6var createScene = function(){ 7 // Create a basic BJS Scene object 8 var scene = new BABYLON.Scene(engine); 9 // Create a FreeCamera, and set its position to {x: 0, y: 5, z: -10} 10 var camera = new BABYLON.FreeCamera('camera1', new BABYLON.Vector3(0, 5, -10), scene); 11 // Target the camera to scene origin 12 camera.setTarget(BABYLON.Vector3.Zero()); 13 // Attach the camera to the canvas 14 camera.attachControl(canvas, false); 15 // Create a basic light, aiming 0, 1, 0 - meaning, to the sky 16 var light = new BABYLON.HemisphericLight('light1', new BABYLON.Vector3(0, 1, 0), scene); 17 // Create a built-in "sphere" shape; its constructor takes 6 params: name, segment, diameter, scene, updatable, sideOrientation 18 var sphere = BABYLON.Mesh.CreateSphere('sphere1', 16, 2, scene, false, BABYLON.Mesh.FRONTSIDE); 19 // Move the sphere upward 1/2 of its height 20 sphere.position.y = 1; 21 // Create a built-in "ground" shape; its constructor takes 6 params : name, width, height, subdivision, scene, updatable 22 var ground = BABYLON.Mesh.CreateGround('ground1', 6, 6, 2, scene, false); 23 // Return the created scene 24 return scene; 25} 26// call the createScene function 27var scene = createScene(); 28// run the render loop 29engine.runRenderLoop(function(){ 30 scene.render(); 31}); 32// the canvas/window resize event handler 33window.addEventListener('resize', function(){ 34 engine.resize(); 35});
Please see the Contributing Guidelines.
To get a complete list of supported features, please visit Babylon.js website.
No vulnerabilities found.
Reason
30 commit(s) and 13 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 22/30 approved changesets -- score normalized to 7
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
binaries present in source code
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More