Service Layer low complexity Shared Component backend
0
Dependencies
2
Dependents
3
Entities
0
Integrations

Description

Loads the static feature registry file that defines all known feature keys, their default states, human-readable descriptions, and documentation URLs. Acts as the single source of truth for what features exist in the platform, preventing arbitrary keys from being persisted.

Feature: Feature Toggles

feature-registry-loader

Responsibilities

  • Load and parse the static feature registry JSON/YAML file at startup
  • Provide feature metadata (description, default state, docs URL) by key
  • Validate incoming feature keys against known registry entries
  • Expose the full registry for UI rendering

Interfaces

loadRegistry(): FeatureRegistry
getFeatureMetadata(featureKey: string): FeatureMetadata | null
getAllFeatureKeys(): string[]
isKnownFeatureKey(featureKey: string): boolean
getDefaultState(featureKey: string): boolean

Relationships

Dependents (2)

Components that depend on this component