
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A compact, strongly-typed TypeScript library to read, write and analyze PLY (Polygon File Format) 3D meshes. Inspired by python-plyfile and focused on practical utilities for avatar and mesh processing: parsing, serialization, volume estimation, axis-aligned bounds and simple sizing helpers.
Read an ASCII PLY provided as lines:
import { readPlyFromLines } from 'ply-js';
const ply = readPlyFromLines(lines);
const vertexElement = ply.elements.find(e => e.name === 'vertex');
const faceElement = ply.elements.find(e => e.name === 'face' || e.name === 'polygon');
Estimate mass programmatically (with an optional calibration object):
import { estimateMass } from 'ply-js';
const result = estimateMass(points, faces, { objectType: 'avatar', calibration: myCalibration });
console.log(result.massKg, result.heightM);
Per-scanner calibrations are supported and persisted as JSON. See CALIBRATION.md for instructions. Example scripts live in examples/ and are runnable via the package scripts.
pnpm calibrate # run examples/calibrate.ts to create a calibration JSON
pnpm apply:calibration # run examples/apply-calibration.ts to demonstrate applying a saved calibration
readPlyFromLines(lines: string[]): PlyDocumentreadBinaryPly(buffer: Buffer): PlyDocumentwritePly(ply: PlyDocument): stringwriteBinaryPly(ply: PlyDocument): BuffercomputeAABB(points: Point[]): AABBcomputeCentroid(points: Point[]): PointcomputeVolumeFromFaces(points: Point[], faces: Face[]): numberestimateMass(points, faces, opts?): { massKg, heightM, volumes }Refer to the dist typings and src files for full signatures and examples.
See CONTRIBUTING.md for contribution guidelines. This project is licensed under the GNU General Public License v3 (GPL-3.0-or-later) — see COPYING and package.json for details.
FAQs
A TypeScript port based on python-plyfile for reading and writing .ply files
We found that ply-js 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.