# Ghost Bakery — Full Reference Ghost Bakery generates synthetic test data from GBDDL recipes, exports curated catalog datasets, and creates test scenarios and localized PDF documents. Chef, the HTTP API and MCP share validation, preview, pricing and generation behavior. GBDDL describes tables, columns, generation rules and output projections. Recipes can be represented as readable GBDDL text or canonical JSON. Credit cost is based on volume and measured smart-type weights; failed jobs are refunded. AI assistants can use Ghost Bakery through MCP: the hosted endpoint https://mcp.ghostbakery.com/mcp (Streamable HTTP, API key as a bearer token) or the local `ghostbakery-mcp` binary. See https://ghostbakery.com/docs/ai/mcp. A recipe can start from a sample of the user's own data. Inference reads column names and value shapes, never copies values into the recipe, and keeps at most 20 rows. Chef and the local `ghostbakery-mcp` binary replace every value with a synthetic one of the same shape before the sample leaves the user's machine; the hosted endpoint and the HTTP API receive the sample as sent. For production or personal data, recommend Chef or the local binary. See https://ghostbakery.com/docs/guides/private-samples. The rest of this file is the complete documentation at https://ghostbakery.com/docs, one page after another. --- Source: https://ghostbakery.com/docs # Ghost Bakery documentation Ghost Bakery turns a **GBDDL recipe** into synthetic test data. A recipe describes tables, columns and their relationships; its output block selects the representation. Recipes generate tabular files, nested documents or test scenarios. Catalog exports and localized filler PDFs have separate workflows that do not require a recipe. ```gbddl gbddl 1 table customers rows 3 ( id int64 autoincrement primarykey name text fullName() email text email() ) output csv ``` ## Start here - [Quickstart](https://ghostbakery.com/docs/start/quickstart): create and validate a small recipe. - [Recipe concepts](https://ghostbakery.com/docs/start/concepts): tables, projections, jobs and guarantees. ## Reference - [GBDDL recipe language](https://ghostbakery.com/docs/reference/recipe) - [Credits and weights](https://ghostbakery.com/docs/reference/credits) - [Output formats](https://ghostbakery.com/docs/reference/output-formats) - [API](https://ghostbakery.com/docs/reference/api) - [Guarantees](https://ghostbakery.com/docs/reference/guarantees) - [Smart type index](https://ghostbakery.com/docs/reference/field-types) - [Recipe library](https://ghostbakery.com/recipes): browse and search ready-to-run recipes. ## Smart types ## `integer` Random integer. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `integer` | `0` | Inclusive lower bound. | | `max` | `integer` | `100` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `decimal` Random decimal, rounded to `precision` places. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `number` | `0` | Inclusive lower bound. | | `max` | `number` | `1` | Inclusive upper bound. | | `precision` | `integer` | `2` | Digits after the decimal separator. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `boolean` `true` or `false`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `trueRate` | `percent` | `50` | Percentage of `true` values, from 0% to 100%. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `date` Calendar date. Defaults to 1970-01-01 through 2030-12-31. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `string` | — | Earliest date, as `yyyy-MM-dd`. | | `max` | `string` | — | Latest date, as `yyyy-MM-dd`. | | `range` | `enum` | — | `past`: the last 10 years; `future`: 10 years ahead. | | `format` | `string` | `yyyy-MM-dd` | How the date is written on a text column. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `datetime` Date and time in UTC. Defaults to one year either side of now. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `string` | — | Earliest instant, as RFC 3339 or `yyyy-MM-dd HH:mm:ss`. | | `max` | `string` | — | Latest instant, same forms as `min`. | | `range` | `enum` | — | `past`: the last 10 years; `future`: 10 years ahead. | | `format` | `string` | `rfc3339` | How the instant is written on a text column. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `time` Time of day. Defaults to 00:00:00 through 23:59:59. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `string` | — | Earliest time, as `HH:mm:ss`. | | `max` | `string` | — | Latest time, as `HH:mm:ss`. | | `format` | `string` | `HH:mm:ss` | How the time is written on a text column, from the tokens `HH`, `mm`, `ss` and the separators `- / . : , _`, space and `T`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `age` Human age in years. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `integer` | `0` | Inclusive lower bound. | | `max` | `integer` | `100` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `port` TCP/UDP port from 1 to 65535. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `integer` | `1` | Inclusive lower bound. | | `max` | `integer` | `65535` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `latitude` Latitude in degrees. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `number` | `-90` | Inclusive lower bound. | | `max` | `number` | `90` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `longitude` Longitude in degrees. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `number` | `-180` | Inclusive lower bound. | | `max` | `number` | `180` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneOffset` UTC offset in hours, in quarter-hour steps from -12 to +14. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `datetimePart` One integer part of a date or time. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `part` | `enum` | `second` | Which part. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `words` Lorem-ipsum filler words. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `lorem` Lorem-ipsum filler words. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `phrase` Lorem-ipsum filler words. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `sentence` Filler sentence of random words in the alphabet of the column's language. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `question` Like `sentence`, ending in `?`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `quote` Like `sentence`, in double quotes. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `paragraph` Several filler sentences in the alphabet of the column's language: `maxWords / 10` of them, at least one. Effective credit weight: **4**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `enum` A value picked from your list, optionally weighted. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `values` | `list` | — | The values to pick from. | | `weights` | `weights` | — | Relative weight per value, a list parallel to `values`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `template` Text assembled from earlier columns of the same row. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `template` | `template` | — | Text with `{{column}}` placeholders. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `regexp` Text matching a regular expression. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `pattern` | `string` | — | The expression. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `pattern` Text from a placeholder mask: `?` is a letter, `#` a digit. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `pattern` | `string` | — | The mask, e.g. `??-####`. | | `mode` | `enum` | `lexifyNumerify` | Which placeholders to replace. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `firstName` Given name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `middleName` Middle name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `lastName` Family name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `fullName` Full name, in the language's own name order. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `namePrefix` Title such as `Dr.` or `Ms.`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `nameSuffix` Suffix such as `Jr.`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `gender` Gender label. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `email` E-mail address built from the drawn name. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `domain` | `string` | `example.com` | Domain after the `@`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `username` Account handle such as `lars.eriksson318`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `phone` Mobile phone number in E.164 form (`+4915123456789`), in a range the country assigns to mobiles for the G20 countries. Numbers are plausible and can be in service. Without `country` it follows the row's country in a `same(...)` group (other countries get their calling code and nine digits), is Brazilian for Portuguese output and North American otherwise. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `DE`, `DEU`, `276`, `Germany`, `Alemanha`. The G20 members get their mobile ranges; any other country writes a North American number, with a validation warning. | | `formatted` | `boolean` | `false` | Write the country's national format (`(11) 91234-5678`, `01512 3456789`, `090-1234-5678`) instead of E.164. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `uuid` Random UUID version 4. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ulid` ULID: 26 characters, sortable by creation time. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `mongodbObjectId` 24-character hexadecimal MongoDB ObjectId. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `identifier` National or business identifier with valid check digits where the scheme has them. Personal numbers (`cpf`, `ssn`, `steuerId`, `codiceFiscale`) are synthetic but can match a real person's. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `kind` | `enum` | — | Which identifier scheme, such as `cpf`, `ustIdNr`, `siret` or `gbVat`. | | `formatted` | `boolean` | `false` | Include the usual punctuation. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `isbn` ISBN-10 or ISBN-13 with a valid check digit. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `version` | `enum` | — | `10` or `13`; either without it. | | `formatted` | `boolean` | `false` | Separate the groups with hyphens. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `issn` ISSN with a valid check digit. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `formatted` | `boolean` | `false` | Write it as `1234-5679`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `semver` Semantic version such as `2.14.7`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `slug` Lowercase ASCII slug of hyphen-joined words. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `words` | `integer` | `3` | Number of words. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `creditCard` 16-digit test card number, Luhn-valid and never a real card. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `gtin` GS1 trade item number (EAN/UPC) with a valid check digit, in a restricted-circulation range, so it never names a real product. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `length` | `enum` | `13` | `8` (GTIN-8), `12` (UPC-A), `13` (EAN-13) or `14` (GTIN-14 with a packaging indicator). | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `unitOfMeasure` Unit of measure code: UN/ECE Recommendation 20 (`C62`, `KGM`, `LTR`) or the short codes ERP systems use (`EA`, `KG`, `L`). Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `style` | `enum` | `unece` | `unece` for UN/ECE Recommendation 20 codes, as e-invoices (EN 16931) require; `erp` for short internal codes. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `iban` International Bank Account Number (ISO 13616) with valid mod 97 check digits and national BBAN checks where they exist (BE, ES, FR, IT, PT). Bank codes are random, so a value can coincide with a real account. In a `same(...)` group without `country` it limits the group's country to IBAN countries. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `DE`, `DEU`, `276`, `Germany`, `Alemanha`. Without it the value follows the row's country in a `same(...)` group, or a random IBAN country. A country without IBAN in this list follows `otherwise`, with a validation warning. | | `otherwise` | `enum` | `random` | For a country without IBAN here: `random` writes a valid IBAN of a random IBAN country; `generic` writes the country's prefix, valid mod 97 check digits and 18 digits, which no national format validates. | | `formatted` | `boolean` | `false` | Print in groups of four (`DE89 3704 0044 0532 0130 00`), as on paper. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `bic` Business Identifier Code (ISO 9362) with a random bank code: `ABCDDEFFXXX`. Structure only; BICs carry no check digit. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form; every country the catalog knows works. Without it the value follows the row's country in a `same(...)` group, or a random G20 or EU country, as does text that names no country (with a validation warning). | | `length` | `enum` | `11` | `8` for the institution code alone, `11` with the `XXX` head-office branch most ERP masters store. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `vatId` VAT registration number with its country prefix and valid check digits, as VIES writes it (`DE136695976`, `ATU13585627`, `EL094259216`); the CNPJ for `BR`. Numbers are synthetic but can coincide with a real registration. In a `same(...)` group without `country` it limits the group's country to the supported ones. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `GR`, `GRC`, `EL`, `Greece`, `Grécia` (Greece writes the `EL` prefix). Without it the value follows the row's country in a `same(...)` group, or a random supported country. A country outside this list follows `otherwise`, with a validation warning. | | `otherwise` | `enum` | `random` | For a country without a scheme here: `random` writes a valid VAT ID of a random supported country; `generic` writes the country's prefix and nine digits, without a check. | | `formatted` | `boolean` | `false` | Use the usual punctuation where a country has one (`GB 980 7806 84`, `12.345.678/0001-95`); other countries are unchanged. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `legalForm` Company legal form as written after the company name in the country (`GmbH`, `SAS`, `S.p.A.`, `Ltd`, `LLC`, `Ltda.`, `株式会社`, `ООО`). Without `country` it follows the row's country in a `same(...)` group, or a random G20 country; countries without a list use `Ltd.`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `DE`, `DEU`, `276`, `Germany`, `Alemanha`. The G20 members get their own forms; any other country writes `Ltd.`, with a validation warning. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `subdivision` First-level subdivision of a country (state, province, region, prefecture) from the ISO 3166-2 data of Unicode CLDR: `Bavaria`, `DE-BY` or `BY`. Without `country` it follows the row's country in a `same(...)` group (the country, not the city: the subdivision is drawn among the country's), or a random G20 country. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `BR`, `BRA`, `076`, `Brazil`, `Brasil`. Every country in the catalog has its subdivisions; a country without any writes its own name (or code), and text that names no country draws a random G20 country, with a validation warning. | | `format` | `enum` | `name` | `name` is the name in the output language (`Bayern` in German), falling back to English; `code` is the ISO 3166-2 code (`DE-BY`); `short` is the code without the country (`BY`, `SP`, `CA`), as US states and Brazilian UFs are written. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `money` An amount rounded to its currency's ISO 4217 minor units: `1234.5` for EUR (2 places), `1234` for JPY (none, written as an integer, so it fits an integer column), `1234.567` for KWD (3). Without `currency` it follows the row's country in a `same(...)` group, as `currency()` does, or uses EUR. Written as a plain number; separators and symbols belong to the output format. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `currency` | `string` | — | Currency, in any form: `EUR`, `978`, `Euro`, `euro`. Text that names no currency writes EUR amounts, with a validation warning. | | `min` | `number` | `0` | Inclusive lower bound. | | `max` | `number` | `10000` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `catalogField` A column of the row's record in a `catalog(...)` table: `catalogField(column: "number")` in a `catalog(glAccount)` table writes each account's number. Localized columns are written in the output language; int and decimal columns as numbers, an empty one as 0. The catalog type's columns are listed in the catalog guide. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `column` | `string` | — | Name of a column of the table's catalog type, such as `name`, `number` or `vat_rate`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `url` URL with a random domain and path. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `scheme` | `string` | `https` | URL scheme. | | `host` | `string` | — | Fixed host name. | | `pathDepth` | `integer` | `2` | Number of path segments. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpUrl` Like `url`, restricted to `http` and `https`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `scheme` | `string` | `https` | URL scheme. | | `host` | `string` | — | Fixed host name. | | `pathDepth` | `integer` | `2` | Number of path segments. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `domainName` Domain name such as `litoral.com`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `hostname` Host name such as `host-417`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `fqdn` Fully qualified domain name such as `host-12.litoral.com`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ipv4` IPv4 address. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ipv6` IPv6 address in `2001::/16`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ip` IPv4 or IPv6 address, half each. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `cidr` IPv4 or IPv6 network block such as `10.32.0.0/11`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `mac` Locally administered unicast MAC address. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpStatus` Common HTTP status code. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `format` | `enum` | `code` | `code` (and `simple`) writes the integer; `text` writes `404 Not Found`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpMethod` `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD` or `OPTIONS`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpVersion` `HTTP/1.0`, `HTTP/1.1`, `HTTP/2` or `HTTP/3`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `logLevel` `TRACE`, `DEBUG`, `INFO`, `WARN` or `ERROR`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `userAgent` Browser or API client user-agent string. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `browser` | `enum` | — | Fixed browser. | | `kind` | `enum` | — | `api` for an API client agent. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `jwt` Unsigned JWT (`alg: none`), never valid against a real verifier. Effective credit weight: **8**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `city` City name. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `country` Country name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `countryCode` Country ISO 3166-1 alpha-2 code. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `currency` The country's currency (ISO 4217 code). Countries share currencies, so it cannot be unique. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `postcode` Postal code in the country's format (`10115`, `SW1 2AB`, `K1A 0B1`, `154-0023`, `C1425ABC`) for a G20 country, in ranges the postal operator assigns. Without `country` it follows the row's country in a `same(...)` group; otherwise, and for countries without a format, it writes the generic `1234-567`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `GB`, `GBR`, `826`, `United Kingdom`, `Reino Unido`. The G20 members get their own format; any other country writes the generic `1234-567`, with a validation warning. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `password` Random password with at least one character of each enabled class. Effective credit weight: **8**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `length` | `integer` | `16` | Length in characters. | | `lower` | `boolean` | — | Include a-z. | | `upper` | `boolean` | — | Include A-Z. | | `numeric` | `boolean` | — | Include 0-9. | | `special` | `boolean` | — | Include punctuation. | | `space` | `boolean` | — | Include spaces. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `hash` Digest of an earlier column or of a template. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `algorithm` | `enum` | — | Digest algorithm. | | `sourceField` | `field` | — | Earlier column to hash. | | `template` | `template` | — | Text to hash, with `{{column}}` placeholders. | | `encoding` | `enum` | `hex` | How the digest is written. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `binary` Random bytes. A `bytes` column holds them as they are; a text or varchar column holds them written with `encoding`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `bytes` | `integer` | — | Exact byte count. | | `minBytes` | `integer` | `1` | Minimum byte count. | | `maxBytes` | `integer` | `32` | Maximum byte count. | | `encoding` | `enum` | `base64` | How the bytes are written on a text or varchar column. A `bytes` column ignores it and renders per the format (plan section 7). | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `base64` Standard Base64 of random bytes. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `length` | `integer` | `16` | Number of random bytes before encoding. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `color` Color value. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `format` | `enum` | `hex` | `hex` writes `#A3F2C1`. | | `palette` | `enum` | — | `safe` restricts to the 216 web-safe colors. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `company` Company name. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `street` Street name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `hobby` Hobby. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `monthName` Month name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `weekdayName` Weekday name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `timezone` IANA time zone such as `Europe/Paris`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneAbbr` Time zone abbreviation such as `IST`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneRegion` Time zone region such as `Europe`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneFull` Full time zone name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `programmingLanguage` Programming language name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `domainSuffix` Domain suffix such as `com` or `org`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `languageName` Language name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `continent` Continent name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `pick` A value drawn from a column of an uploaded file, written `pick(@part.column)`. In a dataset table it reads the table's own upload row. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `part` | `upload` | — | The upload part, from the `@part` reference. | | `column` | `upload` | — | The upload column, from the `@part.column` reference. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## Guides - [Tabular data](https://ghostbakery.com/docs/guides/tabular) - [Documents](https://ghostbakery.com/docs/guides/documents) - [Test scenarios](https://ghostbakery.com/docs/guides/scenarios) - [Catalogs](https://ghostbakery.com/docs/guides/catalogs) - [PDF](https://ghostbakery.com/docs/guides/pdf) - [Sample import](https://ghostbakery.com/docs/guides/sample-import) - [Uploads and datasets](https://ghostbakery.com/docs/guides/uploads) - [ERP data](https://ghostbakery.com/docs/guides/erp) ## AI - [MCP](https://ghostbakery.com/docs/ai/mcp): connect an assistant to Ghost Bakery. - [Skill](https://ghostbakery.com/docs/ai/skill): download the shared skill and set it up in your assistant. --- Source: https://ghostbakery.com/docs/start/quickstart # Quickstart A recipe has one or more tables and a final output projection. The optional `gbddl 1` header selects the language version; when omitted, version 1 is assumed. This recipe generates three CSV rows: ```gbddl table customers rows 3 ( id int64 autoincrement primarykey name text fullName() email text email() ) output csv ``` The Chef editor checks the recipe and shows a representative preview and exact credit quote before generation. The [API](https://ghostbakery.com/docs/reference/api) and MCP provide the same recipe capabilities to automation. ## In Chef Create an account, verify your email and sign in. The signup form solves an invisible proof-of-work (ALTCHA) in the background while you type, and the verification mail confirms your address by link or six-digit code. Your first sign-in opens a welcome page with a starter recipe already open in the editor and its preview rendered, so you see the loop before spending any credits. Open **Recipes** to create your own recipe and paste the example into the text editor, or use the visual builder. Validate it, inspect the preview and quote, then generate. Open **Jobs** to follow progress and download the completed result. Save the recipe to reuse its definition with fresh data later. ## Through automation Create an API key in **Account → API keys**. Grant `generate` to validate and submit recipes and `jobs:read` to poll and download. Follow the [API workflow](https://ghostbakery.com/docs/reference/api#generate-and-download) or connect an [MCP client](https://ghostbakery.com/docs/ai/mcp). Validation and preview are free; job submission spends credits and requires an explicit cost ceiling. --- Source: https://ghostbakery.com/docs/start/concepts # Recipe concepts A GBDDL recipe describes data shape and constraints. Tables contain typed columns; rules such as primary keys and foreign keys express relationships. The final `output` block chooses how those tables are projected. Recipes do not contain a random seed. Preview is representative rather than a prefix of a later job, and non-key columns may repeat values. See [guarantees](https://ghostbakery.com/docs/reference/guarantees). Generation is a queued job. It moves through queued, generating, packaging and upload phases and ends as completed, failed or held. A job that fails because of its input (an invalid recipe, a list that does not parse, an output over a ceiling) fails for good and is refunded. A job that fails because of something on our side is tried again on its own; when that does not help it is held, keeping your credits, recipe and uploaded lists until you retry it (free) or give up (refunded). On refund, spent voucher credits return only while their grant is live; paid credits whose purchase has lapsed return as free credits, and free credits are always restored. See [job lifecycle](https://ghostbakery.com/docs/reference/api#job-lifecycle-and-held-jobs) and the [credit refund rules](https://ghostbakery.com/docs/reference/credits#refunds-and-chargebacks). --- Source: https://ghostbakery.com/docs/reference/recipe # GBDDL recipe language GBDDL is the human-readable syntax for the canonical recipe model. A recipe declares tables and ends with one output projection. The `gbddl 1` version header is optional; omitting it selects version 1. JSON uses the same model for machine clients. ```gbddl gbddl 1 table orders rows 20 ( id int64 autoincrement primarykey total decimal(8, 2) decimal(min: 0, max: 500) ) output json ``` The language structure and rules are listed [below](https://ghostbakery.com/docs/reference/recipe#grammar). Smart types and rule arguments are listed in the generated [type reference](https://ghostbakery.com/docs/reference/field-types). ## Grammar The parser accepts the GBDDL v1 grammar, preserves comments while formatting, and reports source positions for syntax and validation errors. The physical types and rule names below are generated from the current implementation. ## Tables, columns and rules A recipe contains one or more named tables. A table declares its row count and a parenthesized list of columns. Each column has a physical type, zero or one smart type, and optional shaping or relational rules. Physical types describe the encoded value shape; smart types construct realistic or constrained values. Common rules include `primarykey`, `unique`, `distinct`, and `null(percent)`. Relational rules include `fk(parent.column)`, `eq(column)`, and comparisons such as `gt(column)` or `lte(column)`. `same(family)` coordinates related values such as a person's name and e-mail. `per(parent, min, max)` controls child row counts. `embed(child)` projects child rows into a document output. The physical types and rule names are generated from the GBDDL model: ### Physical types `boolean`, `int16`, `int32`, `int64`, `decimal`, `float64`, `text`, `varchar`, `date`, `time`, `timestamp`, `timestamptz`, `uuid`, `bytes` ### Rules | Rule | | --- | | `primarykey` | | `unique` | | `null` | | `fk` | | `autoincrement` | | `distinct` | | `eq` | | `gt` | | `gte` | | `lt` | | `lte` | | `language` | | `same` | | `per` | ## Language and limits `language(...)` declares language preferences. A missing vocabulary falls back to `eng`. Names are limited to 63 UTF-8 bytes; static tables have at most 10 rows. Policy ceilings such as tables, columns, cells and PDF pages are editable by operators and are checked before charging. See [guarantees](https://ghostbakery.com/docs/reference/guarantees) for behavior that depends on inputs. ## Packages, manifests and load scripts Package projections can include generated data, a format manifest and a database load script where supported. The load script depends on the destination database schema and configuration supplied by the user. Recipe blocks published here are parsed, semantically validated, and format-checked by the website tests. Complete, runnable examples live in the [recipe library](https://ghostbakery.com/recipes), each with a copyable source file, tested features, and a link to its raw `recipe.gbddl`. ## Canonical JSON recipes Set the required `input_format` query parameter to `gbddl` for GBDDL text or `json` for the canonical model. Content-Type does not select the input format. Inference (`/api/v1/gbddl/infer`) is the exception: there `input_format` names the sample, `json`, `csv` or `tsv`, and the response is GBDDL text, which can be submitted with `input_format=gbddl`. The [canonical JSON Schema](https://api.ghostbakery.com/schemas/gbddl-recipe.schema.json) describes the structural contract. The [downloadable JSON example](https://api.ghostbakery.com/schemas/gbddl-recipe.example.json) is equivalent to the customers recipe in the documentation overview. Both links are also available from the public `/api/v1/reference` response as `recipe_schema` and `recipe_example`. Semantic rules and current limits are checked by `/api/v1/gbddl/validate?input_format=json`. ```json { "version": 1, "tables": [ { "name": "customers", "rows": 3, "columns": [ { "name": "id", "type": { "name": "int64" }, "autoIncrement": { "start": 1, "step": 1 } }, { "name": "name", "type": { "name": "text" }, "generator": { "name": "fullName" } }, { "name": "email", "type": { "name": "text" }, "generator": { "name": "email" } } ], "primaryKey": [ "id" ] } ], "output": { "format": "csv" } } ``` --- Source: https://ghostbakery.com/docs/reference/guarantees # Guarantees What GBDDL guarantees by construction and where behavior depends on external inputs. GBDDL validation and pricing are shared across Chef, the HTTP API and MCP. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats), and [credit model](https://ghostbakery.com/docs/reference/credits) for supported syntax and behavior. ## Constraints and relationships Validation checks syntax, physical types, generator arguments, key feasibility, relationships and policy ceilings before charging. Accepted recipes enforce their declared primary keys, unique constraints and supported foreign-key/comparison rules. Ordinary columns may repeat values. `same(...)` coordinates only the supported value family; it is not a guarantee of arbitrary real-world correlations. ## Randomness and preview Recipes do not expose a random seed. Each preview uses fresh randomness and is representative, not an exact prefix of a later job. Preview returns table samples and may include additional parent rows needed by their foreign keys; it is not a preview of every final file or test runner. ## Language and realism Unicode is supported, but vocabulary coverage depends on the generator and selected language. Missing vocabulary falls back to English; review validation warnings. Names and company vocabulary are curated test values, not verified real people or businesses. Filler sentences are not a promise of natural-language prose. Check-digit validity does not establish that an identifier belongs to a real entity. ## External systems Exported SQL/load scripts assume compatible existing tables, permissions and constraints. Scenario bundles run in your chosen test client against your own target; network behavior, response contents and target availability are outside generation guarantees. ## Jobs, downloads and prices A successful validation does not reserve credits or capacity. Job submission validates and prices again against current policy and the caller's cost ceiling. Failed jobs are refunded; a job held after a fault of ours keeps its charge until you retry or give up, and is refunded if you do neither in time. Your uploaded lists are kept only while a job is queued, running or held, and are deleted when it completes, fails, is cancelled or its hold ends. Generated artifacts have a retention window and a per-account storage cap: download completed results before they expire, and expect a new result past the cap to delete your oldest ones. Repeating a request whose result is still stored returns that result without charging. Format availability, row/column limits, memory ceilings and PDF page limits are policy-controlled. Large recipes may exceed preview limits even when generation is otherwise allowed. --- Source: https://ghostbakery.com/docs/reference/output-formats # Output formats The output projection selects one of the supported formats and its format-specific options. ## Formats | Output | Use | | --- | --- | | CSV, TSV | Interchange and spreadsheet workflows. | | GDPdU | `index.xml` and data files for German tax audit software; see [GDPdU export](#gdpdu). | | XLSX | Spreadsheet files. | | Parquet | Columnar analytics. | | JSON, JSON Lines, YAML, XML | Structured document output. | | SQL | Database load workflows. | | Format | Options | | --- | --- | | `csv` | `bom`, `dateFormat`, `decimalSeparator`, `delimiter`, `encoding`, `eol`, `groupSeparator`, `header`, `locale`, `maxRowsPerFile`, `negativeSign`, `nullDate`, `quote` | | `gdpdu` | `comment`, `dateFormat`, `decimalSeparator`, `delimiter`, `encoding`, `eol`, `groupSeparator`, `locale`, `location`, `name`, `nullDate` | | `json` | `maxRowsPerFile`, `pretty` | | `jsonl` | `maxRowsPerFile` | | `parquet` | `maxRowsPerFile` | | `sql` | `maxRowsPerFile`, `rowsPerInsert` | | `tsv` | `bom`, `dateFormat`, `decimalSeparator`, `encoding`, `eol`, `groupSeparator`, `header`, `locale`, `maxRowsPerFile`, `negativeSign`, `nullDate` | | `xlsx` | | | `xml` | `maxRowsPerFile`, `recordElement`, `rootElement` | | `yaml` | `maxRowsPerFile` | Packages can combine generated data with database load scripts and manifests where supported. See the generated [format list](https://ghostbakery.com/docs/reference/output-formats#formats). ## PDF documents [PDF generation](https://ghostbakery.com/docs/guides/pdf) is a separate, recipe-free workflow for localized filler text. `output pdf` is not accepted in GBDDL. ## Test scenarios Scenario projections target **k6, Artillery, JMeter, Postman, Hurl and HTTP files**. They package data with runnable test assets; Ghost Bakery does not execute the tests. See [test scenarios](https://ghostbakery.com/docs/guides/scenarios). ## CSV and TSV spelling CSV and TSV write numbers, dates and text the way an import expects them. Every option is optional, and an explicit option wins over the `locale` preset. | Option | Values | Default | | --- | --- | --- | | `encoding` | `utf-8`, `windows-1252`, `iso-8859-1`, `iso-8859-15` | `utf-8` | | `decimalSeparator` | `.` or `,` | `.` | | `groupSeparator` | `.`, `,`, a space, or empty | none | | `negativeSign` | `leading` (`-42,50`) or `trailing` (`42,50-`) | `leading` | | `dateFormat` | a pattern of `yyyy`, `yy`, `MM`, `dd`, `HH`, `mm`, `ss` and separators, such as `dd.MM.yyyy` | ISO 8601 | | `nullDate` | text written for a NULL date or timestamp, such as `00.00.0000` | an empty field (`\N` in TSV) | | `quote` | CSV only: `minimal` or `all` (every text field is quoted) | `minimal` | | `locale` | a catalog [locale](https://ghostbakery.com/docs/guides/catalogs) such as `de-DE` or `pt-BR` | none | The `locale` preset fills `decimalSeparator`, `dateFormat` and `encoding` from the catalog, and a `;` delimiter in CSV when the decimal separator is a comma. It never turns digit grouping on. The recipe is refused, before any credit is spent, when: - the decimal separator is a comma and the CSV delimiter is also a comma, or the group separator equals the delimiter or the decimal separator; - `bom: true` is set with a charset other than `utf-8` (the byte order mark belongs to UTF-8, and a legacy charset writes none by default); - a legacy charset is combined with a language it cannot write, such as Polish, Russian or Chinese. A single character outside the charset, such as `€` in ISO 8859-1, fails the job instead of being replaced with `?`. `dateFormat` and `nullDate` apply to `date`, `timestamp` and `timestamptz` columns. A two digit `yy` year loses the century when the file is read back. Numeric options apply to integer, decimal and float columns. ```gbddl gbddl 1 language(deu) table postings rows 20 ( id int64 primarykey autoincrement account int32 integer(min: 1000, max: 8999) amount decimal(12, 2) money(min: -5000, max: 250000) posted_on date null(20%) date(min: "2026-01-01", max: "2026-12-31") ) output csv (locale: "de-DE", nullDate: "00.00.0000", quote: "all") ``` Files with a decimal comma, grouping, a trailing minus or a date format are not read by PostgreSQL `COPY`, so those packages have no PostgreSQL load script and the manifest says why. ## GDPdU export `output gdpdu` writes the layout German tax audit software imports (GDPdU, the Beschreibungsstandard of 2002): one headerless data file per table and an `index.xml` that describes them. The package holds `index.xml` and the DTD `gdpdu-01-08-2002.dtd` at its root and the data files under `tables/`. The files are spelled in German by default: `locale: "de-DE"` gives a decimal comma, `dd.MM.yyyy` dates, Windows-1252 and a `;` delimiter, with CRLF line ends. Every spelling option of the table above applies and wins over the preset, except `negativeSign` (`index.xml` cannot describe a trailing minus), `bom` and `header` (the importers read the files by the layout `index.xml` gives) and `maxRowsPerFile` (a table is one file). The charsets are `windows-1252`, `iso-8859-1` and `utf-8`. | Option | Values | Default | | --- | --- | --- | | `name`, `location`, `comment` | the data supplier named in `index.xml`; it is left out when none is set | none | | `delimiter` | one character | `;` | | `eol` | `crlf` or `lf` | `crlf` | `index.xml` lists each table with its file, charset, decimal symbol and delimiters, then its columns in file order: a primary key as `VariablePrimaryKey` (only when the key columns come first in the table, since the format lists keys before other columns), `Numeric` with its number of decimals, `Date` with its format, and `AlphaNumeric` with the longest length the recipe can produce. Foreign keys are listed as `ForeignKey` with the parent table. It holds nothing computed from the rows, such as counts or totals. A column must be text, a whole number, `decimal(p, s)`, a date, a boolean or a uuid. The recipe is refused for `float64` (no fixed number of decimals), `timestamp`, `timestamptz`, `time` and `bytes`; use `decimal`, `date` or text instead. ```gbddl gbddl 1 language(deu) table vendors rows 5 ( number int64 primarykey autoincrement name text fullName() ) table open_items rows 12 per(vendors, 1, 4) ( id int64 primarykey autoincrement vendor int64 fk(vendors.number) amount decimal(12, 2) money(min: 10, max: 9000) due_on date date(min: "2026-01-01", max: "2026-12-31") ) output gdpdu (name: "Example GmbH", location: "Hamburg", comment: "Open items 2026") ``` ## Packages and limits Supported formats can split data using `maxRowsPerFile`. CSV/TSV support line endings and optional BOM; CSV also supports a custom delimiter. XLSX uses its own spreadsheet limits. PostgreSQL load helpers are included for CSV, TSV and SQL packages (not for GDPdU, which audit software reads) and assume the target tables already exist. Cyclic foreign keys require suitable deferrable constraints in the target database. Availability and size ceilings depend on current policy. Validate the recipe before creating a job. --- Source: https://ghostbakery.com/docs/reference/credits # Credits Recipe generation cost is the sum of each table's row count multiplied by its column weights, with a one-credit minimum: ```text cost = max(1, Σ tables (rows × Σ column weights)) ``` A generated column uses its smart type's effective weight, clamped to 1–10. A column defined by a foreign key, equality or autoincrement uses that rule's effective weight instead; constraints are not added as surcharges to a generator's weight. Long values pay for their size: a column whose longest possible value has more than 128 characters weighs at least one per 128 characters, rounded up, so `lorem(minWords: 2000, maxWords: 2000)` weighs about 220 instead of 1. Every smart type keeps its own weight at its default arguments. Size arguments have caps: at most 2,000 words for the filler text types, 4,096 characters for `password`, 4,096 bytes for `base64`, 32,768 bytes for `binary`, 100 words for `slug` and 100 path segments for `url` and `httpUrl`. No generated value may exceed 65,536 characters. Physical storage types do not affect price. Static tables are free; dataset columns weigh one; null values cost the same as non-null values; embedded rows count as table rows. There is no processing overhead or output-format multiplier. Catalog exports cost one credit per row, with a one-credit minimum. PDFs cost 100 credits per page. The Chef, API and MCP quote the same cost before generation. Failed jobs are refunded under the [refund rules](#refunds-and-chargebacks). A held job keeps its charge: retrying it costs nothing, and giving up or letting the hold run out refunds it under the same rules. ## Free credits A new account receives a one-time signup bonus of 75,000 credits, granted once its email address is verified. The bonus is one per mailbox: signing up again with an alias of a mailbox that already earned it (a `+tag`, a dotted Gmail address, or a Googlemail address) creates a new account but skips the second bonus. While the free-tier autorefill is active, the free balance is topped back up to 10,000 credits every 30 days. The refill restores the balance to that target; it does not add 10,000 on top of unused credits, so free credits never accumulate. Free credits have no monetary value and do not expire. ## Credit packs Credits are sold in prepaid packs. The [pricing section](https://ghostbakery.com/#pricing) lists the packs on sale with their current prices, and the billing packs endpoint (`GET /api/v1/billing/packs`) returns the same list. Prices are in euros with tax included; the checkout shows the final amount in your currency, which depends on your country's tax and the exchange rate. Each purchase buys one pack size, several times if you like; the current `max_quantity` is returned by the billing packs endpoint. For more, make several purchases or email support. Buy from **Credits** in Chef, or create a payment link through the API (`POST /api/v1/billing/checkout`) or the MCP tool `ghostbakery_buy_credits`; a person always pays on the checkout page. Credits are added once the payment is confirmed. Payments are processed by Dodo Payments, our Merchant of Record. The first purchase converts any free credits left to paid credits and ends the free refill. ## Voucher credits Voucher credits use a separate balance. Redeeming a voucher does not change the free tier or convert credits to paid credits. Spending draws from live voucher grants and paid credits together, soonest expiry first; paid credits are spent first when an expiry date ties. Free credits are spent last. Each voucher grant has its own expiry date; the default validity is 90 days, and the exact date is returned when you redeem. Unused credits lapse on that date. Redeem a code in Chef under **Credits** or through the [voucher redemption API](https://ghostbakery.com/docs/reference/api#redeem-a-voucher). ## Expiry Paid credits are valid for 12 months after your most recent purchase. Every purchase extends the validity of the whole paid balance; credits that already expired are not restored. Voucher grants expire separately on each grant's date, and unused voucher credits lapse then. ## Refunds and chargebacks Unused credits of a purchase can be refunded within 7 days of it. The refund is proportional: unused credits of the purchase × the price paid ÷ the credits bought. Consumed credits are not refundable. Email support to ask; see the [refund policy](https://ghostbakery.com/refund). A failed-job refund restores spent voucher credits to their grant only while that grant is live; voucher credits whose grant has lapsed are forfeited. Spent paid credits are restored with the current paid expiry if the purchase is still live, or as free credits if that purchase has lapsed. Spent free credits are always restored. A refund or a chargeback removes the purchase's credits in the same proportion as the amount returned, down to a zero balance at most. While a chargeback is open, new purchases are blocked; if it is withdrawn or decided in our favor, the credits and purchases are restored. ## Effective smart type weights | Smart type or rule | Effective weight | | --- | ---: | | `integer` | 1 | | `decimal` | 1 | | `boolean` | 1 | | `date` | 2 | | `datetime` | 1 | | `time` | 1 | | `age` | 1 | | `port` | 1 | | `latitude` | 1 | | `longitude` | 1 | | `timezoneOffset` | 1 | | `datetimePart` | 1 | | `words` | 1 | | `lorem` | 1 | | `phrase` | 1 | | `sentence` | 3 | | `question` | 3 | | `quote` | 3 | | `paragraph` | 4 | | `enum` | 1 | | `template` | 1 | | `regexp` | 1 | | `pattern` | 1 | | `firstName` | 1 | | `middleName` | 1 | | `lastName` | 1 | | `fullName` | 2 | | `namePrefix` | 1 | | `nameSuffix` | 1 | | `gender` | 1 | | `email` | 2 | | `username` | 2 | | `phone` | 1 | | `uuid` | 3 | | `ulid` | 1 | | `mongodbObjectId` | 1 | | `identifier` | 1 | | `isbn` | 1 | | `issn` | 2 | | `semver` | 1 | | `slug` | 2 | | `creditCard` | 1 | | `gtin` | 1 | | `unitOfMeasure` | 1 | | `iban` | 1 | | `bic` | 1 | | `vatId` | 1 | | `legalForm` | 1 | | `subdivision` | 1 | | `money` | 1 | | `catalogField` | 1 | | `url` | 3 | | `httpUrl` | 3 | | `domainName` | 2 | | `hostname` | 2 | | `fqdn` | 2 | | `ipv4` | 1 | | `ipv6` | 1 | | `ip` | 1 | | `cidr` | 1 | | `mac` | 1 | | `httpStatus` | 1 | | `httpMethod` | 1 | | `httpVersion` | 1 | | `logLevel` | 1 | | `userAgent` | 1 | | `jwt` | 8 | | `city` | 2 | | `country` | 1 | | `countryCode` | 1 | | `currency` | 1 | | `postcode` | 1 | | `password` | 8 | | `hash` | 1 | | `binary` | 1 | | `base64` | 1 | | `color` | 1 | | `company` | 2 | | `street` | 1 | | `hobby` | 1 | | `monthName` | 1 | | `weekdayName` | 1 | | `timezone` | 3 | | `timezoneAbbr` | 3 | | `timezoneRegion` | 3 | | `timezoneFull` | 1 | | `programmingLanguage` | 1 | | `domainSuffix` | 1 | | `languageName` | 1 | | `continent` | 1 | | `pick` | 1 | | `primarykey` rule | 1 | | `unique` rule | 1 | | `null` rule | 1 | | `fk` rule | 1 | | `autoincrement` rule | 1 | | `distinct` rule | 1 | | `eq` rule | 1 | | `gt` rule | 1 | | `gte` rule | 1 | | `lt` rule | 1 | | `lte` rule | 1 | | `language` rule | 1 | | `same` rule | 1 | | `per` rule | 1 | For 100 rows with one `integer()` column and one `jwt()` column, the effective example cost is **900 credits**. Replacing `jwt()` with a second `integer()` column gives **200 credits**. The free allowances, PDF price, effective weights, purchase availability and pack configuration can change through operator policy. Use the current quote and billing pack response before spending. --- Source: https://ghostbakery.com/docs/reference/api # API The HTTP API exposes recipe validation, preview, cost estimation, generation jobs, catalogs, PDF jobs, result downloads, credit purchases and voucher redemption. Authentication, schemas and error responses are defined by the live OpenAPI contract. - [Interactive API documentation](https://api.ghostbakery.com/docs) - [OpenAPI 3.1 JSON](https://api.ghostbakery.com/openapi.json) - [OpenAPI 3.1 YAML](https://api.ghostbakery.com/openapi.yaml) - [OpenAPI 3.0 JSON](https://api.ghostbakery.com/openapi-3.0.json) - [OpenAPI 3.0 YAML](https://api.ghostbakery.com/openapi-3.0.yaml) - Schemas: `https://api.ghostbakery.com/schemas/{schema}.json` Recipes use GBDDL text (`text/plain`) or canonical JSON (`application/json`). The same business rules and credit prices apply to Chef, API and MCP. ## Canonical JSON recipes Set the required `input_format` query parameter to `gbddl` for GBDDL text or `json` for the canonical model. Content-Type does not select the input format. Inference (`/api/v1/gbddl/infer`) is the exception: there `input_format` names the sample, `json`, `csv` or `tsv`, and the response is GBDDL text, which can be submitted with `input_format=gbddl`. The API receives the sample sent by the caller; see [sample import](https://ghostbakery.com/docs/guides/sample-import) for limits and [private samples](https://ghostbakery.com/docs/guides/private-samples) for what the server sees and keeps. The [canonical JSON Schema](https://api.ghostbakery.com/schemas/gbddl-recipe.schema.json) describes the structural contract. The [downloadable JSON example](https://api.ghostbakery.com/schemas/gbddl-recipe.example.json) is equivalent to the customers recipe in the documentation overview. Both links are also available from the public `/api/v1/reference` response as `recipe_schema` and `recipe_example`. Semantic rules and current limits are checked by `/api/v1/gbddl/validate?input_format=json`. ## Limits The public `/api/v1/reference` response carries the effective limits as `limits`, read from the live settings; the MCP reference tool returns the same object with `section=limits`. The values below were current when this page was built: These are maximums a request may ask for, not guaranteed capacity. A request is also bound by its credit cost and the account balance. | Limit | Value | | --- | ---: | | Tables per recipe | 50 | | Columns per recipe | 400 | | Cells per job (rows × columns) | 1,000,000,000 | | Embed nesting depth | 3 | | Recipe document | 512 KiB | | Request body | 10 MiB | | Inference sample | 1 MiB | | Inference sample rows | 20 | | Client JSON sample | 16 MiB | | Uploaded lists per request | 20 | | Uploaded lists, together | 1 MiB | | One uploaded list | 1 MiB | | Result of one job | 20 GiB | | Preview rows per table | 5 | | Largest recipe a preview accepts | 1,048,576 cells | | PDF pages per job | 1,000 | | Job run time | 1 hour | | Result kept for | 3 days | | Download link valid for | 1 hour | | Stored results per account | 50 GiB | | Requests per second per address | 30, bursts of 60 | | Format | Rows per table | Columns | Result size | | --- | ---: | ---: | ---: | | `csv` | 1,000,000,000 | 600 | 20 GiB | | `gdpdu` | 1,000,000,000 | 600 | 20 GiB | | `json` | 50,000,000 | 600 | 10 GiB | | `jsonl` | 1,000,000,000 | 600 | 20 GiB | | `parquet` | 1,000,000,000 | 600 | 20 GiB | | `pdf` | 50,000 | 64 | 1 GiB | | `sql` | 100,000,000 | 600 | 10 GiB | | `tsv` | 1,000,000,000 | 600 | 20 GiB | | `xlsx` | 1,000,000 | 600 | 2 GiB | | `xml` | 50,000,000 | 600 | 10 GiB | | `yaml` | 1,000,000 | 256 | 2 GiB | ## Creating an account `GET /api/v1/auth/challenge` returns an ALTCHA proof-of-work challenge. Solve it and send the solution as `altcha` to `POST /api/v1/auth/signup` with `{"email":"...","password":"...","altcha":"...","voucher":"GB-WELCOME30"}`. The `voucher` field is optional. Passwords must be at least 15 characters; addresses at disposable email providers and known-breached passwords are refused. A successful signup answers HTTP 201 with `{"email":"...","verify_message":"Check your inbox for next steps."}`. The response is identical whether the address was new or already registered, so it cannot reveal an existing account: the owner of an already-registered address receives a "log in or reset your password" mail instead. The signup bonus is not granted yet — it is granted when the address is verified. If supplied for a new account, the voucher is attempted after email verification and the signup bonus. An invalid or ineligible voucher does not fail signup or email verification. ## Verifying an email address The signup mail carries both a verification link and a six-digit code; either confirms the address within 24 hours and each can be used once. - `GET /api/v1/auth/verify-email?token=...` renders a small confirmation page without consuming the token, so a mail scanner that only fetches the link does not use it up. The token is consumed when the page's form posts it back. - `POST /api/v1/auth/verify-email` consumes the token or the code. Send `{"token":"..."}` (from the link) or `{"email":"...","code":"123456"}` (the six-digit code). Success returns `{"message":"Email verified successfully. You can now log in."}` and grants the one-time [signup bonus](https://ghostbakery.com/docs/reference/credits#free-credits). A wrong, expired or already-used token or code answers HTTP 400. ## Password login and MFA `POST /api/v1/auth/token` returns `{"token":""}` when authentication is complete. If a second factor is required, it returns `{"mfa_required":true,"mfa_token":""}` with no `token`. Send the challenge as `mfa_token` with a six-digit TOTP `code` to `POST /api/v1/auth/token/mfa`; successful completion returns `token` containing the session JWT. The MFA challenge is not a bearer credential; use the resulting session JWT or a separately issued API key. A rejected or incomplete challenge grants no session. Lost the device with the authenticator app? Send the same `mfa_token` to `POST /api/v1/auth/token/mfa/reset`. The account's address receives a single-use link, valid for one hour, that opens Chef and turns two-factor authentication off; it also signs out every session. The request needs a working password (through the challenge) and access to the inbox. Because a password can also be reset by email, this path protects against a leaked password, not against someone who controls the inbox. Chef offers the same link on its code step. ## Buying credits `GET /api/v1/billing/packs` lists the [credit packs](https://ghostbakery.com/docs/reference/credits#credit-packs) with their ids, credits and tax-included reference prices, whether purchases are open, and `max_quantity`. It needs no authentication. `POST /api/v1/billing/checkout` with `{"pack_id":"","quantity":2}` creates an order and returns `order_id`, `checkout_url`, `credits` and `expires_at`. Any login or API key may call it; it charges nothing. Give `checkout_url` to a person, who pays in the browser within 24 hours. `GET /api/v1/billing/orders/{id}` returns the order's `status`: `pending` until the payment is confirmed, then `completed` once the credits are granted, or `expired` when the link lapsed unpaid. A refused purchase answers 503 while purchases are closed, 403 while a chargeback on the account is open, 422 for a quantity outside 1–`max_quantity`, and 404 for an unknown pack. ## Redeem a voucher `POST /api/v1/vouchers/redeem` redeems a voucher for the authenticated account. It requires a user session JWT and a verified email address; API keys receive HTTP 403. Send `{"code":"GB-WELCOME30"}`. Codes are case-insensitive and tolerate hyphens and spaces. A successful HTTP 200 response contains `voucher_id`, `amount`, `expires_at` and `redeemed_at`. The grant expires at `expires_at`. Quote responses include `balance` (the total across credit buckets), `voucher_balance` and `voucher_expires_at` (the nearest expiry of remaining voucher credits, or `null`). | HTTP status | Error code | Meaning | | --- | --- | --- | | 400 | `invalid_voucher_code` | The voucher code is not recognized or is malformed. | | 401 | — | User credentials are missing or invalid. | | 403 | `email_not_verified` | The account email is not verified. | | 403 | `voucher_not_eligible` | The account is not eligible for this voucher. | | 409 | `voucher_not_started` | Redemption has not opened yet. | | 409 | `voucher_used_up` | The voucher has no redemptions remaining. | | 409 | `voucher_already_redeemed` | This account already redeemed this voucher. | | 409 | `voucher_campaign_redeemed` | This account already redeemed a voucher in this campaign. | | 410 | `voucher_expired` | The redemption period has ended. | | 410 | `voucher_revoked` | The voucher has been revoked. | | 422 | — | The request body is invalid. | | 429 | `voucher_rate_limited` | Too many redemption attempts. | | 500 | `internal_error` | Redemption could not be completed. | ## API keys and scopes Create an API key in Chef under **Account → API keys**, then send it as `Authorization: Bearer `. Keys expire, can be revoked, carry explicit scopes and have a credit-spending cap. Account, MFA and key-management operations require an interactive login. | Capability | Required key scope | | --- | --- | | Recipe validation, formatting, preview and generation; PDF quotes/jobs | `generate` | | Job status and download | `jobs:read` | | Read saved recipes | `recipes:read` | | Create, update, delete or infer recipes | `recipes:write` | | Catalog quotes and exports | `catalog:read` | Voucher redemption is a user-token action and is not available to API keys. Reference discovery (`GET /api/v1/reference`), catalog discovery (`GET /catalog`) and recipe schemas are public. ## Generate and download 1. Send the recipe to `POST /api/v1/gbddl/validate?input_format=gbddl` (or `json`). Validation is free. Inspect `errors` even on HTTP 200; a valid result includes `cost`, column weights and balance. 2. Use `POST /api/v1/gbddl/preview` with the same required `input_format` to inspect sample rows for free. Previews and sample inferences share a queue: usually the answer is HTTP 200 with the rows. When the queue is busy it is HTTP 202 with a `Location` header (`GET /api/v1/previews/{id}`, or `GET /api/v1/inferences/{id}` for an inference) and `Retry-After`: poll it until it answers 200. HTTP 503 with `Retry-After` means the service is busy and nothing was stored; send the request again later. 3. Submit to `POST /api/v1/jobs?input_format=gbddl` with the same recipe and mandatory `X-Max-Cost` header set to the maximum credits you accept. The server recomputes the cost and refuses it above the ceiling without charging. A new job answers HTTP 202 with `job_id`, `status`, `cost`, `charged`, `outcome` and `message`. 4. Poll `GET /api/v1/jobs/{id}` until `completed` or `failed`. Status includes progress, any job error, `expires_at` and `downloadable`. 5. Download via `GET /api/v1/jobs/{id}/download`. It checks ownership and may redirect to a temporary signed URL. Keep credentials on the API request; do not forward them to a different download host. ### Repeats and retries A finished result is kept for the result lifetime, three days by default. Sending the same recipe again is safe: when one of your jobs with the same recipe, uploaded lists and output is queued, running or still stored, the API returns that job with HTTP 200, `reused: true`, `outcome: "reused"` and `charged: 0`. Nothing is generated or charged, at any balance. The match is on the canonical recipe, so formatting changes and GBDDL versus canonical JSON do not matter, while any change to the recipe, the uploads or the output format does. With several matches the newest is returned. - `regenerate=true` asks for new data: a new paid job with fresh randomness (`outcome: "regenerated"`). The earlier result stays until its own expiry, so both can be listed and downloaded. - Once no matching result is stored, the request generates and charges again, bounded by `X-Max-Cost`, with `outcome: "recharged"` and a message saying the earlier result is no longer stored. - `recipe_id=` records the saved recipe a run comes from, for listing; it must be one of yours. - PDF jobs follow the same rules, matched on language and pages. - Catalog extracts follow them too: each export is stored as a job (`journey: "catalog"`), and the same request returns the stored file free; see [catalogs](https://ghostbakery.com/docs/guides/catalogs). ### Job lifecycle and held jobs A job is `queued`, then `processing`, then `completed`, `failed` or `held`. - A failure caused by the input is final: the status is `failed`, the credits are refunded under the [credit refund rules](https://ghostbakery.com/docs/reference/credits#refunds-and-chargebacks), and the uploaded lists are deleted. This covers a recipe that does not validate or decode, a list that does not parse, and an output over a ceiling. - A failure caused by us is tried again automatically, up to the attempt limit. A timeout, or an attempt that keeps failing, ends in `held`. The `error` field says why. - A `held` job keeps its credits and your recipe and uploaded lists. `hold_expires_at` is the deadline (24 hours by default). `POST /api/v1/jobs/{id}/retry` queues the same job again at no charge (503 with `Retry-After` during maintenance); `POST /api/v1/jobs/{id}/cancel` gives up: the credits are refunded once under the [credit refund rules](https://ghostbakery.com/docs/reference/credits#refunds-and-chargebacks), and the lists are deleted. Sending the same recipe and lists again also resumes the held job instead of charging a second time. - If you do neither before `hold_expires_at`, the job is cancelled as if you had given up. Your uploaded lists are therefore deleted when the job completes, fails for good, is cancelled, or its hold ends. A job that is not `held` answers 409 to retry and cancel. ### Maintenance and status notices During maintenance, a request that would create a new paid job (a new recipe, `regenerate=true`, a PDF or a catalog export) answers HTTP 503 with `Retry-After` and charges nothing; sending the same request after the window is safe. A request that matches a job you already have is still answered with that job, and jobs already queued or running finish. Sign-in, validation, previews, inference and reading jobs keep working. `GET /api/v1/reference` carries the current notices in `status`: `banner` (`message` and `level`: `info`, `warning` or `incident`) when the operators published one, and `maintenance_since` while maintenance is on. ### List jobs `GET /api/v1/jobs` (scope `jobs:read`) lists your jobs newest first. Each item carries `status`, `cost`, `output_format`, `size`, `recipe_id`, `created_at`, `expires_at` and `downloadable`; `expired` means the result is no longer stored. Filter with `status`, `recipe_id` and `stored=true`, page with `limit` (up to 100) and the returned `next_cursor` as `cursor`. The response also reports `storage.used_bytes` against `storage.max_bytes`: each account keeps up to that many bytes of results, and a new result that would exceed it deletes the account's oldest results first. Use `POST /api/v1/gbddl/format` to format text or convert canonical JSON to GBDDL. Saved recipe CRUD lives at `/api/v1/recipes` and `/api/v1/recipes/{id}`. [Sample import](https://ghostbakery.com/docs/guides/sample-import), [uploads](https://ghostbakery.com/docs/guides/uploads), [catalogs](https://ghostbakery.com/docs/guides/catalogs) and [PDF](https://ghostbakery.com/docs/guides/pdf) describe their separate contracts. --- Source: https://ghostbakery.com/docs/reference/field-types # Smart type reference Smart type descriptors define available generators and their arguments. The tables below are generated from the shared type reference. ## `integer` Random integer. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `integer` | `0` | Inclusive lower bound. | | `max` | `integer` | `100` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `decimal` Random decimal, rounded to `precision` places. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `number` | `0` | Inclusive lower bound. | | `max` | `number` | `1` | Inclusive upper bound. | | `precision` | `integer` | `2` | Digits after the decimal separator. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `boolean` `true` or `false`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `trueRate` | `percent` | `50` | Percentage of `true` values, from 0% to 100%. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `date` Calendar date. Defaults to 1970-01-01 through 2030-12-31. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `string` | — | Earliest date, as `yyyy-MM-dd`. | | `max` | `string` | — | Latest date, as `yyyy-MM-dd`. | | `range` | `enum` | — | `past`: the last 10 years; `future`: 10 years ahead. | | `format` | `string` | `yyyy-MM-dd` | How the date is written on a text column. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `datetime` Date and time in UTC. Defaults to one year either side of now. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `string` | — | Earliest instant, as RFC 3339 or `yyyy-MM-dd HH:mm:ss`. | | `max` | `string` | — | Latest instant, same forms as `min`. | | `range` | `enum` | — | `past`: the last 10 years; `future`: 10 years ahead. | | `format` | `string` | `rfc3339` | How the instant is written on a text column. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `time` Time of day. Defaults to 00:00:00 through 23:59:59. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `string` | — | Earliest time, as `HH:mm:ss`. | | `max` | `string` | — | Latest time, as `HH:mm:ss`. | | `format` | `string` | `HH:mm:ss` | How the time is written on a text column, from the tokens `HH`, `mm`, `ss` and the separators `- / . : , _`, space and `T`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `age` Human age in years. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `integer` | `0` | Inclusive lower bound. | | `max` | `integer` | `100` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `port` TCP/UDP port from 1 to 65535. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `integer` | `1` | Inclusive lower bound. | | `max` | `integer` | `65535` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `latitude` Latitude in degrees. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `number` | `-90` | Inclusive lower bound. | | `max` | `number` | `90` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `longitude` Longitude in degrees. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `min` | `number` | `-180` | Inclusive lower bound. | | `max` | `number` | `180` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneOffset` UTC offset in hours, in quarter-hour steps from -12 to +14. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `datetimePart` One integer part of a date or time. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `part` | `enum` | `second` | Which part. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `words` Lorem-ipsum filler words. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `lorem` Lorem-ipsum filler words. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `phrase` Lorem-ipsum filler words. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `sentence` Filler sentence of random words in the alphabet of the column's language. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `question` Like `sentence`, ending in `?`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `quote` Like `sentence`, in double quotes. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `paragraph` Several filler sentences in the alphabet of the column's language: `maxWords / 10` of them, at least one. Effective credit weight: **4**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `minWords` | `integer` | `1` | Minimum word count. | | `maxWords` | `integer` | `minWords + 3` | Maximum word count. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `enum` A value picked from your list, optionally weighted. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `values` | `list` | — | The values to pick from. | | `weights` | `weights` | — | Relative weight per value, a list parallel to `values`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `template` Text assembled from earlier columns of the same row. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `template` | `template` | — | Text with `{{column}}` placeholders. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `regexp` Text matching a regular expression. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `pattern` | `string` | — | The expression. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `pattern` Text from a placeholder mask: `?` is a letter, `#` a digit. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `pattern` | `string` | — | The mask, e.g. `??-####`. | | `mode` | `enum` | `lexifyNumerify` | Which placeholders to replace. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `firstName` Given name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `middleName` Middle name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `lastName` Family name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `fullName` Full name, in the language's own name order. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `namePrefix` Title such as `Dr.` or `Ms.`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `nameSuffix` Suffix such as `Jr.`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `gender` Gender label. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `email` E-mail address built from the drawn name. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `domain` | `string` | `example.com` | Domain after the `@`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `username` Account handle such as `lars.eriksson318`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `phone` Mobile phone number in E.164 form (`+4915123456789`), in a range the country assigns to mobiles for the G20 countries. Numbers are plausible and can be in service. Without `country` it follows the row's country in a `same(...)` group (other countries get their calling code and nine digits), is Brazilian for Portuguese output and North American otherwise. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `DE`, `DEU`, `276`, `Germany`, `Alemanha`. The G20 members get their mobile ranges; any other country writes a North American number, with a validation warning. | | `formatted` | `boolean` | `false` | Write the country's national format (`(11) 91234-5678`, `01512 3456789`, `090-1234-5678`) instead of E.164. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `uuid` Random UUID version 4. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ulid` ULID: 26 characters, sortable by creation time. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `mongodbObjectId` 24-character hexadecimal MongoDB ObjectId. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `identifier` National or business identifier with valid check digits where the scheme has them. Personal numbers (`cpf`, `ssn`, `steuerId`, `codiceFiscale`) are synthetic but can match a real person's. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `kind` | `enum` | — | Which identifier scheme, such as `cpf`, `ustIdNr`, `siret` or `gbVat`. | | `formatted` | `boolean` | `false` | Include the usual punctuation. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `isbn` ISBN-10 or ISBN-13 with a valid check digit. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `version` | `enum` | — | `10` or `13`; either without it. | | `formatted` | `boolean` | `false` | Separate the groups with hyphens. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `issn` ISSN with a valid check digit. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `formatted` | `boolean` | `false` | Write it as `1234-5679`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `semver` Semantic version such as `2.14.7`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `slug` Lowercase ASCII slug of hyphen-joined words. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `words` | `integer` | `3` | Number of words. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `creditCard` 16-digit test card number, Luhn-valid and never a real card. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `gtin` GS1 trade item number (EAN/UPC) with a valid check digit, in a restricted-circulation range, so it never names a real product. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `length` | `enum` | `13` | `8` (GTIN-8), `12` (UPC-A), `13` (EAN-13) or `14` (GTIN-14 with a packaging indicator). | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `unitOfMeasure` Unit of measure code: UN/ECE Recommendation 20 (`C62`, `KGM`, `LTR`) or the short codes ERP systems use (`EA`, `KG`, `L`). Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `style` | `enum` | `unece` | `unece` for UN/ECE Recommendation 20 codes, as e-invoices (EN 16931) require; `erp` for short internal codes. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `iban` International Bank Account Number (ISO 13616) with valid mod 97 check digits and national BBAN checks where they exist (BE, ES, FR, IT, PT). Bank codes are random, so a value can coincide with a real account. In a `same(...)` group without `country` it limits the group's country to IBAN countries. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `DE`, `DEU`, `276`, `Germany`, `Alemanha`. Without it the value follows the row's country in a `same(...)` group, or a random IBAN country. A country without IBAN in this list follows `otherwise`, with a validation warning. | | `otherwise` | `enum` | `random` | For a country without IBAN here: `random` writes a valid IBAN of a random IBAN country; `generic` writes the country's prefix, valid mod 97 check digits and 18 digits, which no national format validates. | | `formatted` | `boolean` | `false` | Print in groups of four (`DE89 3704 0044 0532 0130 00`), as on paper. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `bic` Business Identifier Code (ISO 9362) with a random bank code: `ABCDDEFFXXX`. Structure only; BICs carry no check digit. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form; every country the catalog knows works. Without it the value follows the row's country in a `same(...)` group, or a random G20 or EU country, as does text that names no country (with a validation warning). | | `length` | `enum` | `11` | `8` for the institution code alone, `11` with the `XXX` head-office branch most ERP masters store. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `vatId` VAT registration number with its country prefix and valid check digits, as VIES writes it (`DE136695976`, `ATU13585627`, `EL094259216`); the CNPJ for `BR`. Numbers are synthetic but can coincide with a real registration. In a `same(...)` group without `country` it limits the group's country to the supported ones. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `GR`, `GRC`, `EL`, `Greece`, `Grécia` (Greece writes the `EL` prefix). Without it the value follows the row's country in a `same(...)` group, or a random supported country. A country outside this list follows `otherwise`, with a validation warning. | | `otherwise` | `enum` | `random` | For a country without a scheme here: `random` writes a valid VAT ID of a random supported country; `generic` writes the country's prefix and nine digits, without a check. | | `formatted` | `boolean` | `false` | Use the usual punctuation where a country has one (`GB 980 7806 84`, `12.345.678/0001-95`); other countries are unchanged. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `legalForm` Company legal form as written after the company name in the country (`GmbH`, `SAS`, `S.p.A.`, `Ltd`, `LLC`, `Ltda.`, `株式会社`, `ООО`). Without `country` it follows the row's country in a `same(...)` group, or a random G20 country; countries without a list use `Ltd.`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `DE`, `DEU`, `276`, `Germany`, `Alemanha`. The G20 members get their own forms; any other country writes `Ltd.`, with a validation warning. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `subdivision` First-level subdivision of a country (state, province, region, prefecture) from the ISO 3166-2 data of Unicode CLDR: `Bavaria`, `DE-BY` or `BY`. Without `country` it follows the row's country in a `same(...)` group (the country, not the city: the subdivision is drawn among the country's), or a random G20 country. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `BR`, `BRA`, `076`, `Brazil`, `Brasil`. Every country in the catalog has its subdivisions; a country without any writes its own name (or code), and text that names no country draws a random G20 country, with a validation warning. | | `format` | `enum` | `name` | `name` is the name in the output language (`Bayern` in German), falling back to English; `code` is the ISO 3166-2 code (`DE-BY`); `short` is the code without the country (`BY`, `SP`, `CA`), as US states and Brazilian UFs are written. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `money` An amount rounded to its currency's ISO 4217 minor units: `1234.5` for EUR (2 places), `1234` for JPY (none, written as an integer, so it fits an integer column), `1234.567` for KWD (3). Without `currency` it follows the row's country in a `same(...)` group, as `currency()` does, or uses EUR. Written as a plain number; separators and symbols belong to the output format. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `currency` | `string` | — | Currency, in any form: `EUR`, `978`, `Euro`, `euro`. Text that names no currency writes EUR amounts, with a validation warning. | | `min` | `number` | `0` | Inclusive lower bound. | | `max` | `number` | `10000` | Inclusive upper bound. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `catalogField` A column of the row's record in a `catalog(...)` table: `catalogField(column: "number")` in a `catalog(glAccount)` table writes each account's number. Localized columns are written in the output language; int and decimal columns as numbers, an empty one as 0. The catalog type's columns are listed in the catalog guide. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `column` | `string` | — | Name of a column of the table's catalog type, such as `name`, `number` or `vat_rate`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `url` URL with a random domain and path. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `scheme` | `string` | `https` | URL scheme. | | `host` | `string` | — | Fixed host name. | | `pathDepth` | `integer` | `2` | Number of path segments. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpUrl` Like `url`, restricted to `http` and `https`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `scheme` | `string` | `https` | URL scheme. | | `host` | `string` | — | Fixed host name. | | `pathDepth` | `integer` | `2` | Number of path segments. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `domainName` Domain name such as `litoral.com`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `hostname` Host name such as `host-417`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `fqdn` Fully qualified domain name such as `host-12.litoral.com`. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ipv4` IPv4 address. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ipv6` IPv6 address in `2001::/16`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `ip` IPv4 or IPv6 address, half each. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `cidr` IPv4 or IPv6 network block such as `10.32.0.0/11`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `mac` Locally administered unicast MAC address. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpStatus` Common HTTP status code. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `format` | `enum` | `code` | `code` (and `simple`) writes the integer; `text` writes `404 Not Found`. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpMethod` `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD` or `OPTIONS`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `httpVersion` `HTTP/1.0`, `HTTP/1.1`, `HTTP/2` or `HTTP/3`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `logLevel` `TRACE`, `DEBUG`, `INFO`, `WARN` or `ERROR`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `userAgent` Browser or API client user-agent string. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `browser` | `enum` | — | Fixed browser. | | `kind` | `enum` | — | `api` for an API client agent. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `jwt` Unsigned JWT (`alg: none`), never valid against a real verifier. Effective credit weight: **8**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `city` City name. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `country` Country name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `countryCode` Country ISO 3166-1 alpha-2 code. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `currency` The country's currency (ISO 4217 code). Countries share currencies, so it cannot be unique. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `postcode` Postal code in the country's format (`10115`, `SW1 2AB`, `K1A 0B1`, `154-0023`, `C1425ABC`) for a G20 country, in ranges the postal operator assigns. Without `country` it follows the row's country in a `same(...)` group; otherwise, and for countries without a format, it writes the generic `1234-567`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `country` | `string` | — | Country, in any form: `GB`, `GBR`, `826`, `United Kingdom`, `Reino Unido`. The G20 members get their own format; any other country writes the generic `1234-567`, with a validation warning. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `password` Random password with at least one character of each enabled class. Effective credit weight: **8**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `length` | `integer` | `16` | Length in characters. | | `lower` | `boolean` | — | Include a-z. | | `upper` | `boolean` | — | Include A-Z. | | `numeric` | `boolean` | — | Include 0-9. | | `special` | `boolean` | — | Include punctuation. | | `space` | `boolean` | — | Include spaces. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `hash` Digest of an earlier column or of a template. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `algorithm` | `enum` | — | Digest algorithm. | | `sourceField` | `field` | — | Earlier column to hash. | | `template` | `template` | — | Text to hash, with `{{column}}` placeholders. | | `encoding` | `enum` | `hex` | How the digest is written. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `binary` Random bytes. A `bytes` column holds them as they are; a text or varchar column holds them written with `encoding`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `bytes` | `integer` | — | Exact byte count. | | `minBytes` | `integer` | `1` | Minimum byte count. | | `maxBytes` | `integer` | `32` | Maximum byte count. | | `encoding` | `enum` | `base64` | How the bytes are written on a text or varchar column. A `bytes` column ignores it and renders per the format (plan section 7). | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `base64` Standard Base64 of random bytes. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `length` | `integer` | `16` | Number of random bytes before encoding. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `color` Color value. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `format` | `enum` | `hex` | `hex` writes `#A3F2C1`. | | `palette` | `enum` | — | `safe` restricts to the 216 web-safe colors. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `company` Company name. Effective credit weight: **2**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `street` Street name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `hobby` Hobby. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `monthName` Month name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `weekdayName` Weekday name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `timezone` IANA time zone such as `Europe/Paris`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneAbbr` Time zone abbreviation such as `IST`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneRegion` Time zone region such as `Europe`. Effective credit weight: **3**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `timezoneFull` Full time zone name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `programmingLanguage` Programming language name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `domainSuffix` Domain suffix such as `com` or `org`. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | ## `languageName` Language name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `continent` Continent name. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | ## `pick` A value drawn from a column of an uploaded file, written `pick(@part.column)`. In a dataset table it reads the table's own upload row. Effective credit weight: **1**. | Argument | Kind | Default | Description | | --- | --- | --- | --- | | `part` | `upload` | — | The upload part, from the `@part` reference. | | `column` | `upload` | — | The upload column, from the `@part.column` reference. | | `prefix` | `string` | — | Text written before the value. Valid on text and varchar columns. | | `suffix` | `string` | — | Text written after the value. Valid on text and varchar columns. | | `case` | `enum` | — | Letter case of the value, with the casing rules of its language. Valid on text and varchar columns. | | `ascii` | `boolean` | `false` | Write the value in ASCII, using the romanized form of words. Valid on text and varchar columns. | --- Source: https://ghostbakery.com/docs/guides/catalogs # Catalog exports Export curated reference datasets or use catalog values in generated tables. Catalogs provide curated datasets such as countries, languages and currencies. Export a catalog directly for a fixture file, or select catalog values in a recipe when generated records need real codes. Catalog exports cost one credit per row. GBDDL validation and pricing are shared across Chef, the HTTP API and MCP. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats), and [credit model](https://ghostbakery.com/docs/reference/credits) for the supported syntax and behavior. Discover available types, columns, filters, language coverage and source/license metadata at `GET /catalog`. Exports support **JSON, CSV and TOON**. Filters depend on the dataset and may include language, group, parent, country, gender or vocabulary kind. Call `POST /api/v1/catalog/{type}/estimate` before `POST /api/v1/catalog/{type}/export`; API keys need `catalog:read`. The export returns the file bytes directly, and also stores the extract as a job: `X-Job-Id` names it, `GET /api/v1/jobs` lists it and it can be downloaded again until it expires. It costs one credit per returned row, with a one-credit minimum. Follow the OpenAPI contract for request options and spending headers. Review each dataset's source/license metadata before redistributing it; some vocabulary is pending native-speaker review. The request selects `output_format` (`json`, `csv` or `toon`; default `json`) in the query and can include JSON fields `language`, `columns`, `filters`, `limit`, `sample` and `seed`. Sampling with an explicit seed is reproducible; this catalog option is separate from recipe generation, which has no public seed. A sampled download reports `X-Catalog-Seed`. `X-Max-Cost` is an optional ceiling for catalog exports. The same request (dataset, format and body) while its extract is stored returns that same file free: `X-Catalog-Outcome` is `reused` and `X-Catalog-Charged` is 0, even for a sample without a seed. Add `regenerate=true` to make and charge a new extract, for example new random rows; the earlier one is kept until it expires. ## Catalog tables A table declared with `catalog(type)` writes one row per catalog record instead of a fixed row count. `group:` keeps the countries of a country group, `parent:` keeps the records under one parent (the accounts of one chart, the subdivisions of one country), and `order:` sorts the rows. Other tables point at a catalog table with `fk(...)`, so every reference is a real code. `catalogField(column: "...")` writes a column of the row's record. Localized columns, such as `name`, follow the recipe language; numeric columns are written as numbers and an empty value as 0. The plan rejects a column the type lacks and lists the valid ones. Readers such as `countryCode()` or `currency()` also follow the row's record. ```gbddl gbddl 1 language(deu) table accounts catalog(glAccount, parent: "skr03") ( number text primarykey catalogField(column: "number") name text catalogField(column: "name") ) table terms catalog(paymentTerm) ( code varchar(12) primarykey catalogField(column: "code") net_days int16 catalogField(column: "net_days") ) table countries catalog(country, group: "EU") ( iso text primarykey countryCode() vat_rate decimal(4, 1) catalogField(column: "vat_rate") ) table invoices rows 20 ( id int64 primarykey autoincrement country text fk(countries.iso) vat_rate decimal(4, 1) eq(country.vat_rate) account text fk(accounts.number) term varchar(12) fk(terms.code) amount decimal(10, 2) money(min: 10, max: 5000) ) output csv ``` The charts are `generic`, `skr03`, `skr04` and `pcg`; account names are our own, not the official texts. A key made only of `catalogField` columns must be distinct over the selected records: without `parent:`, the same account number appears in several charts and the plan refuses it as a key. `distinct` does not apply to `catalogField`, since the value comes from the record rather than a draw. --- Source: https://ghostbakery.com/docs/guides/erp # ERP data ERP imports reject records whose identifiers fail a check digit or whose formats do not match the country. Ghost Bakery has smart types for the identifiers, bank details, product codes and reference data those imports check. Every example on this page links to a recipe in the [recipe library](https://ghostbakery.com/recipes). The test suite generates each of those recipes and verifies its output. The data is well formed, not audit grade. Values pass format and check-digit validation, but no cross-row accounting rule is applied: journals do not balance, and depreciation, aging and payments are not reconciled. ## Smart types for ERP records | Area | Smart types | What is checked | |---|---|---| | Banking | [`iban`](https://ghostbakery.com/docs/reference/field-types#type-iban), [`bic`](https://ghostbakery.com/docs/reference/field-types#type-bic) | IBAN mod 97 and the national BBAN checks (BE, ES, FR, IT, PT), for the EU-27, GB, BR, SA and TR | | Tax | [`vatId`](https://ghostbakery.com/docs/reference/field-types#type-vatid) | The check digit of each EU-27 country, GB and BR (CNPJ) | | Company and person IDs | [`identifier`](https://ghostbakery.com/docs/reference/field-types#type-identifier) | National kinds such as `ustIdNr`, `steuerId`, `siren`, `siret`, `partitaIva`, `codiceFiscale`, `gbVat`, `gbCrn`, `utr` and `cnpjAlfanumerico` | | Products | [`gtin`](https://ghostbakery.com/docs/reference/field-types#type-gtin), [`unitOfMeasure`](https://ghostbakery.com/docs/reference/field-types#type-unitofmeasure) | GS1 check digit; UN/ECE Recommendation 20 or common ERP unit codes | | Addresses | [`postcode`](https://ghostbakery.com/docs/reference/field-types#type-postcode), [`phone`](https://ghostbakery.com/docs/reference/field-types#type-phone), [`subdivision`](https://ghostbakery.com/docs/reference/field-types#type-subdivision), [`legalForm`](https://ghostbakery.com/docs/reference/field-types#type-legalform) | Postal and mobile number plans of every G20 country, CLDR subdivisions and common company forms | | Amounts | [`money`](https://ghostbakery.com/docs/reference/field-types#type-money) | Rounded to the ISO 4217 minor unit of the currency | ## Countries that agree within a row ERP master records keep one country across their columns. Put the country-dependent columns in a `same(geo)` group, and the row's city, country, postcode, phone, subdivision, legal form, IBAN, BIC and currency all follow the same country. A `country` argument fixes the country instead, and it accepts codes or names in any catalog language (`"DE"`, `"de"`, `"Germany"`, `"Deutschland"`). When a type has no data for the requested country, the plan picks a documented fallback and reports it as a `country_fallback` warning. It rejects the recipe only when no sensible value exists. The [supplier import](https://ghostbakery.com/recipes/supplier-import) recipe groups ten columns this way, and [bank accounts](https://ghostbakery.com/recipes/bank-accounts) writes formatted IBANs. ## Reference data from catalogs Charts of accounts, payment terms and VAT rates are catalog data, not generated text. A `catalog(...)` table writes one row per record, and `catalogField(column: "...")` reads a column of the row's record. See [catalog tables](https://ghostbakery.com/docs/guides/catalogs#catalog-tables) for the syntax. - `glAccount`: the generic chart and the account class structure of SKR 03, SKR 04 and the French PCG, with our own account names. [Chart of accounts](https://ghostbakery.com/recipes/chart-of-accounts) exports the generic chart. - `paymentTerm`: twelve terms with net days, discount and texts in six languages. See [payment terms](https://ghostbakery.com/recipes/payment-terms). - `country` has a `vat_rate` column with the standard rate. [Catalog-backed invoices](https://ghostbakery.com/recipes/catalog-backed-invoices) combines accounts, terms, G20 VAT rates and `money` amounts. - `locale` holds the decimal and group separators, short date pattern and legacy charset of 19 locales such as `de-DE`, for number and date conventions of ERP imports. - `legalForm` and `unit` are the lists the `legalForm` and `unitOfMeasure` smart types read. ## Codes without their own smart type Some ERP codes come from fixed lists or have a simple structure. `enum` and `regexp` write them, so there is no separate smart type. Each line below comes from a tested recipe. | Code | Column definition | Recipe | |---|---|---| | Debit or credit | `enum(values: ["S", "H"])`, or `["D", "C"]`, `["+", "-"]` | [General ledger](https://ghostbakery.com/recipes/general-ledger) | | Fiscal period | `regexp(pattern: "0(0[1-9]\|1[0-6])")`: SAP periods `001` to `012` and special periods `013` to `016` | [General ledger](https://ghostbakery.com/recipes/general-ledger) | | Depreciation method | `enum(values: ["linear", "declining", "units"])` | [Fixed assets](https://ghostbakery.com/recipes/fixed-assets) | | Incoterm | `enum` of the eleven Incoterms 2020 codes, `EXW` to `CIF` | [Supplier invoices](https://ghostbakery.com/recipes/supplier-invoices) | | Customs tariff code | `regexp(pattern: "[0-9]{8}")` for the EU Combined Nomenclature; `{6}` for HS, `{10}` for HTS | [Inventory import](https://ghostbakery.com/recipes/inventory-import) | | UN/LOCODE | `regexp(pattern: "DE[A-Z]{3}")` | [Inventory import](https://ghostbakery.com/recipes/inventory-import) | | Batch number | `pattern(pattern: "B-#####")` | [Product batches](https://ghostbakery.com/recipes/product-batches) | | Serial number | `regexp(pattern: "[A-Z]{2}[0-9]{8}")` with `unique` | [Fixed assets](https://ghostbakery.com/recipes/fixed-assets) | Tariff codes and UN/LOCODEs have a plausible structure but are not looked up in the official lists, and no descriptions are included. ## Recipes by ERP area | Area | Recipes | |---|---| | Vendor master | [Supplier master data](https://ghostbakery.com/recipes/supplier-master-data), [Supplier import](https://ghostbakery.com/recipes/supplier-import), [Suppliers](https://ghostbakery.com/recipes/suppliers) | | Customer master | [Customer master data](https://ghostbakery.com/recipes/customer-master-data), [Customer import](https://ghostbakery.com/recipes/customer-import) | | Open items | [Accounts payable](https://ghostbakery.com/recipes/accounts-payable), [Accounts receivable](https://ghostbakery.com/recipes/accounts-receivable), [Supplier invoices](https://ghostbakery.com/recipes/supplier-invoices), [Customer invoices](https://ghostbakery.com/recipes/customer-invoices) | | Fixed assets | [Fixed assets](https://ghostbakery.com/recipes/fixed-assets), [Asset register](https://ghostbakery.com/recipes/asset-register) | | Inventory | [Inventory import](https://ghostbakery.com/recipes/inventory-import), [Inventory balances](https://ghostbakery.com/recipes/inventory-balances), [Inventory movements](https://ghostbakery.com/recipes/inventory-movements), [Product batches](https://ghostbakery.com/recipes/product-batches) | | General ledger | [General ledger](https://ghostbakery.com/recipes/general-ledger), [Chart of accounts](https://ghostbakery.com/recipes/chart-of-accounts), [Catalog-backed invoices](https://ghostbakery.com/recipes/catalog-backed-invoices) | | Banking | [Bank accounts](https://ghostbakery.com/recipes/bank-accounts), [Bank statement](https://ghostbakery.com/recipes/bank-statement) | German-style CSV is supported: decimal comma, digit grouping, trailing minus, `dd.MM.yyyy` dates, empty or `00.00.0000` dates and Windows-1252, through the CSV and TSV [spelling options](https://ghostbakery.com/docs/reference/output-formats#spelling). The [GDPdU export](https://ghostbakery.com/docs/reference/output-formats#gdpdu) writes data files with an `index.xml` for German tax audits. DATEV EXTF and fixed width are not supported yet. The recipes write the [standard output formats](https://ghostbakery.com/docs/reference/output-formats). --- Source: https://ghostbakery.com/docs/guides/sample-import # Import a sample Infer a GBDDL recipe from a JSON object or array of objects, or a CSV/TSV file with a header. In Chef, open **Import sample** in the recipe editor, paste a sample or pick a file, and select **Analyze**. Change a smart type in the review table to re-run inference with that override, then select **Use this recipe**. Inference is free and does not save a recipe. ## How inference decides Inference is a best-effort starting point. It uses column names, value shapes and equality patterns, never the meaning or content of values, to choose types, nullability, uniqueness and keys. Review the result and warnings. Name dictionaries cover English, Portuguese, Spanish, German, French and Italian. When a recognized name contradicts the value shape, the shape wins and inference warns you. | Sample shape and name | Inferred result | |---|---| | `true`/`false`, `yes`/`no`, `t`/`f`, or `y`/`n` | `boolean()` | | UUID, email, HTTP(S) URL, IPv4 or IPv6 shape | `uuid()`, `email()`, `httpUrl()`, `ipv4()`, `ipv6()` or `ip()` | | ISO date such as `2026-12-31` | `date()` | | Local date such as `31/12/2026` | Text with `date(format: "dd/MM/yyyy")`; ambiguous day/month order defaults to day first with a warning | | Timestamp such as `2026-03-01 09:30:00`, or time such as `09:30` | `datetime()` or `time()` | | Matching digits under an exact identifier name such as `cpf`, `cnpj` or `ssn` | `identifier()` of that kind, formatted when punctuated; check digits are not tested | | Codes such as `zip` or `phone`; ambiguous names such as `account` or `doc` | `postcode()` or `phone()` for recognized names; otherwise a digit mask using `pattern()` or `regexp()` and a hint. Leading-zero digit codes also retain their shape as a mask | | A `sku` column of letters, digits and separators | A mask using `pattern()` (`?` for a lowercase letter, `#` for a digit) or, with uppercase letters, several layouts or a leading zero, `regexp()` | | Distinct, present integer values under `id` or `*_id` | Eligible primary keys start at 1; nested JSON can also produce foreign keys | | Integer named `epoch`, `ts` or ending in `_at` | `integer()` with an epoch warning | | Dot decimal named `amount` or `price`; dot decimal named `latitude` or `longitude` | `money()`; `latitude()` or `longitude()` respectively | | Other decimal shapes, including decimal comma | `decimal()`; a decimal comma produces a warning because separators belong to the output format | | Text under a recognized entity name such as `first_name`, `city`, `company` or `street` | The corresponding smart type, such as `firstName()` or `city()` | | Other free text, including `status`, or mixed shapes | `words()`; mixed shapes produce a warning | Empty cells, `NULL` and `\N` indicate nullability. Inference does not copy sample values into recipes or derive ranges, rates or null shares. Set these yourself in the editor. Enums are never inferred: write their values in the editor. JSON nesting becomes related tables, embedded in document outputs and flattened for tabular outputs. CSV separators are detected from the header unless supplied; a leading byte order mark is ignored. ## Canonicalization and privacy Chef always cuts the sample to the row limit and canonicalizes it in the browser before sending: it replaces values with synthetic values of the same format while preserving shape and equality. The local MCP server does the same on your machine, with a limit of 20 rows. Headers, JSON keys and structure remain visible. Some values cannot be changed while preserving their shape and equality, such as isolated zeroes or values from a limited set; synthetic candidates can also coincide with original values. Avoid placing sensitive information in headers or keys. The API and remote MCP receive the sample the caller sends. Canonicalize it yourself or send only a few rows. The server cuts the sample before it enters the fast-lane queue; it is deleted once processed. Neither the recipe, column reports nor warnings copy sample values. [Private samples](https://ghostbakery.com/docs/guides/private-samples) compares what each client sends and what the server still sees. ## Sample limits The server keeps the first N data records after the CSV/TSV header, or the first N elements of every JSON array at any depth. The default is 20, controlled by `limit.global.max_sample_rows`. A warning reports a cut. The API rejects a sample above `limit.global.max_sample_bytes` with HTTP 413 before cutting it (default 1 MiB). CSV/TSV file text is counted after decoding the JSON string. For files, Chef reads at most the sample byte limit of CSV/TSV, cutting at the last line break, and parses JSON in the browser up to `limit.global.max_client_json_bytes` (default 16 MiB) before cutting rows. Larger JSON files need to be reduced or supplied as CSV. The resulting sample must still fit the server byte limit. For example, this sample: ```text id;name;email;status;amount;paid_at;notes 1;Ana Souza;ana@acme.com;paid;120.50;2026-03-01 09:30:00; 2;Bruno Lima;bruno@acme.com;paid;89.90;2026-03-02 14:05:00;VIP 3;Carla Dias;carla@acme.com;refunded;15.00;2026-03-04 11:00:00; 4;Davi Rocha;davi@acme.com;paid;230.00;2026-03-07 16:45:00; 5;Eva Melo;eva@acme.com;pending;42.10;2026-03-09 08:00:00; 6;Fabio Reis;fabio@acme.com;paid;9.99;2026-03-10 19:20:00; ``` with the table name `payments` and 1000 rows gives: ```gbddl gbddl 1 language eng table payments rows 1000 ( id int64 autoincrement primarykey name text words() email text unique email() status text words() amount decimal(18, 2) money() paid_at timestamp datetime() notes text null words() ) output csv ``` No value of the sample is in the recipe. A good next step is to override `name` with `fullName` and `notes` with `sentence`, and to configure `amount` and `paid_at` for your data. To make a status-like column an `enum`, write its values in the editor. ## API contract Call `POST /api/v1/gbddl/infer?input_format=json&output_format=json` with `sample` containing the JSON document. For CSV or TSV, set `input_format=csv` or `tsv` and send the file text as a JSON string in `sample`. Both query parameters are required; `output_format` selects the desired supported output format. Optional body fields are `table` (CSV/TSV table name, default `records`), `delimiter` (CSV only: `,`, `;`, `|` or `tab`, detected when omitted), and `types` (a map of `table.column` to a smart type override). API keys need `recipes:write`. ```json { "sample": "id;name;status\n1;Alice;open\n2;Bob;open\n3;Carol;closed\n", "table": "tickets", "types": {"tickets.name": "fullName"} } ``` The response contains GBDDL `recipe` text, column reports, warnings and validation errors. CSV reports can include `distinct`, and the response includes the detected `delimiter`. If inference is pending, HTTP 202 provides a location to poll at `GET /api/v1/inferences/{id}`. Review and validate the result before saving or submitting it. The MCP tool `ghostbakery_infer_recipe` accepts `sample` as a string, required `output_format`, and optional `input_format` (default `json`), `types`, `table` and `delimiter`. Use `ghostbakery_get_inference` to retrieve a pending result. --- Source: https://ghostbakery.com/docs/guides/documents # Nested documents Project tables into nested JSON, JSON Lines, YAML and XML documents. Keep related entities in separate tables and use `per(parent, min, max)` to control child counts. Use a document output with `embed(child)` to nest rows. JSON Lines works well when a consumer processes one document per line. GBDDL validation and pricing are shared across Chef, the HTTP API and MCP. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats), and [credit model](https://ghostbakery.com/docs/reference/credits) for the supported syntax and behavior. --- Source: https://ghostbakery.com/docs/guides/pdf # PDF generation Choose a language and page count to generate a localized filler-text PDF. The PDF journey does not need a recipe. Select a language and page count, then submit the job. The page limit is controlled by policy, and the price is 100 credits per page. Embedded Unicode fonts cover supported scripts. GBDDL validation and pricing are shared across Chef, the HTTP API and MCP. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats), and [credit model](https://ghostbakery.com/docs/reference/credits) for the supported syntax and behavior. Use `POST /api/v1/pdf/estimate` with JSON fields `language` (ISO 639-3 code) and `pages`. The response reports cost, balance and the current page ceiling. Submit the same fields to `POST /api/v1/pdf/jobs` with `X-Max-Cost`. A PDF of yours with the same language and pages that is queued, running or still stored is returned free (HTTP 200, `reused`); add `regenerate=true` for a new one, which charges again. Both operations need the `generate` scope. Poll and download through the normal job endpoints. MCP exposes this workflow as `ghostbakery_create_pdf`. PDF generates filler-text pages. It does not render arbitrary templates or relational recipe output. --- Source: https://ghostbakery.com/docs/guides/private-samples # Private samples Ghost Bakery learns the structure of your data, never the values. To [import a sample](https://ghostbakery.com/docs/guides/sample-import), inference needs column names and the shape of each value, such as length, letter case, digit positions and which values repeat. It does not need the values themselves. Chef and the local MCP server replace every value on your machine before the sample is sent. ## What each client sends | Client | Before sending | On the server | |---|---|---| | Chef (browser) | Cuts the sample to 20 rows and canonicalizes it in the browser | Infers from the canonical sample and deletes it once processed | | Local MCP server | Cuts the sample to 20 rows and canonicalizes it on your machine | Infers from the canonical sample and deletes it once processed | | API and remote MCP server | Nothing: the sample arrives as the caller sends it | Cuts it to 20 rows before it is queued, infers, and deletes it once processed | In every case, the recipe, column reports and warnings never contain a sample value. The 20-row limit is the default of `limit.global.max_sample_rows`. For JSON, the limit applies to every array at any depth. For sensitive data, use Chef or the [local MCP server](https://ghostbakery.com/docs/ai/mcp). If you call the API directly, send only a few rows and replace sensitive values yourself first. ## What canonicalization does Canonicalization replaces each value with a synthetic value of the same shape. It keeps lengths, letter case, digit positions, separators and which values are equal to each other, which is all inference reads. For example, these rows: ```text id;name;email;status;amount;paid_at 1;Ana Souza;ana@acme.com;paid;120.50;2026-03-01 09:30:00 2;Bruno Lima;bruno@acme.com;paid;89.90;2026-03-02 14:05:00 3;Carla Dias;carla@acme.com;refunded;15.00;2026-03-04 11:00:00 ``` leave the browser as: ```text id;name;email;status;amount;paid_at 4;Aga Gggga;u0@example.com;gaga;100.10;2000-01-01 00:10:00 5;Agggg Ggga;u1@example.com;gaga;10.10;2000-01-01 10:00:00 6;Aagga Agag;u2@example.com;gaaggaaa;10.00;2001-01-01 10:00:00 ``` Both samples give the same recipe. The two `paid` values stay equal, so inference can still see a repeated value. The email stays an email, but the person and the domain are gone. ## What the server still sees - **Column names and JSON keys.** They are sent as written, because inference relies on them. Do not put sensitive data in headers or keys. - **Shapes.** The length of each value, its character classes and its equality pattern stay visible. - **Small value sets.** Some values cannot change without changing their shape, such as a single `0`. A synthetic value can also match an original by chance. Values from a very small set may stay guessable. ## How it is checked The canonicalizer follows a published specification, and Chef's JavaScript and the MCP server's Go produce byte-identical output on a shared set of 66 test vectors. Automated tests check that canonicalizing a sample never changes the inferred recipe, and that no sample value reaches the recipe. You can see exactly what Chef sends in your browser's network tab: the request carries the canonical sample only. The [data protection](https://ghostbakery.com/data-protection) page describes how uploaded data and results are stored. --- Source: https://ghostbakery.com/docs/guides/tabular # Tabular data Generate CSV, TSV, XLSX, Parquet and other table projections from related GBDDL tables. Start with one table per entity and use primary and foreign keys to describe relationships. Choose CSV or TSV for broad tool support, XLSX for spreadsheet review, and Parquet for analytics. Format options and ceilings are listed in the output reference and checked before charging. GBDDL validation and pricing are shared across Chef, the HTTP API and MCP. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats), and [credit model](https://ghostbakery.com/docs/reference/credits) for the supported syntax and behavior. A recipe can contain several related tables. Use primary/foreign keys for links, `unique` or `distinct` where repetition is forbidden, and static tables for small fixed reference sets. Choose a document projection instead when you want related rows nested in one record. CSV, TSV and SQL packages include PostgreSQL load helpers where supported; they expect existing destination tables. Generated manifests describe files and load order. Review the helper script before loading it into your database. See [output formats](https://ghostbakery.com/docs/reference/output-formats) for splitting and encoding options. --- Source: https://ghostbakery.com/docs/guides/scenarios # Test scenarios Combine generated tables with a runnable HTTP test scenario for supported tools. A scenario pairs generated records with requests and checks. Describe data in GBDDL, set the base URL and request actions in the scenario projection, then choose a supported runner. Keep credentials and environment-specific URLs outside the recipe. GBDDL validation and pricing are shared across Chef, the HTTP API and MCP. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats), and [credit model](https://ghostbakery.com/docs/reference/credits) for the supported syntax and behavior. Supported targets are `k6`, `artillery`, `jmeter`, `postman`, `hurl` and `http`. Scenario outputs require a root projection and at least one request. Requests declare a method, path, optional headers and expected status codes. Supported request strings can interpolate root columns with `{{column}}` and runtime environment values with `{{env.NAME}}`. Scenario options include `baseurl`, `users`, `duration`, `iterations` and `rate`; their effect depends on the runner. Generated packages contain data, runner-specific assets and a README. Run them externally and review their configuration before targeting your service. --- Source: https://ghostbakery.com/docs/guides/uploads # Uploads and datasets Attach tabular source data and reference it with dataset and pick constructs. Uploaded files can provide dataset table rows or values selected through `pick(@part.column)`. Declare the source in the recipe, then include matching file parts when validating or generating through an API client. Uploaded contents are user-provided input. GBDDL validation and pricing are shared across Chef, the HTTP API and MCP. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats), and [credit model](https://ghostbakery.com/docs/reference/credits) for the supported syntax and behavior. ## File formats and API submission Uploads accept UTF-8 CSV, TSV, JSONL objects or plain one-value-per-line lists. Format detection uses content; delimited files need headers. A plain list exposes a column named `value`. For validation, preview or job creation, send `multipart/form-data` with exactly one text field named `recipe`, plus the source files. The uploaded **filename** identifies the part referenced by `@part` in the recipe; form field names do not select it. Keep the required `input_format=gbddl` or `input_format=json` query parameter. Submit the files again for each request that uses them. Uploaded job sources are retained for processing, so use synthetic input rather than personal data. --- Source: https://ghostbakery.com/docs/ai/mcp # MCP automation The Ghost Bakery MCP server lets an AI assistant inspect reference data, validate and preview GBDDL, infer a recipe from a sample, request an exact cost, create a job and follow its result. It is a thin client of the [HTTP API](https://ghostbakery.com/docs/reference/api), so validation, pricing and limits are the same as in Chef. Consult the [recipe language](https://ghostbakery.com/docs/reference/recipe), [output formats](https://ghostbakery.com/docs/reference/output-formats) and [credit model](https://ghostbakery.com/docs/reference/credits) for the supported syntax and behavior. ## API key Every connection authenticates with an API key. [Create one in Chef](https://ghostbakery.com/login?next=%2Fapp%2Faccount%2Fapi-keys) under **Account → API keys** (the link signs you in and opens that page; new here? [sign up first](https://ghostbakery.com/signup?next=%2Fapp%2Faccount%2Fapi-keys)) and give it only the scopes the assistant needs: - `recipes:read` and `recipes:write` for saved recipes. - `catalog:read` for catalog listing and exports. - `generate` for paid outputs, and `jobs:read` to follow them. A key can also carry a credit cap. The API enforces scopes and caps on every call; a missing scope comes back as an error that names it. Keep keys out of recipes and conversations. ## Hosted endpoint The quickest setup needs no install. Point a client that supports Streamable HTTP at: ```text https://mcp.ghostbakery.com/mcp ``` and send the key on every request as `Authorization: Bearer `. The endpoint is stateless and keeps no key of its own. Claude Code: ```sh claude mcp add --transport http ghostbakery https://mcp.ghostbakery.com/mcp \ --header "Authorization: Bearer " ``` Cursor (`~/.cursor/mcp.json`): ```json { "mcpServers": { "ghostbakery": { "url": "https://mcp.ghostbakery.com/mcp", "headers": { "Authorization": "Bearer " } } } } ``` VS Code (`.vscode/mcp.json`): ```json { "servers": { "ghostbakery": { "type": "http", "url": "https://mcp.ghostbakery.com/mcp", "headers": { "Authorization": "Bearer " } } } } ``` Web connectors in claude.ai and ChatGPT require OAuth sign-in, which the server does not offer; use a desktop or IDE client instead. ## Local binary The `ghostbakery-mcp` executable runs the same server on your machine over **stdio**. Download it for your platform from the [GitHub releases](https://github.com/miguelpragier/ghostbakery-mcp/releases), or run the `ghcr.io/miguelpragier/ghostbakery-mcp` image. `ghostbakery-mcp -version` prints the installed version. The client launches the executable with `GHOSTBAKERY_API_KEY` set. `GHOSTBAKERY_API_URL` optionally overrides the default API URL. Claude Desktop (`claude_desktop_config.json`): ```json { "mcpServers": { "ghostbakery": { "command": "/path/to/ghostbakery-mcp", "env": { "GHOSTBAKERY_API_KEY": "" } } } } ``` To host your own HTTP endpoint, start it with `-http 127.0.0.1:8080`; the MCP path is `/mcp`, and each request supplies its own key in the `Authorization` bearer header, as with the hosted endpoint. ## Available tools - Reference/catalog discovery: `ghostbakery_get_reference` (`section=limits` returns the effective limits), `ghostbakery_list_catalog`. - Authoring: `ghostbakery_validate_recipe`, `ghostbakery_preview_recipe`, `ghostbakery_infer_recipe`. When the shared preview queue is busy, these wait up to a minute and then return an id; read it later with `ghostbakery_get_preview` or `ghostbakery_get_inference`. - Saved recipes: `ghostbakery_list_recipes`, `ghostbakery_get_recipe`, `ghostbakery_save_recipe`, `ghostbakery_delete_recipe`. - Paid outputs: `ghostbakery_generate`, `ghostbakery_create_pdf`, `ghostbakery_export_catalog`. - Results: `ghostbakery_get_job`, `ghostbakery_list_jobs`. A job with status `held` stopped because of us and keeps its credits and inputs: `ghostbakery_retry_job` runs it again free, `ghostbakery_cancel_job` refunds it under the [credit refund rules](https://ghostbakery.com/docs/reference/credits#refunds-and-chargebacks). - Purchases: `ghostbakery_buy_credits`. Recipe tools default to GBDDL text and accept canonical JSON with `input_format=json`. `ghostbakery_infer_recipe` reads a JSON sample by default, or a CSV/TSV file with `input_format` set to `csv` or `tsv`; see [Import a sample](https://ghostbakery.com/docs/guides/sample-import). Inference uses column names and value shapes, and never copies sample values into the recipe. The local MCP server cuts the sample to its first 20 rows and canonicalizes the values on your machine before sending; the remote server receives what the caller sends, and the API cuts it to the same limit and deletes it after inference. Use the local server for sensitive samples, or canonicalize them yourself and send only a few rows; see [Private samples](https://ghostbakery.com/docs/guides/private-samples). ## Resources The server also exposes read-only resources an assistant can load before writing a recipe: - `ghostbakery://reference`: every field type with a one-line summary, and how to look one up in full. - `ghostbakery://examples/`: complete example recipes (`people-csv`, `orders-json`, `access-log-jsonl`, `related-values`, `unique-codes`). ## Paid jobs Generation requires an explicit `max_cost` based on the validation quote. Asking for the same recipe again is safe: while one of your jobs with the same recipe, uploads and output is queued, running or still stored, the tool returns it with `reused` true and charges nothing; its text says "Existing result, not regenerated, no charge". Set `regenerate` only when you want new data; it charges again and keeps the earlier result until it expires. Once the earlier result is no longer stored, the same recipe runs and charges again (`outcome` recharged). `ghostbakery_export_catalog` follows the same rule for catalog extracts, with `regenerate` for new rows. `ghostbakery_list_jobs` lists earlier jobs with their expiry and whether they can still be downloaded. Poll jobs to completion and retrieve the result link. ## Buying credits The `ghostbakery_buy_credits` tool lists the [credit packs](https://ghostbakery.com/docs/reference/credits#credit-packs) when called without a pack, and returns a checkout link when called with a pack name and quantity. The assistant cannot pay: it gives you the link, you pay in the browser, and the credits arrive once the payment is confirmed. Creating the link charges nothing and needs no particular key scope. ## Assistants without MCP Any assistant can still learn GBDDL from the documentation: give it [llms-full.txt](https://ghostbakery.com/llms-full.txt), the complete docs as one plain-text file, and paste the recipe it writes into Chef. --- Source: https://ghostbakery.com/docs/ai/skill # Ghost Bakery skill The `ghostbakery` skill gives an assistant reusable instructions to discover supported types, write GBDDL, validate and preview recipes, check credit costs, and retrieve generated results. The same file is shared across clients; choose the installation guide for the application you use. ## Download [Download SKILL.md](https://ghostbakery.com/docs/ai/skill/SKILL.md) and save it in a folder named `ghostbakery` at the location described in your client's guide: ```text ghostbakery/ SKILL.md ``` ## Installation guides | Client | Guide | | --- | --- | | Codex | [Install and invoke the skill](https://ghostbakery.com/docs/ai/skill/codex) | | GitHub Copilot | [Install and use in agent mode](https://ghostbakery.com/docs/ai/skill/copilot) | | Claude | [Set up Claude Code or upload to Claude](https://ghostbakery.com/docs/ai/skill/claude) | | OpenCode | [Install for a project or personal use](https://ghostbakery.com/docs/ai/skill/opencode) | | Crush | [Install for a project or personal use](https://ghostbakery.com/docs/ai/skill/crush) | ## Connect Ghost Bakery Configure [MCP](https://ghostbakery.com/docs/ai/mcp) or an authenticated [HTTP API client](https://ghostbakery.com/docs/reference/api) separately to let the assistant validate and generate data. The skill contains instructions and public reference links; it does not create an account, supply credentials or connect tools. Without callable tools, the assistant can draft a recipe using the [recipe reference](https://ghostbakery.com/docs/reference/recipe). Paste it into Chef to validate, preview and generate. The assistant should identify work it has not validated or generated. ## Try the workflow After installing and connecting, ask: ```text Use the ghostbakery skill to prepare a nested JSON fixture with 20 customers and their orders. Validate and preview the recipe. Show me the recipe and exact credit cost before submitting the job. ``` The assistant uses the returned quote within your authorized credit ceiling, reports whether a result was generated or reused, and provides the download link after completion. Requesting fresh data can spend credits again. --- Source: https://ghostbakery.com/docs/ai/skill/codex # Skill for Codex Use the shared [Ghost Bakery skill](https://ghostbakery.com/docs/ai/skill). Download [SKILL.md](https://ghostbakery.com/docs/ai/skill/SKILL.md) and save it in one of these locations: | Scope | File | | --- | --- | | Project | `.agents/skills/ghostbakery/SKILL.md` | | Personal | `~/.agents/skills/ghostbakery/SKILL.md` | These are Codex skill discovery locations. See the [official OpenAI skill guide](https://learn.chatgpt.com/docs/build-skills) for details. ## Use the skill In Codex CLI or the IDE extension, select the skill with `$` or through `/skills`. Codex can also choose it when your request matches its description. ```text $ghostbakery Draft a recipe for 100 customers and 500 related orders as CSV. Validate and preview it, then show me the credit quote before generating. ``` Connect [Ghost Bakery MCP](https://ghostbakery.com/docs/ai/mcp) or an authenticated [API client](https://ghostbakery.com/docs/reference/api) for validation and generation. Without tools, use the recipe in Chef. Installation supplies the workflow; tool access is configured separately. --- Source: https://ghostbakery.com/docs/ai/skill/copilot # Skill for GitHub Copilot Download the shared [SKILL.md](https://ghostbakery.com/docs/ai/skill/SKILL.md) and save it as `.github/skills/ghostbakery/SKILL.md` in your repository. Commit the folder to share it with your team. GitHub also documents `.agents/skills` as a project location, and `~/.copilot/skills` or `~/.agents/skills` for personal skills. Use one location for this skill to avoid duplicate installations. See [GitHub's agent skills guide](https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills) for client support and discovery details. ## Use the skill In a Copilot client with agent skill support, such as agent mode in VS Code, ask: ```text Use the ghostbakery skill to draft CSV fixtures for customers and orders. Validate and preview the recipe, then show me the credit quote. ``` Copilot loads relevant skill instructions as needed. Configure [Ghost Bakery MCP](https://ghostbakery.com/docs/ai/mcp) or authenticated [HTTP API access](https://ghostbakery.com/docs/reference/api) in that client for validation and generation. Without callable tools, take the draft recipe to Chef. See the [shared workflow](https://ghostbakery.com/docs/ai/skill) for expected results and credit handling. --- Source: https://ghostbakery.com/docs/ai/skill/claude # Skill for Claude Use the same [Ghost Bakery skill](https://ghostbakery.com/docs/ai/skill) in Claude Code or Claude's Skills interface. Download [SKILL.md](https://ghostbakery.com/docs/ai/skill/SKILL.md); the installation method depends on the client. ## Claude Code For local Claude Code sessions, save the file as `.claude/skills/ghostbakery/SKILL.md` in your project, or `~/.claude/skills/ghostbakery/SKILL.md` for personal use across projects. Invoke it explicitly: ```text /ghostbakery Prepare CSV fixtures for customers and orders. Validate and preview the recipe, then show me the credit quote before generating. ``` Claude Code can also select relevant skills automatically. See the [Claude Code skill documentation](https://code.claude.com/docs/en/skills) for discovery and session-specific behavior. ## Claude app and web Put `SKILL.md` inside a `ghostbakery` folder and compress that folder as a ZIP. In Claude, open **Customize → Skills** and use the create/upload option to upload it. Enable the skill and the required code execution capability. See [Claude's skill guide](https://support.claude.com/en/articles/12512180-use-skills-in-claude) for current steps and organization settings. ## Connect tools Set up [Ghost Bakery MCP](https://ghostbakery.com/docs/ai/mcp) in a client that supports its authentication, or use an authenticated [API client](https://ghostbakery.com/docs/reference/api). Uploading a skill does not establish a connection. Without callable tools, ask Claude for a recipe and validate it in Chef. --- Source: https://ghostbakery.com/docs/ai/skill/opencode # Skill for OpenCode Download the shared [SKILL.md](https://ghostbakery.com/docs/ai/skill/SKILL.md) and save it in one of these locations: | Scope | File | | --- | --- | | Project | `.opencode/skills/ghostbakery/SKILL.md` | | Personal | `~/.config/opencode/skills/ghostbakery/SKILL.md` | OpenCode also discovers `.agents/skills` and `.claude/skills` in supported project and personal locations. If the skill is already there, use that installation. See the [OpenCode skill documentation](https://opencode.ai/docs/skills/) for discovery and precedence rules. ## Use the skill OpenCode advertises available skills and loads their instructions through its `skill` tool when needed. Ask: ```text Use the ghostbakery skill to draft a nested JSON fixture for customers and orders. Validate and preview it, then show me the credit quote. ``` Configure [Ghost Bakery MCP](https://ghostbakery.com/docs/ai/mcp) or authenticated [API access](https://ghostbakery.com/docs/reference/api) to execute the workflow. Without callable tools, use the draft recipe in Chef. The [shared skill](https://ghostbakery.com/docs/ai/skill) describes credit handling and retrieval of results. --- Source: https://ghostbakery.com/docs/ai/skill/crush # Skill for Crush Download the shared [SKILL.md](https://ghostbakery.com/docs/ai/skill/SKILL.md) and save it in one of these locations: | Scope | File | | --- | --- | | Project | `.crush/skills/ghostbakery/SKILL.md` | | Personal | `~/.config/crush/skills/ghostbakery/SKILL.md` | The personal path above assumes the default Unix configuration directory; when `XDG_CONFIG_HOME` is set, use its `crush/skills/ghostbakery` directory. Crush also discovers shared `.agents/skills` locations. See the [Crush Agent Skills documentation](https://github.com/charmbracelet/crush#agent-skills) for supported paths and configuration options. ## Use the skill Crush discovers skills and activates them on demand. Ask: ```text Use the ghostbakery skill to draft CSV fixtures for customers and orders. Validate and preview the recipe, then show me the exact credit quote. ``` Configure [Ghost Bakery MCP](https://ghostbakery.com/docs/ai/mcp) or authenticated [API access](https://ghostbakery.com/docs/reference/api) to run validation and generation. Without callable tools, take the draft recipe to Chef. The [shared skill](https://ghostbakery.com/docs/ai/skill) describes authorization, result reuse and downloads.