Giter Site home page Giter Site logo

cloudflags's Introduction

CloudFlags

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.

image

๐Ÿš€ Quick Start

  1. Create a KV namespace for the flags to be stored in and update the wrangler.toml file with the namespace ID.
  2. Make any changes you want to the wrangler.toml file and the codebase in general.
  3. npm run deploy or wrangler publish to deploy the worker.
  4. Protect admin routes below with Cloudflare Access.
  5. ๐Ÿšฉ๐Ÿ˜Ž๐Ÿ‘Œ

๐Ÿ“– API

GET /flags

Returns a list of all flags as a JSON array.

GET /flag/:name

Returns true or false depending on whether the flag is enabled or not.

GET /

Admin UI for managing flags, use your browser for this one ๐ŸŒ

POST /add

Takes a application/x-www-form-urlencoded body with a flag field and adds it to the list of flags (disabled).

POST /remove

Takes a application/x-www-form-urlencoded body with a flag field and removes it from the list of flags (disabled flags only).

POST /enable

Takes a application/x-www-form-urlencoded body with a flag field and enables it.

POST /disable

Takes a application/x-www-form-urlencoded body with a flag field and disables it.

cloudflags's People

Contributors

aprets avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.