{"_id":"@borellion/wonderland-sdk","_rev":"4-d73b78e3221a591da6004ca38f80e528","name":"@borellion/wonderland-sdk","dist-tags":{"latest":"4.1.2"},"versions":{"4.0.0":{"name":"@borellion/wonderland-sdk","version":"4.0.0","author":{"name":"Borellion"},"_id":"@borellion/wonderland-sdk@4.0.0","maintainers":[{"name":"limbofeather","email":"elijah@borellion.com"}],"homepage":"https://github.com/borellion/sdk#readme","bugs":{"url":"https://github.com/borellion/sdk/issues"},"dist":{"shasum":"e36d00d6b62b93bceee95aa673408cd7ebe14b67","tarball":"https://registry.npmjs.org/@borellion/wonderland-sdk/-/wonderland-sdk-4.0.0.tgz","fileCount":3,"integrity":"sha512-WrL1NxAQ+ZL30RFzFc2FWclpKQAHwMmYy56RjXNLDKiWQrYroipqgdmiywm4t/6R0Tbb8dzxovmwySbOeESLiA==","signatures":[{"sig":"MEYCIQCxFU23VyPeV6xXgBAnPlosHJuz1L09rGp0FE0wAOlWcQIhAO3nPT+iC55xNnwmU0Ip2ioCXHiDaGhB4g+WbMW4BaTA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2069169},"main":"dist/borellion-wonderland-sdk.js","type":"module","exports":{".":"./dist/borellion-wonderland-sdk.js"},"gitHead":"e689499152fad1a3a3746b8b582ec70c89d741d2","scripts":{"build":"esbuild src/index.js --minify --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*","build-dev":"esbuild src/index.js --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*"},"_npmUser":{"name":"limbofeather","email":"elijah@borellion.com"},"repository":{"url":"git+https://github.com/borellion/sdk.git","type":"git","directory":"wonderland"},"_npmVersion":"11.4.2","description":"Wonderland Engine SDK for Borellion Banner integration.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"gl-matrix":"^3.4.3","@wonderlandengine/api":"^1.0.0","@wonderlandengine/components":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.17.18"},"wonderlandengine":{},"_npmOperationalInternal":{"tmp":"tmp/wonderland-sdk_4.0.0_1778778480192_0.2197903611306289","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@borellion/wonderland-sdk","version":"4.1.0","author":{"name":"Borellion"},"_id":"@borellion/wonderland-sdk@4.1.0","maintainers":[{"name":"limbofeather","email":"elijah@borellion.com"}],"homepage":"https://github.com/borellion/sdk#readme","bugs":{"url":"https://github.com/borellion/sdk/issues"},"dist":{"shasum":"c656ed1c03e978307bb653341af3e16746d0ea77","tarball":"https://registry.npmjs.org/@borellion/wonderland-sdk/-/wonderland-sdk-4.1.0.tgz","fileCount":4,"integrity":"sha512-I14QPMli8V9tU/nHnclQ2AegqUyVH+o/QMgYIX7nm+pkB78IH6U8TuXA2HnX30rq6y5KF/bZ2h2wY5Dp0SkB5g==","signatures":[{"sig":"MEUCIHBj7Zhc7ZozgXZGuTHKjLLrlBpGiLB2nDEIDTcpGEbTAiEA0GE8IWBfr4fhzRIkHzkaxCXoUOBC3mTeyulKggfF1EQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2071985},"main":"dist/borellion-wonderland-sdk.js","type":"module","exports":{".":"./dist/borellion-wonderland-sdk.js"},"gitHead":"b8e80ffb49968a7911dfaf6797d99c0f42042732","scripts":{"build":"esbuild src/index.js --minify --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*","build-dev":"esbuild src/index.js --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*"},"_npmUser":{"name":"limbofeather","email":"elijah@borellion.com"},"repository":{"url":"git+https://github.com/borellion/sdk.git","type":"git","directory":"wonderland"},"_npmVersion":"11.4.2","description":"Wonderland Engine SDK for Borellion Banner integration.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"gl-matrix":"^3.4.3","@wonderlandengine/api":"^1.0.0","@wonderlandengine/components":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.17.18"},"wonderlandengine":{},"_npmOperationalInternal":{"tmp":"tmp/wonderland-sdk_4.1.0_1779464646501_0.8170039241967288","host":"s3://npm-registry-packages-npm-production"}},"4.1.1":{"name":"@borellion/wonderland-sdk","version":"4.1.1","author":{"name":"Borellion"},"_id":"@borellion/wonderland-sdk@4.1.1","maintainers":[{"name":"limbofeather","email":"elijah@borellion.com"}],"homepage":"https://github.com/borellion/sdk#readme","bugs":{"url":"https://github.com/borellion/sdk/issues"},"dist":{"shasum":"002d24a7573e4716d47507f19aa8232f6f9663b3","tarball":"https://registry.npmjs.org/@borellion/wonderland-sdk/-/wonderland-sdk-4.1.1.tgz","fileCount":4,"integrity":"sha512-9db1qTpLLWmuxpNiPCKYqziewsF8G1Ic4PePOTMpZDrLasJ5pB1Jxh1lSgWDwWGV0tCecqq02XNCty80tDPWvA==","signatures":[{"sig":"MEYCIQDy32kiVTyV9xgGPGDHTohTkJtdgyPLxmg6WAYii9zecgIhALrDKhML0R6ZPsUQF8nEWOQQ6eRua8YFnpnwf6lHL54W","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2075558},"main":"dist/borellion-wonderland-sdk.js","type":"module","exports":{".":"./dist/borellion-wonderland-sdk.js"},"gitHead":"614017cc67df18f3d54c11ec6b4f435f0c1fdddf","scripts":{"build":"esbuild src/index.js --minify --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*","build-dev":"esbuild src/index.js --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*"},"_npmUser":{"name":"limbofeather","email":"elijah@borellion.com"},"repository":{"url":"git+https://github.com/borellion/sdk.git","type":"git","directory":"wonderland"},"_npmVersion":"11.4.2","description":"Wonderland Engine SDK for Borellion Banner integration.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"gl-matrix":"^3.4.3","@wonderlandengine/api":"^1.0.0","@wonderlandengine/components":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.17.18"},"wonderlandengine":{},"_npmOperationalInternal":{"tmp":"tmp/wonderland-sdk_4.1.1_1783053621698_0.9554205092588335","host":"s3://npm-registry-packages-npm-production"}},"4.1.2":{"name":"@borellion/wonderland-sdk","version":"4.1.2","description":"Wonderland Engine SDK for Borellion Banner integration.","main":"dist/borellion-wonderland-sdk.js","exports":{".":"./dist/borellion-wonderland-sdk.js"},"type":"module","scripts":{"build":"esbuild src/index.js --minify --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*","build-dev":"esbuild src/index.js --sourcemap --format=esm --bundle --outfile=dist/borellion-wonderland-sdk.js --external:@wonderlandengine/*"},"repository":{"type":"git","url":"git+https://github.com/borellion/sdk.git","directory":"wonderland"},"wonderlandengine":{},"author":{"name":"Borellion"},"publishConfig":{"access":"public"},"dependencies":{"@wonderlandengine/api":"^1.0.0","@wonderlandengine/components":"^1.0.0","gl-matrix":"^3.4.3"},"devDependencies":{"esbuild":"^0.17.18"},"_id":"@borellion/wonderland-sdk@4.1.2","gitHead":"7e6fd3702b4896dff988a09b2a442a177ad917de","bugs":{"url":"https://github.com/borellion/sdk/issues"},"homepage":"https://github.com/borellion/sdk#readme","_nodeVersion":"24.3.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-fb+75vZtwfjZneXvbkPq3zAGi6DbcG83K66NWiXyr6O9s03hv6Ioip3RBxmjheil0wmN5MXYryt+gvLOa73IMg==","shasum":"3387a03ff1d64db33eb8a10b1e8305e67d6006c3","tarball":"https://registry.npmjs.org/@borellion/wonderland-sdk/-/wonderland-sdk-4.1.2.tgz","fileCount":4,"unpackedSize":2076643,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDk0fcrOeFTzevb9r5wU7uR4jpJ3aZZnaMoHg33DLpFTgIhANghC4uHEeYPFZQ4hsB9NkCarwqBLLQ6nGJU5h3EwxPB"}]},"_npmUser":{"name":"limbofeather","email":"elijah@borellion.com"},"directories":{},"maintainers":[{"name":"limbofeather","email":"elijah@borellion.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wonderland-sdk_4.1.2_1783736084189_0.7573661253193515"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-14T17:08:00.025Z","modified":"2026-07-11T02:14:44.699Z","4.0.0":"2026-05-14T17:08:00.408Z","4.1.0":"2026-05-22T15:44:06.654Z","4.1.1":"2026-07-03T04:40:21.891Z","4.1.2":"2026-07-11T02:14:44.562Z"},"bugs":{"url":"https://github.com/borellion/sdk/issues"},"author":{"name":"Borellion"},"homepage":"https://github.com/borellion/sdk#readme","repository":{"type":"git","url":"git+https://github.com/borellion/sdk.git","directory":"wonderland"},"description":"Wonderland Engine SDK for Borellion Banner integration.","maintainers":[{"name":"limbofeather","email":"elijah@borellion.com"}],"readme":"# @borellion/wonderland-sdk\n\nMonetize your Wonderland Engine WebXR experiences with Borellion banner ads.\n\n## Installation\n\n```sh\nnpm install @borellion/wonderland-sdk\n```\n\nRegister the component with your Wonderland Engine app:\n\n```js\nimport { Borellion } from '@borellion/wonderland-sdk';\n\nengine.registerComponent(Borellion);\n```\n\n## Quick Start\n\nAdd a mesh object to your scene and attach the `borellion` component:\n\n```js\nconst bannerObject = engine.scene.addObject();\nbannerObject.addComponent(Borellion, {\n  adUnit: 'YOUR_AD_UNIT_ID',\n  format: 5, // 5 = medium-rectangle\n});\n```\n\nThe component requires a `mesh` component on the same object. `cursor-target` and `collision` components are created automatically if not present.\n\n## Properties\n\n| Property | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `adUnit` | yes | — | Your ad unit ID |\n| `format` | no | `square` | `billboard`, `medium-rectangle`, `mobile-phone-interstitial`, `tall`, `wide`, or `square` |\n| `style` | no | `transparent` | `standard`, `minimal`, or `transparent` |\n| `scaleToRatio` | no | `true` | Scale object width to match banner aspect ratio |\n| `beacon` | no | `true` | Set to `false` to opt out of analytics |\n| `prebid` | no | `true` | Set to `false` to disable Prebid and fetch ads directly |\n| `customDefaultImage` | no | — | Custom image URL when no ad is running |\n| `customDefaultCtaUrl` | no | — | Custom CTA URL when no ad is running |\n\n## Banner Formats\n\n| Format | Dimensions |\n|--------|-----------|\n| `medium-rectangle` | 300 x 250 |\n| `billboard` | 970 x 250 |\n| `mobile-phone-interstitial` | 750 x 1334 |\n\n## Testing Locally\n\nAdd `?debug=true` to your URL to load sample ads during development.\n\n## Documentation\n\nFull integration guide: [borellion.com/docs](https://www.borellion.com/docs/guides/developers/integrate/wonderland)\n","readmeFilename":"README.md"}