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:| Type | Example |
|---|---|
| Boolean | false, true |
| String | "v2", "red" |
| Number | 100, 3.14 |
| Object | {"limit": 50, "unit": "mb"} |
Creating a feature
Open a scope
In the Foff dashboard, navigate to Scopes and select the scope where you want to add the feature.
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.Example: dark-mode-ui
After creation, your feature looks like this in the dashboard:
| Field | Value |
|---|---|
| Name | dark-mode-ui |
| Default value | false |
| Overrides | None (yet) |
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.