{"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,"search_vec":"'1.3.6':24 '3d':1,10,38 'api':29,56 'bundl':61 'bundler':19 'cadenc':46 'cdn':70 'cjs':67 'definit':43 'differenti':54 'esm':65 'includ':40 'infrequ':52 'initi':31 'integr':57 'javascript':71 'key':34,53 'latest':21 'librari':4,8 'load':12,37 'model':2,11,39 'provid':26 'releas':45 'render':14 'rollup':5,16,59 'simpl':28,55 'support':36,63 'ts':3 'type':42 'typescript':7,41,72 'unknown':48 'unpkg':69 'updat':50 'use':15 'version':22 'via':68","created_at":"2026-04-27T16:56:58.291801+00:00","updated_at":"2026-04-27T16:56:58.291801+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/3d-model-ts-library-rollup","openapi_spec":null,"status_page":null,"smithery":null,"categories":[],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-26","install_tag":null}}