Skip to main content
Drizzle Studio is a visual database browser that lets you explore, query, and manage your database through an intuitive web interface. It’s built into Drizzle Kit and works with all supported databases.

Quick Start

Launch Drizzle Studio with a single command:
Studio will start on https://local.drizzle.studio (default port: 4983)
Drizzle Studio is currently in Beta. Report issues on GitHub or Discord.

Installation

Drizzle Studio is included with Drizzle Kit:

Configuration

Studio uses your existing drizzle.config.ts configuration:
drizzle.config.ts

Command Options

Customize how Studio runs:

Available Options

  • --config - Path to config file
  • --port - Custom port (default: 4983)
  • --host - Custom host (default: 127.0.0.1)
  • --verbose - Print all SQL statements executed by Studio

Examples

Features

Browse Tables

Studio provides a visual interface to:
  • View all tables in your database
  • See table schemas and column types
  • Inspect indexes and constraints
  • Navigate relationships between tables

Query Data

Interactively query your database:
  • Browse table data with pagination
  • Filter and sort records
  • Search across columns
  • View related records through foreign keys

Edit Records

Manage your data directly:
  • Add new records with form validation
  • Edit existing records inline
  • Delete records with confirmation
  • Handle relationships and foreign keys

Real-time Schema Sync

Studio reads your schema files in real-time:
  • See changes immediately when you update schema
  • No need to restart Studio after schema changes
  • Visual indication of schema structure

Multi-database Support

Works with all Drizzle-supported databases:
Supports:
  • PostgreSQL
  • AWS RDS Data API
  • PGlite
  • Neon
  • Vercel Postgres
  • Supabase

Use Cases

Local Development

Run Studio during development to:
  • Inspect database state while coding
  • Test data changes quickly
  • Debug query results
  • Verify migrations
package.json
Run both in parallel:

Data Exploration

Use Studio to explore your data:
  • Understand data relationships
  • Find data inconsistencies
  • Analyze data distribution
  • Export data for analysis

Database Administration

Perform admin tasks:
  • Manually fix data issues
  • Seed initial data
  • Test foreign key relationships
  • Verify constraints

Team Collaboration

Share database insights:
  • Demo features with real data
  • Review data with non-technical stakeholders
  • Debug production issues (with read-only replica)
  • Onboard new team members

Working with Different Databases

PostgreSQL

drizzle.config.ts

MySQL/PlanetScale

drizzle.config.ts

SQLite

drizzle.config.ts

Turso

drizzle.config.ts

Advanced Usage

Verbose Mode for Debugging

Enable verbose mode to see all SQL queries Studio executes:
This is useful for:
  • Understanding how Studio queries your database
  • Debugging performance issues
  • Learning SQL from Studio’s generated queries
  • Troubleshooting connection problems

Using with Environment Variables

Create a .env file for your database credentials:
.env
Studio automatically loads environment variables when starting.

Multiple Database Connections

Switch between databases by using different config files:
Be extremely careful when connecting Studio to production databases. Consider using a read-only database user or a replica.

Custom Network Configuration

Expose Studio to your local network for team access:
Then access from other devices:

Security Considerations

1

Never expose Studio publicly

Studio is designed for local development. Never expose it to the internet without proper authentication.
2

Use read-only users in production

If connecting to production databases, use a read-only database user:
3

Protect database credentials

Keep credentials in environment variables, never commit them to version control.
4

Use SSL/TLS for remote databases

Enable SSL when connecting to remote databases:
drizzle.config.ts

Troubleshooting

Port Already in Use

If port 4983 is already in use:

Connection Refused

Verify your database is running and credentials are correct:
Check the console output for connection errors.

Schema Not Showing

Ensure your schema path is correct in drizzle.config.ts:

SSL Certificate Issues

For databases requiring SSL:
drizzle.config.ts

Best Practices

Development Workflow

Keep Studio running alongside your dev server for instant database visibility

Read-Only Mode

Use read-only database users when connecting to production or staging

Version Control

Never commit database credentials - use environment variables

Team Sharing

Share Studio on local network for collaborative debugging

Package Script

Add Studio to your package.json:
package.json

Next Steps

Drizzle Kit

Learn about migrations and other Drizzle Kit commands

Schema Definition

Define your database schema with Drizzle ORM