Draco3D is a library for compressing and decompressing 3D geometric meshes and point clouds, developed by Google to improve storage and transmission of 3D graphics. The NPM package version 1.5.7 provides Node.js bindings for the Draco encoder and decoder. It supports compression of points, connectivity, texture coordinates, normals, and other generic attributes. Differentiating from raw 3D formats, Draco significantly reduces file sizes while maintaining visual fidelity. The library is released as C++/JavaScript source code, with the NPM package offering pre-built decoders for Node.js and browser usage. Release cadence is stable with periodic updates aligned with the main Draco repository.
npm install draco3dNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic Draco decode and encode using Node.js: reads a .drc file, decodes to mesh, re-encodes with default settings, and writes output.
Use `const encoder = await DracoEncoderModule();` or wrap in async function.
Use ES module import syntax or set { type: 'module' } in package.json. For CJS, use dynamic import: `const { DracoEncoderModule } = await import('draco3d');`.Use `import { DracoEncoderModule } from 'draco3d'` instead.Call `DecoderModule.destroy(instance)` or use wrappers that manage memory.
Use `const decoder = await DracoDecoderModule();` then use `new decoder.Decoder();`.
Create buffer via `const buffer = new decoder.DecoderBuffer();` then call `buffer.Init(data, length);`.
Ensure draco3d is in node_modules and import from 'draco3d'. In bundlers, you may need to add fallback for 'fs' and 'path'.
No dependency data recorded yet.