Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Feature Flags.

Features

  • Boolean flags — Simple on/off toggles for any feature
  • Percentage rollouts — Gradual rollout via deterministic hashing (consistent per user)
  • User targeting — Rules matching on user attributes (plan, email, role, etc.)
  • A/B testing — Multiple variants with consistent assignment per user
  • Kill switch — Emergency one-call disable for any flag
  • Scheduled flags — Auto-enable/disable at specified times
  • Match operators — eq, neq, contains, in, gt, lt
  • Evaluate all — Bootstrap all flags for a user in one call (great for frontends)
  • JSON persistence — Save/load flag configs and evaluation logs

Requirements

  • Python 3.10+
  • No external dependencies (stdlib only)
Chapter 2

Quick Start

Follow this guide to get Feature Flags up and running in your environment.

Quick Start

bash
# Start with demo flags
python src/main.py --init-demo

# Custom port
python src/main.py --port 8003

Then try the API:

bash
# List all flags
curl http://localhost:8003/api/flags

# Evaluate a flag for a user
curl -X POST http://localhost:8003/api/flags/new_dashboard/evaluate \
  -H "Content-Type: application/json" \
  -d '{"context": {"user_id": "user_123", "plan": "pro", "email": "user@example.com"}}'

# Kill switch
curl -X POST http://localhost:8003/api/flags/new_dashboard/kill

# Revive
curl -X POST http://localhost:8003/api/flags/new_dashboard/revive

API Endpoints

MethodPathDescription
GET/api/flagsList all flags
POST/api/flagsCreate a new flag
POST/api/flags/:key/evaluateEvaluate flag for a user context
POST/api/flags/:key/evaluate-allEvaluate ALL flags for a user
POST/api/flags/:key/killEmergency kill switch
POST/api/flags/:key/reviveRe-enable a killed flag
Chapter 3
🔒 Available in full product

Project Structure

You’ve reached the end of the free preview

Get the full Feature Flags and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Feature Flags v1.0.0 — Free Preview