{"_id":"@brofam.app/backinstockbro-storefront","name":"@brofam.app/backinstockbro-storefront","dist-tags":{"next":"0.1.0","latest":"0.1.0"},"versions":{"0.1.0":{"name":"@brofam.app/backinstockbro-storefront","version":"0.1.0","description":"Framework-neutral storefront client for BackInStockBro headless Shopify storefronts","type":"module","license":"MIT","publishConfig":{"access":"public","tag":"next","registry":"https://registry.npmjs.org/"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"engines":{"node":">=18"},"_id":"@brofam.app/backinstockbro-storefront@0.1.0","gitHead":"dba083886b6aff388601ef24348e443f267e2c28","types":"./index.d.ts","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-PZeka3PuP0Ubp/q07eH2QxhPCcq0c0fa2Yt1fM8934Z1Qx6GYV3KzRDvkmJX6bi5laOnsd+KGyOTVbryfuwwMA==","shasum":"afa42d8cfba5194f5b9d42f2db409b46755c34c6","tarball":"https://registry.npmjs.org/@brofam.app/backinstockbro-storefront/-/backinstockbro-storefront-0.1.0.tgz","fileCount":6,"unpackedSize":11789,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDftdf3x+oqJCVuG7+NuRwdnNf3AxQb19K4zol26l7/qwIgJopsZ+mYaxqtuvYqn1gLOEjokGByYSvyxFEvE1UkJ+k="}]},"_npmUser":{"name":"brofam","email":"matt@brofam.app"},"directories":{},"maintainers":[{"name":"brofam","email":"matt@brofam.app"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/backinstockbro-storefront_0.1.0_1789105814379_0.7150706244495104"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-11T05:50:14.208Z","0.1.0":"2026-09-11T05:50:14.512Z","modified":"2026-09-11T05:50:14.761Z"},"maintainers":[{"name":"brofam","email":"matt@brofam.app"}],"description":"Framework-neutral storefront client for BackInStockBro headless Shopify storefronts","license":"MIT","readme":"# BackInStockBro storefront SDK (preview)\n\nThis framework-neutral client implements the browser contract for Hydrogen and other headless Shopify storefronts. Version 0.1.0 is an MIT-licensed preview prepared for the `next` tag. Publication is pending; use the following command only after release is confirmed.\n\n```sh\nnpm install @brofam.app/backinstockbro-storefront@next\n```\n\nThe publishable key identifies an installed shop but provides no Shopify Admin API authority. The API must bind it to merchant-configured origins, issue short-lived challenge state, rate-limit requests, and independently validate every subscription. Do not substitute a shop domain or caller-supplied tenant ID for that verification.\n\n```js\nimport { createBackInStockBroClient } from \"@brofam.app/backinstockbro-storefront\";\n\nconst backInStock = createBackInStockBroClient({\n  endpoint: \"https://public.backinstockbro.app\",\n  publishableKey: process.env.PUBLIC_BACKINSTOCKBRO_KEY\n});\n```\n\nThe preview contract provides `prepareNotification` and `subscribe`. Read catalog availability from Shopify's Storefront API. The SDK performs no tracking and stores no credentials or recipient data in the browser.\n\nA Hydrogen reference component is available at `examples/hydrogen/BackInStockForm.tsx`. Keep the publishable key in public runtime configuration, register the exact storefront origin in BackInStockBro Admin, and never expose Shopify Admin or private Storefront API tokens to this client.\n","readmeFilename":"README.md","_rev":"1-fd1fe049a90e4390c58141de7ddcea63"}