Database seeder for local development/testing
Top 50.4% on sourcepulse
Seed is a TypeScript-based tool for automatically generating realistic dummy data for databases, targeting developers and testers who need to populate their databases for local development and testing. It simplifies data creation by automatically handling value generation, relationships, and offering type-safe code, deterministic outputs, and AI-assisted data examples.
How It Works
Seed leverages a TypeScript client generated from your database schema, enabling type-safe data definition. It uses Copycat for deterministic data generation, ensuring consistent results across runs. For text-based fields, it integrates with LLMs (OpenAI, Groq) to generate example data based on column descriptions, which are then saved and can be refined by the user.
Quick Start & Requirements
npx @snaplet/seed init
.OPENAI_API_KEY
or GROQ_API_KEY
environment variables.Highlighted Details
Maintenance & Community
The project is part of the Supabase community. Development setup involves Nix for managing dependencies.
Licensing & Compatibility
MIT License. Permissive for commercial use and integration with closed-source projects.
Limitations & Caveats
The project is actively developed, and while the core functionality is robust, advanced features like AI data generation may require specific API keys and configuration. The Nix-based development environment setup is detailed but may present a learning curve for users unfamiliar with Nix.
10 months ago
Inactive