Registry / 3d-model-ts-library-rollup

3d-model-ts-library-rollup

JSON →
library1.3.6jsnpmunverified

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.

npm install 3d-model-ts-library-rollup
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
musl
node 18223 runs
build_error
glibc
node 18223 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);
Debug
Known issues
breakinginitKey must be called before any other function; otherwise, API calls will fail.
fix
Ensure initKey is called at the very beginning of your application.
affects: >=1.0.0
deprecatedThe cjs bundle is deprecated in favor of esm.
fix
Switch to using the esm build via import instead of require.
affects: >=1.3.0
gotchaThe CDN script tag uses a specific version; using older versions may cause compatibility issues.
fix
Always use the latest version or specify a version explicitly.
affects: <1.2.3
Errors
Common errors & fixes
Cannot find module '3d-model-ts-library-rollup'
The package is not installed or is not in node_modules.
fix
Run 'npm install 3d-model-ts-library-rollup' to install the package.
initKey is not a function
Using CommonJS require instead of ESM import.
fix
Use 'import { initKey } from '3d-model-ts-library-rollup'' instead of require.
Upgrade
Version history
1.3.6latest on PyPI
Audit
Dependencies
threerequired3D rendering engine
Agent activity
89 hits · last 30 days
node
12
claudebot
4
ahrefsbot
3
amazonbot
1
bytedance
1
Resources