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

  1. Connect. Point Ghostrow at Postgres, MySQL, SQLite or SQL Server, or at a schema file or ORM models (Prisma, Django, SQLAlchemy, Laravel).
  2. Understand. Ghostrow labels each column (email, phone, SKU, amount, national ID) and finds rules between columns. It writes them to ghostrow.rules.yaml so you can review them.
  3. Generate. Choose a mode: seed, haunt or twin.
  4. Export. Insert straight into the database, or write SQL, CSV or JSON fixtures.

The three modes

ModeWhat it doesPlans
seedConsistent, realistic data of any size. Foreign keys and rules hold; a fixed seed gives the same rows every timeAll plans
hauntEdge-case rows chosen from your validators and column limits, plus a report of the tests they brokePro, Max
twinA synthetic copy with the same shape and statistics as a production database, measured locallyMax

Where to go next

Start here:

Connect and understand:

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: