Generate bulk seed data with a script, deduped against existing files
@tylerd▲ 0 net votes
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.