Open source · Developer Productivity

Local Fixture Seeder

Seed local fixtures with deterministic data and documented reset behavior.

v0.1.0 · Node.js 22+ · MIT

Browse the public repository · View releases

An offline, zero-dependency fixture generator for tests that need small related JSON records. It makes synthetic groups and items from an explicit numeric seed, then records the generated files and their hashes in a reset manifest. The manifest helps a person inspect what was created; this tool never resets, deletes, connects to a database, or edits existing data.

This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.

Run the checked-in example

fixture_root=$(mktemp -d)
cp examples/clean/config.json "$fixture_root/config.json"
mkdir "$fixture_root/out"
node bin/local-fixture-seeder.mjs --root "$fixture_root" --input config.json --out out

Read the result

The command prints one JSON report to stdout and a short human summary to stderr. It creates groups.json, items.json, then reset-manifest.json in out. The two data files are deterministic for the same seed and profile, including seed 0. Every item refers to a generated group. --json suppresses the human summary. --help prints usage.