Registry / 3d-model-ts-library-rollup
A TypeScript library for 3D model loading and rendering using rollup as the bundler. The latest version is 1.3.6. It provides a simple API to initialize with a key and supports loading 3D models. Includes TypeScript type definitions. The release cadence is unknown but updates are infrequent. Key differentiators: simple API, integrated with rollup for bundling, and supports both ESM and CJS via unpkg CDN.
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
initKey
✓ import { initKey } from '3d-model-ts-library-rollup'
✗ const initKey = require('3d-model-ts-library-rollup')
ESM-only; CommonJS require will fail. Use dynamic import if needed.
default (library)
✓ import Lib from '3d-model-ts-library-rollup'
✗ import * as Lib from '3d-model-ts-library-rollup'
The package exports a default object containing all functions. Named exports are also available.
loadModel
✓ import { loadModel } from '3d-model-ts-library-rollup'
Named export for loading a 3D model.
Demonstrates initializing the library with a key and loading a 3D model from a URL.
import { initKey, loadModel } from '3d-model-ts-library-rollup';
// Initialize with your API key
initKey(process.env.API_KEY ?? 'YOUR_KEY_HERE');
// Load a 3D model
const model = await loadModel('https://example.com/model.glb');
console.log('Model loaded:', model);
Errors
Common errors & fixes
Cannot find module '3d-model-ts-library-rollup'
The package is not installed or is not in node_modules.
fixRun 'npm install 3d-model-ts-library-rollup' to install the package.
initKey is not a function
Using CommonJS require instead of ESM import.
fixUse 'import { initKey } from '3d-model-ts-library-rollup'' instead of require. Audit
Dependencies
threerequired3D rendering engine