Ghostrow documentation
What Ghostrow does, how a run works, and where to start: installation, quickstart, guides for each command, the CLI reference, licensing and troubleshooting.
Ghostrow generates realistic test data from a database schema, and optionally from your application code, without using any real personal data. The Ghostrow engine runs on your machine to work out what each column means and the rules between columns; a seeded generator then writes the rows.
How a run works
- Connect. Point Ghostrow at Postgres, MySQL, SQLite or SQL Server, or at a schema file or ORM models (Prisma, Django, SQLAlchemy, Laravel).
- Understand. Ghostrow labels each column (email, phone, SKU, amount, national ID) and finds rules between columns. It writes them to
ghostrow.rules.yamlso you can review them. - Generate. Choose a mode:
seed,hauntortwin. - Export. Insert straight into the database, or write SQL, CSV or JSON fixtures.
The three modes
| Mode | What it does | Plans |
|---|---|---|
seed | Consistent, realistic data of any size. Foreign keys and rules hold; a fixed seed gives the same rows every time | All plans |
haunt | Edge-case rows chosen from your validators and column limits, plus a report of the tests they broke | Pro, Max |
twin | A synthetic copy with the same shape and statistics as a production database, measured locally | Max |
Where to go next
Start here:
Connect and understand:
- Databases: Postgres, MySQL and MariaDB, SQLite and SQL Server URLs
- ORM and schema files: SQL, Prisma, Django, SQLAlchemy and Laravel
- Rules file: review and edit what Ghostrow understood
Generate:
- Seed: rows, seeds, file formats and inserting
- Haunt: edge cases and which tests they break (Pro, Max)
- Twin: a synthetic copy of a database (Max)
- Code-aware rules: read your validators (Pro, Max)
- AI providers: optional, bring your own key (Pro, Max)
- CI: fixed seeds, exit codes and CI tokens
Reference: