DB Seedr 🌱
Production-grade VS Code extension to generate realistic seed data for MongoDB using your Prisma schema.
Features
- Automatic Schema Detection: Finds
schema.prisma in your workspace automatically.
- Semantic Data Generation: Maps field names like
email, fullName, city to realistic data using Faker.js.
- Relational Seeding: Respects relations (e.g., creates Users before Posts and links them via IDs).
- Multi-Locale Support: Generate data specific to India, US, or Europe.
- Secure Storage: MongoDB connection strings are stored using VS Code's
SecretStorage.
- Data Preview: Preview generated records in a JSON editor before seeding.
How to use
- Click the Zap button in the status bar or run the command
DB Seedr: Seed Database.
- Select Set Connection String to save your MongoDB URI.
- Select Seed All Models to start the process.
- (Optional) Use Preview Data to see what will be generated.
- (Optional) Use Change Locale to switch between supported regions.
Supported Locales
- 🇮🇳 India (
en_IN)
- 🇺🇸 US (
en_US)
- 🇪🇺 Europe (
de)
Requirements
- VS Code 1.89+
- A project with a
schema.prisma file.
Tech Stack
- TypeScript (Strict Mode)
- MongoDB Node Engine
- Faker.js
- Esbuild for bundling
Built with ❤️ by Antigravity
| |