Super basic feature flag service with a simple API and UI
๐ชจ Hyper Simplistic - Simplistic & concise API and basic UI
โก Blazing Fast with Cloudflare Workers and KV on the edge
Feel free to look through the tiny codebase to understand how it works.
- Create a KV namespace for the flags to be stored in and update the
wrangler.toml
file with the namespace ID. - Make any changes you want to the
wrangler.toml
file and the codebase in general. npm run deploy
orwrangler publish
to deploy the worker.- Protect admin routes below with Cloudflare Access.
- ๐ฉ๐๐
Returns a list of all flags as a JSON array.
Returns true
or false
depending on whether the flag is enabled or not.
Admin UI for managing flags, use your browser for this one ๐
Takes a application/x-www-form-urlencoded
body with a flag
field and adds it to the list of flags (disabled).
Takes a application/x-www-form-urlencoded
body with a flag
field and removes it from the list of flags (disabled flags only).
Takes a application/x-www-form-urlencoded
body with a flag
field and enables it.
Takes a application/x-www-form-urlencoded
body with a flag
field and disables it.