{"id":30691246,"url":"https://github.com/devgauravjatt/drizzle-setup","last_synced_at":"2025-09-02T03:46:32.735Z","repository":{"id":297662326,"uuid":"997548750","full_name":"devgauravjatt/drizzle-setup","owner":"devgauravjatt","description":"A powerful CLI tool to automatically scaffold and configure database setup using Drizzle ORM for PostgreSQL,SQLite,MySQL and More.","archived":false,"fork":false,"pushed_at":"2025-07-10T01:17:51.000Z","size":236,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-09T04:55:42.843Z","etag":null,"topics":["bun-sql","drizzle-orm","drzzle","expo-sqlite","mysql","neon","op-sqlite","pglite","postgresql","supabase-db","turso","vercel-postgres"],"latest_commit_sha":null,"homepage":"https://devgauravjatt.github.io/drizzle-setup/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devgauravjatt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-06-06T18:07:45.000Z","updated_at":"2025-07-10T01:08:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"62e94723-931d-4739-add5-f33ec5289999","html_url":"https://github.com/devgauravjatt/drizzle-setup","commit_stats":null,"previous_names":["devgauravjatt/drizzle-setup"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/devgauravjatt/drizzle-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fdrizzle-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fdrizzle-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fdrizzle-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fdrizzle-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgauravjatt","download_url":"https://codeload.github.com/devgauravjatt/drizzle-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fdrizzle-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273227435,"owners_count":25067685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bun-sql","drizzle-orm","drzzle","expo-sqlite","mysql","neon","op-sqlite","pglite","postgresql","supabase-db","turso","vercel-postgres"],"created_at":"2025-09-02T03:46:30.985Z","updated_at":"2025-09-02T03:46:32.728Z","avatar_url":"https://github.com/devgauravjatt.png","language":"TypeScript","readme":"# 📚 Drizzle Setup CLI\n\nA powerful CLI tool to automatically scaffold and configure database setup using **Drizzle ORM** for PostgreSQL,SQLite,MySQL and More.\n\n![GitHub License](https://img.shields.io/github/license/devgauravjatt/drizzle-setup?logo=github)\n![GitHub last commit](https://img.shields.io/github/last-commit/devgauravjatt/drizzle-setup?logo=git)\n![NPM Downloads](https://img.shields.io/npm/dw/drizzle-setup?logo=npm\u0026color=%23f75352)\n![NPM Version](https://img.shields.io/npm/v/drizzle-setup?logo=npm\u0026color=%23f75352)\n\n---\n\n## ✨ Features\n\n- 🚀 **Zero Configuration Setup** – Instantly scaffold database structure and config with minimal input\n- 📜 **Automated Script Generation** – Automatically updates `package.json` with essential Drizzle CLI scripts\n- 🔐 **Environment Management** – Automatically injects required environment variables into `.env`\n- 🗃️ **Multi-Database Support** – Seamlessly works with PostgreSQL, SQLite, MySQL, and other popular databases\n- 📁 **Template System** – Instantly sets up a working project structure with best practices\n- 🎯 **Interactive Setup** – Guided CLI experience with smart defaults\n- 📦 **Dependency Management** – Automatically installs required packages based on your database choice\n\n---\n\n## 🚀 Quick Start\n\nNavigate to your project directory and run:\n\n```bash\nnpx drizzle-setup\n```\n\nThe CLI will guide you through an interactive setup process:\n\n### Setup Flow\n\n1. **🗄️ Database Selection** – Choose from PostgreSQL, SQLite, MySQL, and more\n2. **⚙️ Configuration Preset** – Select from optimized presets for different use cases\n3. **📁 Target Directory** – Specify where to create your database files\n4. **📋 Template Selection** – Choose from various boilerplate templates\n5. **🔧 Config Generation** – Automatically create `drizzle.config.ts`\n6. **🔐 Environment Setup** – Update `.env` with required variables\n7. **📦 Package Management** – Install dependencies via your preferred package manager\n8. **✅ Final Verification** – Ensure everything is set up correctly\n\n---\n\n## 🗃️ Supported Databases\n\n### PostgreSQL\n\n- **Default PostgreSQL** – Standard PostgreSQL setup\n- **Neon** – Serverless PostgreSQL with automatic scaling\n- **Supabase** – Open-source Firebase alternative\n- **Vercel Postgres** – Serverless PostgreSQL by Vercel\n\n### SQLite\n\n- **Default SQLite** – Local SQLite database\n- **Turso** – Edge SQLite database\n- **Bun SQLite** – High-performance SQLite with Bun runtime\n- **Cloudflare D1** – Serverless SQLite at the edge\n\n### MySQL\n\n- **Default MySQL** – Standard MySQL setup\n- **PlanetScale** – Serverless MySQL platform\n- **Railway MySQL** – Cloud MySQL hosting\n\n\u003e Each database type comes with pre-configured templates, optimized settings, and environment variables.\n\n---\n\n## 🏗️ Project Structure\n\nAfter setup, your project will have a clean, organized structure:\n\n```\nproject-root/\n├── node_modules/            # Installed dependencies\n├── drizzle.config.ts        # Drizzle configuration\n├── .env                     # Environment variables\n├── .env.example             # Example environment file\n├── package.json             # Updated with Drizzle scripts\n├── [target-folder]/         # Your database folder\n│   ├── schema.ts            # Database schema definitions\n│   ├── index.ts             # Database connection and exports\n```\n\n---\n\n## Perfect for Modern Stacks 🏗️\n\nThis tool shines especially bright with modern frameworks:\n\n### 🚀 **Astro Projects**\n\n```bash\n# In your Astro project\nnpx drizzle-setup\n# Choose PostgreSQL + Vercel\n# Boom! Database ready for your Astro app\n```\n\n### ⚡ **Next.js Apps**\n\n```bash\n# Perfect for Next.js API routes\nnpx drizzle-setup\n# Select your preferred database\n# Start building features, not configs\n```\n\n### 🎯 **Any JavaScript/TypeScript Project**\n\nWhether it's Express, Fastify, SvelteKit, or any other framework - this CLI has got you covered.\n\n---\n\n## Real-World Impact 📈\n\n**Before Drizzle Setup CLI:**\n\n- ⏰ 2-3 hours of setup time\n- 🐛 Configuration errors and typos\n- 📚 Constant reference to documentation\n- 😫 Frustration and context switching\n\n**After Drizzle Setup CLI:**\n\n- ⚡ 30 seconds to complete setup\n- ✅ Zero configuration errors\n- 🎯 Focus on building features\n- 😊 Happy developer experience\n\n---\n\n## 📄 License\n\nMIT License © 2025 Drizzle Team\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgauravjatt%2Fdrizzle-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgauravjatt%2Fdrizzle-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgauravjatt%2Fdrizzle-setup/lists"}