
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
This package is still under development. The usage may be destructively changed.
本パッケージは開発の途上にあるため、使用方法が大幅に変更される可能性があります。
VRM file loader and utilities for three.js, written in TypeScript.
VRM 形式の 3D モデルを three.js で描画するためのパッケージです。
yarn add three
Install the package from npm and import it.
yarn add three-vrm
This TypeScript code loads a VRM file with VRMLoader.
You have to create a Camera, a Light, and a WebGLRenderer to render the Scene.
See the usage of three.js.
import * as THREE from 'three';
import { VRM, VRMLoader } from 'three-vrm';
const scene = new THREE.Scene();
const vrmLoader = new VRMLoader();
vrmLoader.load(
'model.vrm',
(vrm: VRM) => {
scene.add(vrm.model);
// Render the scene.
},
(progress: ProgressEvent) => {
console.log(progress.loaded / progress.total);
},
(error: ErrorEvent) => {
console.error(error);
}
);
Alternatively, if you work with HTML and a copy of three.js, you may copy only node_modules/three-vrm/lib/index.js and include it.
Rename the file as necessary.
This file assigns all exported classes to THREE.
<script src="js/three.js"></script>
<script src="js/three-vrm.js"></script>
<script>
var scene = new THREE.Scene();
var vrmLoader = new THREE.VRMLoader();
vrmLoader.load(
'model.vrm',
function(vrm) {
scene.add(vrm.model);
// Render the scene.
},
function(progress) {
console.log(progress.loaded / progress.total);
},
function(error) {
console.error(error);
}
);
</script>
A loader for VRM resources.
new VRMLoader ( manager? : THREE.LoadingManager )Creates a new VRMLoader.
.load ( url : string, onLoad? : Function, onProgress? : Function, onError? : Function ) : voidLoads a VRM model.
Model data loaded by VRMLoader.
.asset : objectA glTF asset property.
.model : THREE.Object3DA Object3D.
.parser : objectA GLTFParser created by GLTFLoader.
.userData : objectA dictionary object with extension data.
Raw json of VRM extensions is in .userData.gltfExtensions.VRM.
.materialProperties : ArrayAn array of VRM material properties.
.humanoid : objectVRM bone mapping.
.meta : objectVRM model information.
.blendShapeMaster : objectVRM blendShapeMaster with an array of BlendShapeGroups to group BlendShape.
.firstPerson : objectVRM first-person settings.
.secondaryAnimation : objectVRM swaying object settings.
.getNode ( index : number ) : THREE.Object3DReturns a reference to the Object3D in .model, corresponding to the node index.
.setBlendShapeWeight ( meshIndex : number, blendShapeIndex : number, value : number ) : voidMorphs the mesh.
.setBlendShapeGroupWeight ( index : number, value : number ) : voidMorphs all meshes in the BlendShapeGroup.
A Physics handler for VRM.
const clock = new THREE.Clock();
const physics = new VRMPhysics(vrm);
function render() {
const delta = clock.getDelta();
physics.update(delta);
renderer.render(scene, camera);
}
new VRMPhysics ( vrm : VRM )Creates a new VRMPhysics.
.update ( deltaTime : number ) : VRMPhysicsdeltaTime - Time in second.
Advances Physics calculation and updates bones.
yarn
yarn start
Open localhost:8080 with a browser.
FAQs
VRM file loader for three.js.
We found that three-vrm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.