
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@3ditles/glb
Advanced tools
A TypeScript library for parsing and processing GLB 3D model files.
npm install @3dtiles/glb
import { parseGLB, validateGLB } from '@3dtiles/glb';
import { readFileSync } from 'fs';
// Read GLB file as binary
const data = readFileSync('model.glb');
const glbFile = parseGLB(new Uint8Array(data.buffer));
// Validate the parsed file
if (validateGLB(glbFile)) {
console.log('Valid GLB file');
console.log('JSON content:', glbFile.jsonContent);
console.log('Has binary chunk:', !!glbFile.binaryChunk);
} else {
console.error('Invalid GLB file');
}
import { serializeGLB, GLBFile } from '@3dtiles/glb';
import { writeFileSync } from 'fs';
// Create or modify a GLBFile object
const glbFile: GLBFile = {
header: {
magic: 0x46546C67,
version: 2,
length: 0 // Will be calculated automatically
},
jsonContent: {
scenes: [{ nodes: [] }],
nodes: []
},
// ... add other chunks as needed
};
// Serialize to binary
const binaryData = serializeGLB(glbFile);
// Write to file
writeFileSync('new-model.glb', binaryData);
parseGLB(data: Uint8Array): GLBFileParses binary data into a GLBFile structure.
validateGLB(file: GLBFile): booleanValidates the structure and integrity of a parsed GLBFile.
serializeGLB(file: GLBFile): Uint8ArraySerializes a GLBFile back into binary format.
Provides the core functionality with methods:
parse(data: Uint8Array): GLBFilevalidate(file: GLBFile): booleanserialize(file: GLBFile): Uint8ArrayMIT
FAQs
A TypeScript library for parsing and processing GLB 3D model files
We found that @3ditles/glb demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.