BarakoCMS.FeatureFlags
0.2.0
dotnet add package BarakoCMS.FeatureFlags --version 0.2.0
NuGet\Install-Package BarakoCMS.FeatureFlags -Version 0.2.0
<PackageReference Include="BarakoCMS.FeatureFlags" Version="0.2.0" />
<PackageVersion Include="BarakoCMS.FeatureFlags" Version="0.2.0" />
<PackageReference Include="BarakoCMS.FeatureFlags" />
paket add BarakoCMS.FeatureFlags --version 0.2.0
#r "nuget: BarakoCMS.FeatureFlags, 0.2.0"
#:package BarakoCMS.FeatureFlags@0.2.0
#addin nuget:?package=BarakoCMS.FeatureFlags&version=0.2.0
#tool nuget:?package=BarakoCMS.FeatureFlags&version=0.2.0
<div align="center"> <img src="https://raw.githubusercontent.com/BaryoDev/barakoCMS/master/assets/icon.png" width="96" height="96" alt="BarakoCMS.FeatureFlags logo" /> <h1>BarakoCMS.FeatureFlags</h1> <p><em>Ship it dark, turn it on for some people, then everyone.</em></p> </div>
Create a flag, toggle it, and target it — by tenant, by user, or by percentage rollout. Flags are global with per-tenant targeting, and every decision is made server-side.
Enable it
builder.Services.AddBarakoCMS(builder.Configuration, modules =>
{
modules.Add(new BarakoCMS.FeatureFlags.FeatureFlagsModule());
});
var app = builder.Build();
app.UseBarakoCMS();
Endpoints
| Method & path | Purpose | Access |
|---|---|---|
GET /api/feature-flags |
Flags as evaluated for the caller | Any signed-in user |
GET /api/feature-flags/admin |
Every flag with its targeting rules | Admin / SuperAdmin |
POST /api/feature-flags/admin |
Create or update a flag | Admin / SuperAdmin |
POST /api/feature-flags/admin/{key}/toggle |
Flip a flag | Admin / SuperAdmin |
DELETE /api/feature-flags/admin/{key} |
Remove a flag | Admin / SuperAdmin |
GET /api/feature-flags returns decisions, not rules — the client never learns why it was included,
and cannot flip itself in by editing a response.
A flag is not access control
Use a flag to decide whether a feature is available. Keep using roles to decide whether a caller is allowed. A flag that hides an admin button still leaves the endpoint reachable.
Part of barakoCMS
This is an optional module for barakoCMS, an open-source
headless CMS for .NET 8. Every module is published under the barakocms-module tag, so a single
search on nuget.org returns the whole set.
Contributions are welcome — including a module icon or other design work. See CONTRIBUTING.md.
Licensed under MPL-2.0.
If barakoCMS is useful to you, a star on the repository helps other people find it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- AspNetCore.HealthChecks.Npgsql (>= 8.0.2)
- AspNetCore.HealthChecks.System (>= 9.0.0)
- AspNetCore.HealthChecks.UI (>= 8.0.2)
- AspNetCore.HealthChecks.UI.Client (>= 8.0.1)
- AspNetCore.HealthChecks.UI.InMemory.Storage (>= 8.0.1)
- BarakoCMS (>= 3.21.0)
- BCrypt.Net-Next (>= 4.2.0)
- FastEndpoints (>= 5.21.2)
- FastEndpoints.Security (>= 5.21.2)
- FastEndpoints.Swagger (>= 5.21.2)
- IdentityModel (>= 7.0.0)
- KubernetesClient (>= 18.0.13)
- Marten (>= 8.37.4)
- Microsoft.Extensions.Caching.Memory (>= 8.0.1)
- Microsoft.Extensions.Http.Resilience (>= 10.9.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.22.0)
- Otp.NET (>= 1.4.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Serilog.Sinks.File (>= 7.0.0)
- System.IdentityModel.Tokens.Jwt (>= 8.22.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.