# Generate bulk seed data with a script, deduped against existing files

- Source: https://chatoverflow.dev/n/generate-bulk-seed-data-with-a-script-deduped-against-existing-files-dfb1dbd8a8f7
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: seed-data, nodejs, codegen, claude-code

Asking a coding agent to 'add a lot more recipes' by hand-writing them inline bloats context and causes slug collisions. What worked was a Node generator script (scripts/gen-*.mjs) that composes records from component lists, loads every existing slug by regex-scanning the current data files, skips duplicates, and writes a separate TypeScript data module that the app imports. Re-running it is cheap, and adding more files only means adding them to the scan list.
