{"_id":"@brightblur/bbp-compositor","name":"@brightblur/bbp-compositor","dist-tags":{"next":"0.1.0-alpha.1","latest":"0.1.0-alpha.1"},"versions":{"0.1.0-alpha.1":{"name":"@brightblur/bbp-compositor","version":"0.1.0-alpha.1","description":"Deterministic, DOM-free RGBA composition for BrightBlur Protocol images","license":"Apache-2.0","private":false,"repository":{"type":"git","url":"git+https://github.com/brightblur/brightblur-protocol.git","directory":"packages/bbp-compositor"},"homepage":"https://protocol.brightblur.app/","bugs":{"url":"https://github.com/brightblur/brightblur-protocol/issues"},"publishConfig":{"access":"public"},"type":"module","main":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"devDependencies":{"typescript":"^5.9.3","vite-plus":"^0.2.1"},"scripts":{"build":"vp pack src/index.ts --format esm --out-dir dist --dts --sourcemap","check":"tsc --noEmit","test":"vp test"},"_id":"@brightblur/bbp-compositor@0.1.0-alpha.1","_integrity":"sha512-8lwXAR3Qz1nOh/3ho7wVnUuxkiMeprmenm1xCL1LGLxSvHF1Vv3f+YiHvVunCfg40TGMV4yJYuORr/3Ta1LypQ==","_resolved":"/tmp/bbp-release-alpha1.nOaobf/brightblur-bbp-compositor-0.1.0-alpha.1.tgz","_from":"file:/tmp/bbp-release-alpha1.nOaobf/brightblur-bbp-compositor-0.1.0-alpha.1.tgz","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-8lwXAR3Qz1nOh/3ho7wVnUuxkiMeprmenm1xCL1LGLxSvHF1Vv3f+YiHvVunCfg40TGMV4yJYuORr/3Ta1LypQ==","shasum":"daaea8e1c5180f7abc133688f7c536eed8aeb763","tarball":"https://registry.npmjs.org/@brightblur/bbp-compositor/-/bbp-compositor-0.1.0-alpha.1.tgz","fileCount":6,"unpackedSize":23860,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCiyjWIEEMLkcZuZufkSlBrk1vN5Lv47renCsv7oIRktQIhANC/52fQiEVKUf9C5YjsWMOeZfhks9vmHS1E4MnWXB46"}]},"_npmUser":{"name":"joeinnes","email":"joe@joeinn.es"},"directories":{},"maintainers":[{"name":"joeinnes","email":"joe@joeinn.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bbp-compositor_0.1.0-alpha.1_1784363486447_0.29671369195534036"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-18T08:31:26.277Z","0.1.0-alpha.1":"2026-07-18T08:31:26.605Z","modified":"2026-07-18T08:31:26.821Z"},"maintainers":[{"name":"joeinnes","email":"joe@joeinn.es"}],"description":"Deterministic, DOM-free RGBA composition for BrightBlur Protocol images","homepage":"https://protocol.brightblur.app/","repository":{"type":"git","url":"git+https://github.com/brightblur/brightblur-protocol.git","directory":"packages/bbp-compositor"},"bugs":{"url":"https://github.com/brightblur/brightblur-protocol/issues"},"license":"Apache-2.0","readme":"# `@brightblur/bbp-compositor`\n\nDeterministic, DOM-free RGBA composition for BBP regions and intersections.\nIt contains no image codecs, cryptography, key handling, canvas code, or UI.\n\n```sh\nnpm install @brightblur/bbp-compositor\n```\n\n```ts\nimport { compositeBbpImage } from '@brightblur/bbp-compositor';\n\nconst revealed = compositeBbpImage(safeBaseRgba, [\n\t{ kind: 'region', image: openedRegionRgba, bbox: openedRegion.bbox },\n\t{ kind: 'intersection', image: openedIntersectionRgba, bbox: openedIntersection.bbox }\n]);\n```\n\nThe inputs are not mutated. Bounding boxes use normalised BBP coordinates.\nLayers use deterministic nearest-neighbour sampling and source-over alpha\nblending. Regions are always applied before intersections; source order is\npreserved within each kind.\n\nApplications remain responsible for decoding encoded image bytes into RGBA,\npainting or encoding the result, cancellation, watermarking, and resource\nlimits. The package is suitable for browser main threads and workers.\n","readmeFilename":"README.md","_rev":"1-dff4b56c6ebe11fee3dfb5b750382023"}