{"_id":"@bakaburg24/decisioning-flag","name":"@bakaburg24/decisioning-flag","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bakaburg24/decisioning-flag","version":"0.1.0","description":"Tiny rollout-gate for the decisioning SDK. Hash-based stable per-user bucketing with an env-var fallback. No A/B tracking — just a gate.","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"keywords":["feature-flag","rollout","decisioning","browser-sdk"],"author":{"name":"bakaburg24"},"license":"MIT","homepage":"https://github.com/bakaburg24/identity/tree/main/packages/decisioning-flag#readme","repository":{"type":"git","url":"git+https://github.com/bakaburg24/identity.git","directory":"packages/decisioning-flag"},"bugs":{"url":"https://github.com/bakaburg24/identity/issues"},"sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^22","typescript":"^5"},"scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc --noEmit","test":"tsc -p tsconfig.test.json && node --test dist-test/flag.test.js"},"_id":"@bakaburg24/decisioning-flag@0.1.0","_integrity":"sha512-KGMTs+15eABAJ5GCyvz+s77MgUvgF7S7jPn1vnSO3jYZpxW0IVOYIzvXePQh9BipX+kF/K6dLCDGohPL/INhkQ==","_resolved":"/private/var/folders/g7/q5sv_7ss0mx66xg69js28kv40000gn/T/fe655a744b8621be9606ce0bc059e2f6/bakaburg24-decisioning-flag-0.1.0.tgz","_from":"file:bakaburg24-decisioning-flag-0.1.0.tgz","_nodeVersion":"24.5.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-KGMTs+15eABAJ5GCyvz+s77MgUvgF7S7jPn1vnSO3jYZpxW0IVOYIzvXePQh9BipX+kF/K6dLCDGohPL/INhkQ==","shasum":"b33d961c9502b4289e5aa6f7cdce8bf7992d9048","tarball":"https://registry.npmjs.org/@bakaburg24/decisioning-flag/-/decisioning-flag-0.1.0.tgz","fileCount":11,"unpackedSize":16054,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC0hhA/TM6KJgSrzx0UzlQDzgeHE4ynGmiRBePxo+YY2AIhANfFaMIzseOZR7Qt4KnBFRbbzHrDULRkC5evQSePL/hX"}]},"_npmUser":{"name":"bakaburg24","email":"bakaburg24@gmail.com"},"directories":{},"maintainers":[{"name":"bakaburg24","email":"bakaburg24@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/decisioning-flag_0.1.0_1778533109693_0.318413562370665"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-11T20:58:29.636Z","0.1.0":"2026-05-11T20:58:29.853Z","modified":"2026-05-11T20:58:30.059Z"},"maintainers":[{"name":"bakaburg24","email":"bakaburg24@gmail.com"}],"description":"Tiny rollout-gate for the decisioning SDK. Hash-based stable per-user bucketing with an env-var fallback. No A/B tracking — just a gate.","homepage":"https://github.com/bakaburg24/identity/tree/main/packages/decisioning-flag#readme","keywords":["feature-flag","rollout","decisioning","browser-sdk"],"repository":{"type":"git","url":"git+https://github.com/bakaburg24/identity.git","directory":"packages/decisioning-flag"},"author":{"name":"bakaburg24"},"bugs":{"url":"https://github.com/bakaburg24/identity/issues"},"license":"MIT","readme":"# @bakaburg24/decisioning-flag\n\nTiny rollout-gate for `@bakaburg24/decisioning-js`. Hash-based stable\nper-user bucketing with an env-var fallback. **No A/B tracking** — this\nis just a gate, not a feature-flag platform.\n\n```ts\nimport { DecisioningFlag } from '@bakaburg24/decisioning-flag';\n\nconst flag = new DecisioningFlag({\n  configUrl: process.env.DECISIONING_FLAG_URL,\n  fallback: process.env.DECISIONING_FLAG_DEFAULT === 'true',\n  rolloutKey: anonymousId,\n});\n\nawait flag.load();\n\nif (flag.enabled) {\n  // initialise the decisioning SDK\n}\n```\n\nThe remote config returns `{ enabled: boolean, rolloutPercent: 0-100 }`.\nBucket assignment is deterministic (`fnv1a(key) % 100 < rolloutPercent`),\ncached in `localStorage` for 5 minutes, and falls back to the supplied\ndefault on any fetch error.\n","readmeFilename":"README.md","_rev":"1-7eb708bd0ee763732d3a0457254b9141"}