Feature names
Feature names are slugs: lowercase, hyphen-separated identifiers. For example:dark-mode-uimax-upload-sizecheckout-v2-enabledrate-limit-per-minute
Feature names are case-sensitive.
dark-mode-ui and Dark-Mode-UI are treated as two different features. Use a consistent naming convention across your scope to avoid confusion.Supported value types
A feature’s default value — and any override value — can be any JSON-serializable type:
Choose the type that best fits how your application consumes the value. Boolean flags are the most common, but strings and objects let you ship full configuration payloads through the same system.
Creating a feature
1
Open a scope
In the Foff dashboard, navigate to Scopes and select the scope where you want to add the feature.
2
Add a feature
Click Add feature and enter a slug name — for example,
dark-mode-ui.3
Set the default value
Enter the default value that applies to all users unless overridden. For
dark-mode-ui, set the default to false to keep dark mode off by default.4
Save
Click Create. The feature is now live and queryable via the API or any Foff SDK.
Example: dark-mode-ui
After creation, your feature looks like this in the dashboard:
Any query for
dark-mode-ui returns false until you add an override for a specific hierarchy path.
Next steps
Once you have a feature with a default value, you can add overrides to return a different value for specific hierarchy paths.Overrides
Learn how to override a feature’s value for specific hierarchy levels.