single source of truth

The one agreed place where a piece of information is maintained, so every copy is generated from it rather than edited by hand.

In more detail

For a design system the token files are the single source of truth for visual values, and the package exports map is the single source of truth for what a library exposes. Everything else is generated or derived. This prevents copies from drifting apart.

Examples

A shared schema or OpenAPI document from which types, validators and clients are generated.
In the stream lessons the Kafka topic is the source of truth and every view is a derived cache.
In React the owner component holds the state and passes it down as props.

Related terms

Taught in

References