Feature flags, gradual rollouts and A/B tests without a SaaS.
Overview
Feature flags and A/B experiments with no vendor and no infrastructure: you own the config, this evaluates it. Deterministic bucketing (same user always gets the same result), percentage rollouts, targeting rules and weighted variants. Synchronous — evaluate right in render.
Install
$ npm install @lacspace/flags
Quick example
@lacspace/flagsts
flags.isEnabled("new-ui", { key: user.id })
Returns true / false
Tips
A flag with rules but no rollout defaults to off for unmatched users — set an explicit rollout for a percentage.
Zero-dependency and isomorphic — safe to import on the server, in the browser, on the edge and in React Native. It tree-shakes, so you only ship what you import.
Looking for the complete API and more examples? The npm page and GitHub README carry the full reference — or grab the PDF.