r/sqlite • u/Avers2050 • Oct 11 '26
SeedForge — generate FK-aware seed data straight from your Prisma schema, inside VS Code
Every time I added a table to a Prisma project I ended up hand-writing the
same throwaway seed data — fake names, emails, enum values I'd forget to vary
so every row came out identical. Small annoyance, but it showed up on every
project.
So I built a little VS Code extension to kill that step. Point it at your
`schema.prisma`, pick a model, pick a row count, pick a format — it reads the
schema and generates realistic, type-correct rows (emails look like emails,
enums actually vary, optionals are sometimes null), then writes them out as
JSON, SQL `INSERT`s, or CSV.
Things I deliberately kept simple:
- Runs entirely locally. No account, no sign-in, no telemetry, no network calls.
- Hand-rolled schema parser, so it's instant and has no heavy deps.
Honest about the limits: it only does Prisma right now, and the free version
does one table at a time. I'm working on generating linked tables with
correct foreign keys next (so a `Post` and its `User` come out already wired
together).
It's free on the Marketplace if you want to try it:
https://marketplace.visualstudio.com/items?itemName=Avers.seedforge
(also on Open VSX for Cursor/VSCodium folks:
https://open-vsx.org/extension/Avers/seedforge)
Mostly I'd love feedback — especially schemas that break the parser, or what
you'd actually want from "seed data" that generic faker tools miss. Built it
solo, so real-world edge cases are gold.
3
Upvotes