Introducing String & Number Feature Flags

DarkFeature TeamDarkFeature Team
2 min read

Up until now, DarkFeature has focused on boolean flags — the simple true/false switch for rolling out features safely. It’s been powerful for gating access, managing risks, and controlling releases.

But software isn’t always black and white.
Sometimes, you need more than just on or off.

You can now create feature flags using String and Number types — available today in DarkFeature.

These new types give you richer control and open up new ways to configure, test, and personalize your product behavior — all without deploying new code.

String Flags UI showing boolean, string, and number optionsString Flags UI showing options for light, dark, and auto themes

Why String & Number Flags?

While booleans are great for binary toggles, real-world use cases often need more than just true or false.

With String and Number flags, you can:

  • Personalize experiences by selecting between named options (e.g., "light", "dark", or "auto").
  • Tweak behavior dynamically without code changes — like setting a performance threshold (200ms), pagination limit (25), or price tier ("premium").
  • Configure environments or modes from a single flag — such as "beta", "canary", or "legacy".
  • Power experiments and A/B tests by assigning weight values or toggling behaviors numerically.

This flexibility turns feature flags into dynamic configuration points — enabling safe experimentation, quicker iteration, and faster validation in production.

🔍 How It Works

Creating a string or number flag is just as simple as creating a boolean one.

  1. Go to your project and click Create Feature Flag.
  2. Choose String or Number as the flag type.
  3. Add default values, targeting rules, and conditions.
  4. Use the value in your code just like any other config.

Your existing integrations will continue to work seamlessly — no changes required in your SDK setup.

Got Feedback?

We'd love to hear from you. Whether you've got ideas, edge cases, or integration requests

@DarkFeatureHQDiscord

Thanks for being part of the journey.

with ❤️ from the DarkFeature Team