{"id":50186706,"url":"https://github.com/silkhorizonstudios/seedforge","last_synced_at":"2026-05-25T11:00:43.359Z","repository":{"id":360140588,"uuid":"1248897136","full_name":"silkhorizonstudios/seedforge","owner":"silkhorizonstudios","description":"One command to fill your database with realistic test data. Reads schema, resolves FK, no code needed.","archived":false,"fork":false,"pushed_at":"2026-05-25T06:48:23.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T08:09:45.822Z","etag":null,"topics":["cli","database","developer-tools","faker","mysql","postgresql","python","seed-data","sqlite","synthetic-data","test-data"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/seedforge/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silkhorizonstudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T06:43:04.000Z","updated_at":"2026-05-25T06:48:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/silkhorizonstudios/seedforge","commit_stats":null,"previous_names":["silkhorizonstudios/seedforge"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/silkhorizonstudios/seedforge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silkhorizonstudios%2Fseedforge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silkhorizonstudios%2Fseedforge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silkhorizonstudios%2Fseedforge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silkhorizonstudios%2Fseedforge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silkhorizonstudios","download_url":"https://codeload.github.com/silkhorizonstudios/seedforge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silkhorizonstudios%2Fseedforge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33471530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","database","developer-tools","faker","mysql","postgresql","python","seed-data","sqlite","synthetic-data","test-data"],"created_at":"2026-05-25T11:00:18.951Z","updated_at":"2026-05-25T11:00:43.347Z","avatar_url":"https://github.com/silkhorizonstudios.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SeedForge\n\n[![PyPI version](https://img.shields.io/pypi/v/seedforge.svg)](https://pypi.org/project/seedforge/)\n[![Python](https://img.shields.io/pypi/pyversions/seedforge.svg)](https://pypi.org/project/seedforge/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\nDatabase seeding tool. Connects to your DB, reads the schema, generates realistic data with valid foreign keys.\n\n```bash\npip install seedforge\nseedforge connect postgresql://user:pass@localhost/mydb\nseedforge generate --rows 1000\n```\n\n## Why\n\nI got tired of writing seed scripts by hand every time I start a new project. You know the drill — empty dashboards, nothing to test against, and if you copy prod data you're asking for GDPR trouble.\n\nSeedForge reads your schema and figures out the rest. It knows that `orders.user_id` points to `users.id`, so it fills `users` first. It knows that a column called `email` should look like an email, not random gibberish.\n\n## Install\n\n```bash\npip install seedforge          # PostgreSQL + SQLite\npip install seedforge[mysql]   # + MySQL/MariaDB\npip install seedforge[ai]      # + AI providers\npip install seedforge[all]     # everything\n```\n\n## Usage\n\n```bash\n# save connection (writes .seedforge.yaml)\nseedforge connect postgresql://user:pass@localhost:5432/mydb\nseedforge connect mysql://user:pass@localhost:3306/mydb\nseedforge connect sqlite:///path/to/db.sqlite\n\n# see what's in the database\nseedforge inspect\n\n# generate and insert\nseedforge generate --rows 100\n\n# just preview, don't touch the DB\nseedforge generate --rows 10 --dry-run\n\n# export instead of inserting\nseedforge generate --rows 1000 --export sql\nseedforge generate --rows 1000 --export json\n\n# same data every time\nseedforge generate --rows 100 --seed 42\n\n# specific tables only (pulls in FK parents automatically)\nseedforge generate --tables orders,payments --rows 50\n\n# wipe tables first\nseedforge generate --rows 100 --clean\n```\n\n## AI mode\n\nIf you want smarter data (realistic product names, proper bios, etc.), you can plug in an API key. SeedForge auto-detects the provider:\n\n```bash\nseedforge ai-generate --api-key sk-ant-...   # Anthropic\nseedforge ai-generate --api-key sk-...       # OpenAI\nseedforge ai-generate --api-key AIza...      # Google Gemini\nseedforge ai-generate --api-key gsk_...      # Groq\n```\n\nOr set an env var (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, `GROQ_API_KEY`) and just run `seedforge ai-generate`.\n\nOnly schema metadata goes to the API — table and column names, never your actual data.\n\n## How it works\n\n1. Connects to your database and reads `information_schema` (PostgreSQL/MySQL) or `PRAGMA` (SQLite)\n2. Builds a dependency graph from foreign keys, topological sort gives the insertion order\n3. For each column, picks a generator based on the name — `email` gets a realistic email, `price` gets a decimal, `created_at` gets a recent timestamp, and so on (80+ patterns)\n4. Foreign key columns get real IDs from already-generated parent rows\n5. Batch inserts everything in a single transaction\n\n## What it recognizes\n\nSome examples — there are 80+ patterns total:\n\n| Column | Data |\n|---|---|\n| `email` | `john.smith@example.com` |\n| `phone` | `+1-555-0123` |\n| `first_name` / `last_name` | `John` / `Smith` |\n| `price`, `amount` | `49.99` |\n| `role` | `admin`, `user`, `moderator` |\n| `status` | `active`, `pending`, `completed` |\n| `created_at` | recent datetime |\n| `is_active` | `true` (biased) |\n| `password` | SHA-256 hash |\n| `avatar_url` | `https://picsum.photos/...` |\n| `uuid` | valid v4 UUID |\n\nIt's also context-aware: `name` in a `users` table gives person names, in `organizations` — company names, in `products` — product names.\n\n## Config\n\n`seedforge connect` creates a `.seedforge.yaml`:\n\n```yaml\ndb_url: postgresql://user:pass@localhost:5432/mydb\ndefault_rows: 100\ndefault_schema: public\nseed: 42\nexclude_tables:\n  - _prisma_migrations\n  - django_migrations\n```\n\nMigration tables (`_prisma_migrations`, `django_migrations`, `alembic_version`, etc.) are excluded automatically.\n\n## Databases\n\n- PostgreSQL\n- MySQL / MariaDB\n- SQLite\n\n## Contributing\n\nPRs welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilkhorizonstudios%2Fseedforge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilkhorizonstudios%2Fseedforge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilkhorizonstudios%2Fseedforge/lists"}