Features

A Feature is a named setting that you want to vary across your userbase. Features, along with Contexts, are one of the most important resources you will work with when using featuresd.

The anatomy of a Feature

A Feature is an object that has only the following two properties:

  • a key which uniquely identifies it,
  • and a type which determines what sorts of values it should take on.

Features do not themselves carry any values. Values are always assigned to a Context. For more information see, Feature values.

Feature types

Features may be assigned one of the following types:

  • flag, whose possible values are yes and no;
  • number, which works the same as numbers in JSON;
  • integer, which is restricted to numbers with no decimal places; and
  • string, which can take on any arbitrary text value.

Validation of the Feature type is applied when assigning a value to a Feature within a Context.