Installations
npm install @hillworld/babylonjs-core
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
18.16.0
NPM Version
9.5.1
Score
81.2
Supply Chain
99.6
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Languages
TypeScript (85.97%)
HLSL (6.15%)
JavaScript (4.83%)
SCSS (1.46%)
Roff (1.07%)
HTML (0.46%)
FLUX (0.06%)
Developer
Download Statistics
Total Downloads
210
Last Day
2
Last Week
4
Last Month
10
Last Year
50
GitHub Statistics
23,559 Stars
44,857 Commits
3,469 Forks
539 Watching
11 Branches
541 Contributors
Bundle Size
3.97 MB
Minified
922.70 kB
Minified + Gzipped
Package Meta Information
Latest Version
6.12.2
Package Id
@hillworld/babylonjs-core@6.12.2
Unpacked Size
33.59 MB
Size
6.11 MB
File Count
3,616
NPM Version
9.5.1
Node Version
18.16.0
Publised On
25 Jul 2023
Total Downloads
Cumulative downloads
Total Downloads
210
Last day
100%
2
Compared to previous day
Last week
100%
4
Compared to previous week
Last month
900%
10
Compared to previous month
Last year
-68.8%
50
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
2
Babylon.js
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.
CDN
To look into our CDN bundled distribution, you can refer to the package babylonjs
npm
BabylonJS and its modules are published on npm as esNext modules with full typing support. To install, use:
1npm install @babylonjs/core --save
This will allow you to import BabylonJS entirely using:
1import * as BABYLON from '@babylonjs/core/Legacy/legacy';
or individual classes to benefit from enhanced tree shaking using :
1import { Scene } from '@babylonjs/core/scene'; 2import { Engine } from '@babylonjs/core/Engines/engine';
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 scoped on @babylonjs.
Usage
See our ES6 dedicated documentation:
1import { Engine } from "@babylonjs/core/Engines/engine"; 2import { Scene } from "@babylonjs/core/scene"; 3import { Vector3 } from "@babylonjs/core/Maths/math"; 4import { FreeCamera } from "@babylonjs/core/Cameras/freeCamera"; 5import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLight"; 6import { Mesh } from "@babylonjs/core/Meshes/mesh"; 7 8// Side-effects only imports allowing the standard material to be used as default. 9import "@babylonjs/core/Materials/standardMaterial"; 10// Side-effects only imports allowing Mesh to create default shapes (to enhance tree shaking, the construction methods on mesh are not available if the meshbuilder has not been imported). 11import "@babylonjs/core/Meshes/Builders/sphereBuilder"; 12import "@babylonjs/core/Meshes/Builders/boxBuilder"; 13import "@babylonjs/core/Meshes/Builders/groundBuilder"; 14 15const canvas = document.getElementById("renderCanvas") as HTMLCanvasElement; 16const engine = new Engine(canvas); 17var scene = new Scene(engine); 18 19// This creates and positions a free camera (non-mesh) 20var camera = new FreeCamera("camera1", new Vector3(0, 5, -10), scene); 21 22// This targets the camera to scene origin 23camera.setTarget(Vector3.Zero()); 24 25// This attaches the camera to the canvas 26camera.attachControl(canvas, true); 27 28// This creates a light, aiming 0,1,0 - to the sky (non-mesh) 29var light = new HemisphericLight("light1", new Vector3(0, 1, 0), scene); 30 31// Default intensity is 1. Let's dim the light a small amount 32light.intensity = 0.7; 33 34// Our built-in 'sphere' shape. Params: name, subdivs, size, scene 35var sphere = Mesh.CreateSphere("sphere1", 16, 2, scene); 36 37// Move the sphere upward 1/2 its height 38sphere.position.y = 2; 39 40// Our built-in 'ground' shape. Params: name, width, depth, subdivs, scene 41Mesh.CreateGround("ground1", 6, 6, 2, scene); 42 43engine.runRenderLoop(() => { 44 scene.render(); 45});
Documentation
Contributing
Please see the contribution guidelines.
Useful links
- Official web site: www.babylonjs.com
- Online playground to learn by experimentating
- Online sandbox where you can test your .babylon and glTF scenes with a simple drag'n'drop
- Online shader creation tool where you can learn how to create GLSL shaders
- 3DS Max exporter can be used to generate a .babylon file from 3DS Max
- Maya exporter can be used to generate a .babylon file from 3DS Max
- Blender exporter can be used to generate a .babylon file from Blender 3d
- Unity 5 (deprecated) exporter can be used to export your geometries from Unity 5 scene editor(animations are supported)
- glTF Tools by KhronosGroup
Features
To get a complete list of supported features, please visit our website.
No vulnerabilities found.
Reason
30 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: license.md:0
- Info: FSF or OSI recognized license: Apache License 2.0: license.md:0
Reason
0 existing vulnerabilities detected
Reason
Found 22/30 approved changesets -- score normalized to 7
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/stale.yml:1
- Info: no jobLevel write permissions found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
Project has not signed or included provenance with any releases.
Details
- Warn: release artifact 7.47.2 not signed: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197888370
- Warn: release artifact 7.47.1 not signed: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197667166
- Warn: release artifact 7.47.0 not signed: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197650405
- Warn: release artifact 7.46.0 not signed: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197518803
- Warn: release artifact 7.45.0 not signed: https://api.github.com/repos/BabylonJS/Babylon.js/releases/196356221
- Warn: release artifact 7.47.2 does not have provenance: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197888370
- Warn: release artifact 7.47.1 does not have provenance: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197667166
- Warn: release artifact 7.47.0 does not have provenance: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197650405
- Warn: release artifact 7.46.0 does not have provenance: https://api.github.com/repos/BabylonJS/Babylon.js/releases/197518803
- Warn: release artifact 7.45.0 does not have provenance: https://api.github.com/repos/BabylonJS/Babylon.js/releases/196356221
Reason
binaries present in source code
Details
- Warn: binary detected: packages/tools/babylonServer/public/ammo.wasm.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/basisTranscoder/1/basis_transcoder.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/basisTranscoder/basis_transcoder.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/draco_decoder.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/draco_decoder_gltf.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/draco_encoder.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/glslang/glslang.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/havok/HavokPhysics.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/1/msc_basis_transcoder.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/1/uastc_astc.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/1/uastc_bc7.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/1/uastc_r8_unorm.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/1/uastc_rg8_unorm.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/1/uastc_rgba8_srgb_v2.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/1/uastc_rgba8_unorm_v2.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/msc_basis_transcoder.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/uastc_astc.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/uastc_bc7.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/uastc_rgba32_srgb.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/ktx2Transcoders/uastc_rgba32_unorm.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/libktx.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/twgsl/twgsl.wasm:1
- Warn: binary detected: packages/tools/babylonServer/public/zstddec.wasm:1
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 23 are checked with a SAST tool
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/BabylonJS/Babylon.js/stale.yml/master?enable=pin
- Info: 0 out of 1 GitHub-owned GitHubAction dependencies pinned
Score
4.1
/10
Last Scanned on 2025-02-03
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