Gathering detailed insights and metrics for @babylonjs/core
Gathering detailed insights and metrics for @babylonjs/core
Gathering detailed insights and metrics for @babylonjs/core
Gathering detailed insights and metrics for @babylonjs/core
babylonjs
* We recommend using the [Core ES6-supported version](https://www.npmjs.com/package/@babylonjs/core);
@hillworld/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.
bitbybit-core
Bit By Bit Developers Core CAD API to Program Geometry
@babylonjs/smart-filters
Babylon.js Smart Filter core and common block library
npm install @babylonjs/core
Typescript
Module System
Node Version
NPM Version
TypeScript (86.63%)
HLSL (6.18%)
JavaScript (4.08%)
SCSS (1.49%)
Roff (1.1%)
HTML (0.46%)
FLUX (0.06%)
Total Downloads
5,894,681
Last Day
1,995
Last Week
39,473
Last Month
163,744
Last Year
1,872,265
23,417 Stars
44,722 Commits
3,450 Forks
540 Watching
13 Branches
532 Contributors
Latest Version
7.41.1
Package Id
@babylonjs/core@7.41.1
Unpacked Size
49.17 MB
Size
9.45 MB
File Count
5,459
NPM Version
10.8.2
Node Version
20.18.0
Publised On
20 Dec 2024
Cumulative downloads
Total Downloads
Last day
53.1%
1,995
Compared to previous day
Last week
0.8%
39,473
Compared to previous week
Last month
-5.7%
163,744
Compared to previous month
Last year
21.4%
1,872,265
Compared to previous year
2
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.
To look into our CDN bundled distribution, you can refer to the package babylonjs
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.
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});
Please see the contribution guidelines.
To get a complete list of supported features, please visit our website.
No vulnerabilities found.
Reason
30 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
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
binaries present in source code
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-12-23
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