{"_id":"@worldmatrix/wmx-runtime","name":"@worldmatrix/wmx-runtime","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@worldmatrix/wmx-runtime","version":"0.1.0","private":false,"description":"Batteries-included runtime helpers for loading WMX assets.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/worldmatrix/worldmatrix-private.git"},"homepage":"https://github.com/worldmatrix/worldmatrix-private#readme","bugs":{"url":"https://github.com/worldmatrix/worldmatrix-private/issues"},"keywords":["worldmatrix","runtime","threejs","gltf","streaming"],"type":"module","publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json"},"dependencies":{"@worldmatrix/wmx-core":"^0.1.0","@worldmatrix/wmx-three":"^0.1.0","@worldmatrix/wmx-three-streaming":"^0.1.0","meshoptimizer":"^0.25.0","three":"^0.182.0"},"devDependencies":{"typescript":"^5.8.2"},"_id":"@worldmatrix/wmx-runtime@0.1.0","gitHead":"52efde61891b8a4c1d4ae990a73b6868e9595632","_nodeVersion":"24.2.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-HJbooZURy+7ek6u193aPwnzyEBpbgW3icO7sZK6qRyOlPcRw0m04bp45gHuK+08pJ+uPb/+1LJDh0on0oO0Zpg==","shasum":"9e06527f34bb17f0e334c134f5a993a5920354f8","tarball":"https://registry.npmjs.org/@worldmatrix/wmx-runtime/-/wmx-runtime-0.1.0.tgz","fileCount":14,"unpackedSize":16008,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCTrlWFgRkPhHIWIJ/g8gfIRAF6cCraCF0qXtmfl2G8AAIgUS6xrY5kPAzJ9CoZ/hRUE0a3rYhLGG1sT4gbA0eBtek="}]},"_npmUser":{"name":"hkahlon","email":"harshdeepkahlon00@gmail.com"},"directories":{},"maintainers":[{"name":"hkahlon","email":"harshdeepkahlon00@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wmx-runtime_0.1.0_1771215029100_0.5860871599502429"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-16T04:10:29.043Z","0.1.0":"2026-02-16T04:10:29.256Z","modified":"2026-02-16T04:10:29.436Z"},"maintainers":[{"name":"hkahlon","email":"harshdeepkahlon00@gmail.com"}],"description":"Batteries-included runtime helpers for loading WMX assets.","homepage":"https://github.com/worldmatrix/worldmatrix-private#readme","keywords":["worldmatrix","runtime","threejs","gltf","streaming"],"repository":{"type":"git","url":"git+https://github.com/worldmatrix/worldmatrix-private.git"},"bugs":{"url":"https://github.com/worldmatrix/worldmatrix-private/issues"},"license":"MIT","readme":"# @worldmatrix/wmx-runtime\n\nRuntime helpers for loading WMX assets with decoder wiring and streaming support.\n\n## Install\n\n```bash\nnpm install @worldmatrix/wmx-runtime three meshoptimizer\n```\n\n## Usage\n\n```ts\nimport * as THREE from 'three';\nimport { createWMXRuntime } from '@worldmatrix/wmx-runtime';\n\nconst renderer = new THREE.WebGLRenderer({ antialias: true });\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(50, 1, 0.1, 1000);\n\nconst runtime = createWMXRuntime({ renderer });\n\n// Static\nconst gltf = await runtime.loadStatic('/wmx/my-asset/asset.wmx.json', { quality: 'medium' });\nscene.add((gltf as any).scene);\n\n// Streaming (if manifest has `manifest.streaming`)\nconst tileset = await runtime.loadStreamingTileset('/wmx/my-asset/asset.wmx.json');\nscene.add(tileset);\nconst manager = runtime.createStreamManager({\n  viewportHeightPx: renderer.domElement.clientHeight,\n  retention: 'cache',\n  disposeOutOfFrustumFrames: 30\n});\nmanager.add(tileset);\n\nfunction tick() {\n  camera.updateMatrixWorld(true);\n  tileset.updateMatrixWorld(true);\n  manager.update(camera);\n  renderer.render(scene, camera);\n  requestAnimationFrame(tick);\n}\ntick();\n```\n","readmeFilename":"README.md","_rev":"1-5ece993cdd10aacd47efb0773ff62c02"}