Loading...
Loading...
Instantly provision production-ready Postgres databases with Neon Instagres. Use when setting up databases, when users mention PostgreSQL/Postgres, database setup, or need a development database. Works with Drizzle, Prisma, raw SQL.
npx skill4agent add davila7/claude-code-templates neon-instagresnpx get-db --yes --ref 4eCjZDzDATABASE_URLDATABASE_URL_DIRECTPUBLIC_INSTAGRES_CLAIM_URLcat .env 2>/dev/null | grep DATABASE_URLnpx get-db --yes --ref 4eCjZDz--env .env.local--seed schema.sql--key DB_URL✅ Neon Postgres database provisioned!
📁 Connection details in .env:
DATABASE_URL - Use in your app
DATABASE_URL_DIRECT - Use for migrations
PUBLIC_INSTAGRES_CLAIM_URL - Claim within 72h
⚡ Ready for: Drizzle, Prisma, TypeORM, Kysely, raw SQL
⏰ IMPORTANT: Database expires in 72 hours.
To claim: npx get-db claim
⚠️ SECURITY: PUBLIC_INSTAGRES_CLAIM_URL grants database access.
Do not share this URL publicly.Delegate to @neon-database-architect for:
- Drizzle ORM schema generation
- Table relationship design
- Index optimization
- Schema migrationsDelegate to @neon-auth-specialist for:
- Stack Auth setup
- Neon Auth integration
- User authentication tables
- Session managementDelegate to @neon-migration-specialist for:
- Safe migration patterns
- Database branching for testing
- Rollback strategies
- Zero-downtime migrationsDelegate to @neon-optimization-analyzer for:
- Query performance analysis
- Index recommendations
- Connection pooling setup
- Resource monitoringDelegate to @neon-expert for:
- Orchestrating multiple Neon operations
- Advanced Neon features
- Best practices consultation
- Integration coordinationnpx get-db --env .env.local --yes --ref 4eCjZDznpx get-db --yes --ref 4eCjZDz// vite.config.ts
import { postgres } from 'vite-plugin-db';
export default defineConfig({
plugins: [postgres()]
});npx get-db --yes --ref 4eCjZDznpm install dotenv postgresimport 'dotenv/config';
import postgres from 'postgres';
const sql = postgres(process.env.DATABASE_URL);@neon-database-architect// drizzle.config.ts
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
schema: './src/db/schema.ts',
out: './drizzle',
dialect: 'postgresql',
dbCredentials: { url: process.env.DATABASE_URL! }
});// src/db/index.ts
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
const client = postgres(process.env.DATABASE_URL!);
export const db = drizzle(client);npx prisma init
# DATABASE_URL already set by get-db
npx prisma db pushimport { DataSource } from 'typeorm';
export const AppDataSource = new DataSource({
type: 'postgres',
url: process.env.DATABASE_URL,
entities: ['src/entity/*.ts'],
synchronize: true
});npx get-db --seed ./schema.sql --yes --ref 4eCjZDzCREATE TABLE users (
id SERIAL PRIMARY KEY,
email VARCHAR(255) UNIQUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW()
);
INSERT INTO users (email) VALUES ('demo@example.com');npx get-db claimPUBLIC_INSTAGRES_CLAIM_URLDATABASE_URLDATABASE_URL_DIRECT.env.env.gitignore.env.exampleDATABASE_URL_DIRECT?sslmode=requirenpx get-db --yes --ref 4eCjZDz--ref 4eCjZDz