What problem does it solve?
Adding persistent off-chain storage to a Scaffold-ETH 2 dApp requires wiring up an ORM, database drivers, migrations, and environment configuration by hand. This Skill automates that integration, giving your dApp a type-safe PostgreSQL backend that works locally via Docker and in production via Neon serverless.
Core Features & Use Cases
- Tri-Driver Database Client: Auto-detects the environment and selects the right driver (Neon serverless WebSocket, Neon HTTP, or standard node-postgres) based on the connection string and runtime.
- Repository Pattern & Schema Setup: Generates typed CRUD repositories, Drizzle schema definitions, and drizzle-kit configuration with consistent snake_case casing.
- Full Workflow Tooling: Includes Docker Compose for local Postgres, seed/wipe scripts with production safety guards, and migration commands for production deployment.
- Use Case: You are building a dApp that needs to store user profiles off-chain. Use this Skill to scaffold the database layer, then query it directly from Next.js server components or expose mutations through API routes with React Query.
Quick Start
Add a PostgreSQL database with Drizzle ORM and Neon to my Scaffold-ETH 2 project so I can store off-chain user data.