# WorkLens > WorkLens turns a recipe — a JSON file declaring tables, fields, rules and relationships — into deterministic synthetic test data on your own machine, and writes a receipt stating what was asked for and what was made. The same recipe and seed produce the same bytes on any machine. WorkLens generation runs in the browser or locally through the CLI and MCP server; user files do not leave the device through the generation data path. The website has ordinary analytics and, for people who sign up, an email address. WorkLens is not open source: the recipe format is an open specification and the verifier is being released under Apache 2.0 as a separate distribution; the engine, website and MCP server are closed. ## Documentation - [WorkLens Docs](https://theworklens.com/docs): Generate deterministic synthetic test data locally, with proof. The documentation for the studio, the CLI, the SDK and the MCP server. ### Getting started - [Getting Started](https://theworklens.com/docs/getting-started): Go from zero to synthetic data in about five minutes: open the studio or the CLI, load a recipe, generate, keep the receipt. - [What is WorkLens?](https://theworklens.com/docs/getting-started/what-is-worklens): What WorkLens is, what it makes, and the one idea underneath it: a recipe in, evidence out. - [How WorkLens works](https://theworklens.com/docs/getting-started/how-it-works): Every source WorkLens reads, what the engine does with it, and the artifacts that come out with a receipt — the whole picture in one diagram. - [Quickstart](https://theworklens.com/docs/getting-started/quickstart): A first dataset in the browser in a few minutes: try a sample, generate, download the data and its receipt. - [Core concepts](https://theworklens.com/docs/getting-started/core-concepts): The nine words the rest of the docs assume: recipe, entity, field, relationship, rule, scenario, pack, seed and receipt. ### Build data - [Recipes](https://theworklens.com/docs/recipes): A recipe describes what data WorkLens should generate: entities, fields, rules and links, in one JSON file you keep in git. - [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. - [Generate](https://theworklens.com/docs/generate): Turn a validated recipe into deterministic synthetic data: seeds, output formats, and what a run writes. - [Seeds & determinism](https://theworklens.com/docs/generate/seeds): Same recipe, same seed, same bytes — on any machine. What that guarantee covers, and the three things that change the output. - [Output formats](https://theworklens.com/docs/generate/output-formats): What a run can write: CSV, JSON, SQL and nested documents from the CLI and SDK, plus fixed-width files for recipes that declare a layout. - [Packs](https://theworklens.com/docs/packs): Local names, identifiers and industry vocabularies a recipe can require, resolved per run — bundled for Australia, supplied as files for anywhere else. - [Locale packs](https://theworklens.com/docs/packs/locale): Names, companies, streets, suburbs and bank codes for a region come from a locale pack you register. None ships with WorkLens; examples live in the repository. - [Domain recipes](https://theworklens.com/docs/packs/domain): No domain recipe ships with WorkLens. Your AI assistant drafts one for your business through MCP; worked examples live in the repository. - [Custom packs](https://theworklens.com/docs/packs/custom): Writing a pack of your own — the manifest every pack shares, provenance, tokens, and the agent loop that drafts one when a run is missing it. ### Trust - [Validate](https://theworklens.com/docs/validate): Find problems before generating data: structure, satisfiability, a one-row dry run, and the list of anything declared that the engine will not execute. - [How validation works](https://theworklens.com/docs/validate/how-it-works): Two layers of checking: the recipe before a run, and the data after it — what each layer looks at and what neither can see. - [Limitations](https://theworklens.com/docs/validate/limitations): The 9 things the engine will not do, each with why and what to do instead — the same list an AI agent is told. - [Proof](https://theworklens.com/docs/proof): Know what WorkLens generated and prove it later: receipts, evidence bundles and the hash that makes them tamper-evident. - [Receipts](https://theworklens.com/docs/proof/receipts): What a run’s proof report contains, field by field, with a real one — and the line between what it proves and what it does not. ### Developers - [AI + WorkLens MCP](https://theworklens.com/docs/mcp): Turn an AI request into deterministic test data: the agent drafts and runs the recipe over MCP, the engine stays on your machine. - [Setup](https://theworklens.com/docs/mcp/setup): Connect WorkLens to ChatGPT, Claude, Cursor, VS Code, Claude Desktop or Claude Code: the studio's Connect to AI panel, a config entry, or the hosted connector. - [Tool directory](https://theworklens.com/docs/mcp/tools): All 13 tools the WorkLens MCP server exposes, grouped by the step they belong to, generated from the published contracts. - [Usage examples](https://theworklens.com/docs/mcp/examples): A real request for each MCP tool, taken from the published contract examples rather than written for the page. - [Resources & prompts](https://theworklens.com/docs/mcp/resources): The 6 guide resources and 3 prompts the server publishes beside its tools, so an agent can read before it drafts. - [get_recipe_schema](https://theworklens.com/docs/mcp/tools/get-recipe-schema): The recipe (GraphModel) authoring guide: JSON shape, every engine field type, FK conventions, rules and a working example. Call this FIRST, WITH A plan of… - [derive_graph](https://theworklens.com/docs/mcp/tools/derive-graph): Infer a data-free recipe (entity types, relationships) from a real sample file. Pass the file as base64. Use before generating relationship-preserving… - [analyse_openapi](https://theworklens.com/docs/mcp/tools/analyse-openapi): Analyse an OpenAPI 3.x / Swagger 2.0 spec (JSON string) and preview what a WorkLens import would produce: object entities with field counts and ref lists,… - [validate_recipe](https://theworklens.com/docs/mcp/tools/validate-recipe): Validate an agent-drafted recipe before generating: structural checks, then a 1-row engine dry-run, then manifest.requires[] against the packs registered on… - [plan_packs](https://theworklens.com/docs/mcp/tools/plan-packs): Turn a recipe into a pack requirement plan — and read the shelf off it: which packs are needed, which of those a pack on this machine already resolves (name,… - [register_pack](https://theworklens.com/docs/mcp/tools/register-pack): Hand a pack you drafted back to the engine so generation can use it — a locale pack (datasets for a region) or a rule fragment (one type_def or one… - [generate_from_graph](https://theworklens.com/docs/mcp/tools/generate-from-graph): Generate every entity from a recipe with cross-entity foreign-key integrity. Use with a recipe validate_recipe accepts (yours, or one from derive_graph). By… - [generate_synthetic_data](https://theworklens.com/docs/mcp/tools/generate-synthetic-data): Generate realistic synthetic data from a recipe JSON. A recipe with several tables generates every table and replies like generate_from_graph (tables[] plus a… - [score_realism](https://theworklens.com/docs/mcp/tools/score-realism): Does the generated data have the shape of a REAL sample? Compares column kinds, blank rates, variety and magnitudes, never values. Pass the sample's path on… - [verify_world](https://theworklens.com/docs/mcp/tools/verify-world): Check that a company file and the job files pointing at it still agree. Each job file is validated ALONE, so the two facts it cannot know go unchecked: how… - [sample_world](https://theworklens.com/docs/mcp/tools/sample-world): Generate a SMALL world (120 rows) and report what to check BEFORE paying for a large run. Catches what every other check passes: a declaration that is… - [prove_recipe](https://theworklens.com/docs/mcp/tools/prove-recipe): Return the full proof for a recipe as DATA (schema worklens.proof.v2): consistency, privacy, independent property verification and a tamper-evident receipt,… - [check_privacy](https://theworklens.com/docs/mcp/tools/check-privacy): Answer both privacy questions together: privacy scores the OUTPUT (re-identification risk, k-anonymity), leaks scores the RECIPE ITSELF (a real value pasted… - [CLI](https://theworklens.com/docs/cli): Use WorkLens directly from your terminal: check a recipe, generate data, prove a run, or bundle the whole thing — all local. - [Installation](https://theworklens.com/docs/cli/installation): How to run the WorkLens CLI today — from a checkout, with Node.js 18 or newer and no build step — and what changes when it is published. - [Generate](https://theworklens.com/docs/cli/generate): worklens generate — recipe → data. Read from the CLI’s own header, with every option it accepts. - [Check](https://theworklens.com/docs/cli/check): worklens check — prove the recipe is data-free; warn on unread keys, before a recipe is shared or committed. - [Prove & bundle](https://theworklens.com/docs/cli/prove): worklens prove and worklens bundle — a verifiable proof as JSON, or a whole run folder with data, recipe, proof and manifest. - [Packs on the command line](https://theworklens.com/docs/cli/packs): Loading a locale or domain pack into a CLI run with --pack, and why CI must pass it on every run. - [Configuration](https://theworklens.com/docs/cli/configuration): Every option the generate, prove and bundle commands accept, and what each one changes about a run. There is no config file. - [SDK](https://theworklens.com/docs/sdk): Embed WorkLens generation directly in your application: the same engine as a Node.js library, synchronous, nothing sent anywhere. - [Runtimes](https://theworklens.com/docs/sdk/runtimes): Which languages and runtimes exist today: Node.js, the browser via the studio, and the MCP server that wraps the same module. - [Examples](https://theworklens.com/docs/sdk/examples): Three short Node.js scripts, each run in this repository: generate every table, prove the run, and check that two runs are identical. ### Learn - [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. - [Homepage demo](https://theworklens.com/docs/examples/homepage-demo): Starter: 2 tables, 1 relationship, 0 scenarios — a complete recipe you can run as shipped. - [Suncorp-shaped general insurance group](https://theworklens.com/docs/examples/insurance-group): Advanced: 20 tables, 23 relationships, 8 scenarios — a complete recipe you can run as shipped. - [vehicle-rental](https://theworklens.com/docs/examples/vehicle-rental): Intermediate: 4 tables, 5 relationships, 8 scenarios — a complete recipe you can run as shipped. - [Northwind Supply Co](https://theworklens.com/docs/examples/whole-company): Intermediate: 8 tables, 10 relationships, 6 scenarios — a complete recipe you can run as shipped. - [Guides](https://theworklens.com/docs/guides): The rules worth following, where WorkLens is used, and the questions people ask first. - [Best practices](https://theworklens.com/docs/guides/best-practices): The 21 rules the engine gives an AI agent before it drafts a recipe — 6 of them critical — as useful to a person as to a model. - [Use cases](https://theworklens.com/docs/guides/use-cases): Where WorkLens is used: engineering test data, AI training data, regulated environments, and a whole synthetic company. - [FAQ](https://theworklens.com/docs/guides/faq): The questions almost everyone asks first, answered in a sentence or two from the docs, with the page to read next. ### Reference - [Reference](https://theworklens.com/docs/reference): Find exact WorkLens syntax and APIs: every recipe key, the schema’s top-level keys and supported features, and the SDK functions. - [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. - [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. - [SDK API](https://theworklens.com/docs/reference/sdk-api): Every function the Node.js SDK exports — generate, prove, inspect, read a file, manage packs — with what each returns. ## Product pages - [synthesize](https://theworklens.com/synthesize): The studio — generate data from a recipe in the browser. No account, nothing uploaded. - [features](https://theworklens.com/features): What the engine does and the things it will not do, generated from its own contract. - [verify](https://theworklens.com/verify): Check a receipt: drop in an evidence bundle and see what holds. - [security](https://theworklens.com/security): Where things run and what is stored. - [licenses](https://theworklens.com/licenses): Licence terms, the open recipe format, and third-party attribution. - [pricing](https://theworklens.com/pricing): Free for everyone; regulated organisations pay for support and assurance. - [faq](https://theworklens.com/faq): What almost everyone asks first. ## Machine-readable - [Docs index (JSON)](https://theworklens.com/docs/index.json): every documentation page with summary, section and keywords - Every documentation page has a Markdown copy at its address with .md appended, e.g. https://theworklens.com/docs/getting-started.md