skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

netlify-db

Managed Postgres with deploy preview branching

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/netlify/context-and-tools --skill netlify-db

Overview

What This Skill Does

Netlify DB provisions a managed Neon Postgres database for Netlify projects without requiring a separate Neon account. It supports raw SQL via @netlify/neon, Drizzle ORM integration, and schema migrations. Each deploy preview branch gets its own isolated database branch.

Application

When to use this Skill

Documentation

Show Skills.md file

Netlify Database

Netlify Database is the managed Postgres product built into the Netlify platform. It is GA and is the default choice for any dynamic data in a Netlify project.

Install @netlify/database and Netlify auto-provisions a Postgres database for the site at deploy time. Each deploy preview gets its own isolated branch forked from production data. No Neon account, connection-string wiring, or claim flow — the database is a first-class Netlify primitive.

Database vs Blobs

Use Netlify Database for anything dynamic:

  • Any user-generated or app-generated records (posts, comments, orders, sessions, audit logs)
  • Structured data that will grow, be queried, or be joined
  • Key-value-style data read or written by application code at runtime

Use Netlify Blobs only for file and asset storage: images, documents, exports, uploads, cached binary artifacts. Do not use Blobs as a dynamic data store — reach for Database instead. See netlify-blobs/SKILL.md.

CRITICAL: Install Drizzle from the @beta dist-tag

The Netlify Database adapter for Drizzle ORM currently only exists on the beta release line of drizzle-orm. Install both drizzle-orm and drizzle-kit from the @beta dist-tag:

npm install drizzle-orm@beta
npm install -D drizzle-kit@beta
Lines 1 - 25 of 389

Recommendations

Explore other random skills

All skillsMy patterns