Getting Started
Add one script tag and start using feature flags in 60 seconds.
Installation
CDN (recommended)
Add the script tag to your HTML. No install, no build step.
npm
If you're using a bundler or want the React integration:
Quick start
Create an HTML file with a boolean flag and a toolbar:
Open this file in your browser. A toggle button appears at the bottom-right corner. Click it to open the toolbar, flip the flag, and watch the banner appear and disappear.
What just happened
- The
<script>tag loaded Vibe Flags and registered the custom elements <vibe-flags-boolean>registered a flag calledshowBannerwith the store<vibe-flags-toolbar>discovered the flag and rendered a toggle switch- Toggling the switch updated
localStorageand re-evaluated the flag - Children stay hidden until the flag value matches — no flash of content
Add a select flag
Select flags let users choose between multiple options:
The toolbar shows a dropdown for the select flag. Only the active option's children are rendered.
Next steps
- Learn about Boolean Flags and Select Flags in detail
- Configure the Toolbar position and behavior
- Share flag states with URL Overrides
- Use flags in React with the React integration