feature-flags
هذا المحتوى غير متوفر بلغتك بعد.
Feature Flags Plugin
Section titled “Feature Flags Plugin”Feature flag service with targeting rules, user segments, and evaluation engine. Free: MIT licensed.
Install
Section titled “Install”nself plugin install feature-flagsWhat It Does
Section titled “What It Does”Enables toggling features per user, tenant, or custom segment without redeploying. Supports percentage rollouts, user targeting rules, and environment-specific flags. Evaluation happens server-side; the REST API serves flag decisions to your application.
Configuration
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
FEATURE_FLAGS_PORT | 3305 | Feature flags service port |
FEATURE_FLAGS_CACHE_TTL | 60 | Flag evaluation cache TTL (seconds) |
| Port | Purpose |
|---|---|
| 3305 | Feature flags REST API |
Database Tables
Section titled “Database Tables”2 tables added to your Postgres database:
np_feature_flags_flags: flag definitions and targeting rulesnp_feature_flags_segments: user segment definitions
Nginx Routes
Section titled “Nginx Routes”| Route | Target |
|---|---|
/feature-flags/ | Feature flags API |
GET /health: Health checkGET /flags: List all flagsPOST /flags: Create a flagPUT /flags/{key}: Update flag rulesGET /evaluate/{key}: Evaluate flag for a user contextPOST /evaluate/batch: Evaluate multiple flags at once