Skip to content

Minimalist service for deterministic and state-less feature flags

Notifications You must be signed in to change notification settings

timhudson/micro-feature-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-feature-flags build status

Minimalist service for deterministic and state-less feature flags

micro-feature-flags uses deterministic hashing of feature:id to enable the safe rollout of features. You might use this to enable a new signup flow for a subset of users.

API

Request Body

  • features - feature name with enabled percent
  • id - id used to check for enabled features
{
  "id": "user-id",
  "features": {
    "feature-one": 20,
    "feature-two": 70,
    "another-feature": 15
  }
}

Response Body

{
  "feature-one": false,
  "feature-two": true,
  "another-feature": false
}

Example Request

$ curl localhost:3000 -d '{
  "id": "user-id",
  "features": {
    "feature-one": 20,
    "feature-two": 70,
    "another-feature": 15
  }
}'
{"feature-one":false,"feature-two":true,"another-feature":false}

About

Minimalist service for deterministic and state-less feature flags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published