# Recipes

> A recipe describes what data WorkLens should generate: entities, fields, rules and links, in one JSON file you keep in git.

Section: Recipes · Type: overview · Last updated: 2026-09-14

A recipe describes what data WorkLens should generate.

## The picture

Recipe (Entities · Fields · Rules · Links) → WorkLens (reads and enforces it) → Synthetic data (linked, rule-abiding rows)

## In this section

- [Entities](https://theworklens.com/docs/recipes/entities): How a recipe declares its tables — name, row count, fields, and the table-level constructs that shape whole rows.
- [Fields & types](https://theworklens.com/docs/recipes/fields): Every field key a recipe accepts, the 20 value types the engine generates, and how a field declares a checksum-valid identifier.
- [Relationships](https://theworklens.com/docs/recipes/relationships): How tables point at each other — ref, scope and fanout on a field, and the relationship kinds a recipe can declare.
- [Rules & constraints](https://theworklens.com/docs/recipes/rules): What must hold on every row — ranges, uniqueness, date order, conditional presence, and constraints across columns.
- [Derived fields](https://theworklens.com/docs/recipes/derived-fields): Columns worked out from other columns — same-row arithmetic, totals from a child table, and roll-ups through a hierarchy.
- [Scenarios](https://theworklens.com/docs/recipes/scenarios): One recipe, many datasets — named scenarios set rates for nulls, orphans, duplicates and other conditions; 21 archetypes to choose from.

## Related

- [Recipe schema](https://theworklens.com/docs/reference/recipe-schema): The 13 top-level keys of a recipe, the minimal example, and what the engine supports and does not — from the schema it serves to agents.
- [Recipe keys](https://theworklens.com/docs/reference/recipe-keys): Every key a WorkLens recipe can declare, grouped the way the engine groups them, with a plain-English line for each.
- [Examples](https://theworklens.com/docs/examples): See how real requirements become WorkLens recipes: four complete recipes shipped with the engine, each on its own page.

_← Previous: [Core concepts](https://theworklens.com/docs/getting-started/core-concepts) · Next: [Entities](https://theworklens.com/docs/recipes/entities) →_

_Canonical: https://theworklens.com/docs/recipes · This copy: https://theworklens.com/docs/recipes.md_
