{"id":20886,"library":"3d-model-ts-library-rollup","title":"3D Model TS Library (Rollup)","description":"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.","status":"active","version":"1.3.6","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install 3d-model-ts-library-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add 3d-model-ts-library-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add 3d-model-ts-library-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"3D rendering engine","package":"three","optional":false}],"imports":[{"note":"ESM-only; CommonJS require will fail. Use dynamic import if needed.","wrong":"const initKey = require('3d-model-ts-library-rollup')","symbol":"initKey","correct":"import { initKey } from '3d-model-ts-library-rollup'"},{"note":"The package exports a default object containing all functions. Named exports are also available.","wrong":"import * as Lib from '3d-model-ts-library-rollup'","symbol":"default (library)","correct":"import Lib from '3d-model-ts-library-rollup'"},{"note":"Named export for loading a 3D model.","wrong":"","symbol":"loadModel","correct":"import { loadModel } from '3d-model-ts-library-rollup'"}],"quickstart":{"code":"import { initKey, loadModel } from '3d-model-ts-library-rollup';\n\n// Initialize with your API key\ninitKey(process.env.API_KEY ?? 'YOUR_KEY_HERE');\n\n// Load a 3D model\nconst model = await loadModel('https://example.com/model.glb');\nconsole.log('Model loaded:', model);","lang":"typescript","description":"Demonstrates initializing the library with a key and loading a 3D model from a URL."},"warnings":[{"fix":"Ensure initKey is called at the very beginning of your application.","message":"initKey must be called before any other function; otherwise, API calls will fail.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Switch to using the esm build via import instead of require.","message":"The cjs bundle is deprecated in favor of esm.","severity":"deprecated","affected_versions":">=1.3.0"},{"fix":"Always use the latest version or specify a version explicitly.","message":"The CDN script tag uses a specific version; using older versions may cause compatibility issues.","severity":"gotcha","affected_versions":"<1.2.3"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install 3d-model-ts-library-rollup' to install the package.","cause":"The package is not installed or is not in node_modules.","error":"Cannot find module '3d-model-ts-library-rollup'"},{"fix":"Use 'import { initKey } from '3d-model-ts-library-rollup'' instead of require.","cause":"Using CommonJS require instead of ESM import.","error":"initKey is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}