Skip to content

About

Detent is a fast, simple and safe runtime-configuration system for feature flags, kill switches and live settings. It features:

  • Namespaced bool and int knobs.
  • Percentage rollouts with stable SHA-256 buckets.
  • Per-group forced values and per-group rollouts.
  • One atomic load, one lookup and one evaluation per read.
  • No network, disk, lock or allocation on the read path.
  • Pinned views for consistent multi-knob reads.
  • Strict validation off the read path.
  • Atomic whole-snapshot swaps; last known good on any failure.
  • Fail-fast on missing knobs, with baked defaults shipped alongside code.
  • Live updates from a snapshot file, or managed delivery from the authority.
  • A host-local managed agent and detent get for any language.
  • Authenticated, atomic, per-namespace transactions with compare-and-set.
  • Durable consensus with mutual TLS between fixed voters.
  • Authenticated delivery of snapshots and deltas into immutable local generations.
  • C++20 library, Python and Rust bindings, and a shell reader.
  • Linux, macOS and FreeBSD, with systemd, launchd and rc.d templates.

You can find the source code for Detent on GitHub.