drizzle-studio
БесплатноБез исполняемых скриптовНе проверенExplore and manage databases with Drizzle Studio. Use when a user asks to browse database contents visually, inspect tables and data, run ad-hoc queries…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Drizzle Studio
Overview
Drizzle Studio is a visual database browser and admin tool that runs in your browser. Unlike heavyweight tools like pgAdmin or DBeaver, it starts in one command and works with any Drizzle ORM project. Browse tables, filter data, edit records inline, run SQL queries, and inspect relationships — all through a clean web interface. It is started by drizzle-kit studio, which opens a local server and serves the UI from local.drizzle.studio in your browser. It supports PostgreSQL, MySQL, SQLite and SingleStore. Drizzle Studio itself is closed source and free for local development; Drizzle Kit and Drizzle ORM are open source.
Instructions
Step 1: Install and configure
Studio is a command of drizzle-kit and needs drizzle-orm installed in the same project (without it the command stops with "Please install latest version of drizzle-orm"). It takes its connection from a config file; it does not read DATABASE_URL by itself.
npm install drizzle-orm
npm install -D drizzle-kit
npx drizzle-kit studio
// drizzle.config.ts - Studio reads this file by default
import { defineConfig } from 'drizzle-kit'
export default defineConfig({
dialect: 'postgresql', // postgresql | mysql | sqlite | turso | singlestore | mssql | cockroach
schema: './src/db/schema.ts',
dbCredentials: {
url: process.env.DATABASE_URL!,
},
})
The old driver: 'pg' and dbCredentials.connectionString keys are gone from current Drizzle Kit; use dialect and url. driver now only selects special cases such as aws-data-api or pglite. For SQLite use dialect: 'sqlite' with url: './dev.db' and a SQLite driver (for example better-sqlite3) installed.
The terminal prints Drizzle Studio is up and running on https://local.drizzle.studio?port=4983. Open that link; the page talks to the server on your own machine.
Step 2: Options, ports and environments
npx drizzle-kit studio --config=drizzle-staging.config.ts # another config file
npx drizzle-kit studio --port=4990 # default port is 4983
npx drizzle-kit studio --verbose # print every SQL statement Studio runs
--hostexists, but--host=0.0.0.0exposes your database browser to the network. Leave it at the default loopback address (checked: the server listened only on127.0.0.1:4983).- Keep one config per environment (
drizzle-dev.config.ts,drizzle-prod.config.ts) and choose with--config. Load.envyourself (import 'dotenv/config'at the top of the config) if the variable lives in a file. - Safari and Brave block requests to localhost. Install
mkcert, runmkcert -install, then restartdrizzle-kit studio. - Studio is for local use. For a shared or remote instance Drizzle offers Drizzle Gateway (self-hosted) or a browser extension for serverless vendors; do not run
drizzle-kit studioon a public server.
Step 3: What you can do in the UI
- Browse tables and schemas, page through rows, filter and sort by columns, follow relations defined in your Drizzle schema.
- Edit cells, add rows and delete rows; changes go to the database right away, there is no undo.
- Run SQL in the SQL runner and read results as a table.
Examples
Example 1: Debug production data issues
User prompt: "I need to quickly inspect the users table and find all accounts created in the last 24 hours that haven't verified their email."
The agent will:
- Create
drizzle-readonly.config.tswhosedbCredentials.urlreadsprocess.env.READONLY_DATABASE_URL(a role with SELECT only). - Run
npx drizzle-kit studio --config=drizzle-readonly.config.tsand open the printedlocal.drizzle.studiolink. - Open the
userstable and filteremail_verified = falseandcreated_atafter yesterday, or paste the same condition into the SQL runner. - Report the matching rows back to the user.
Example 2: Inspect a local SQLite database
User prompt: "Show me what is in dev.db after my seed script ran."
// drizzle.config.ts
import { defineConfig } from 'drizzle-kit'
export default defineConfig({
dialect: 'sqlite',
schema: './src/db/schema.ts',
dbCredentials: { url: './dev.db' },
})
npm install drizzle-orm better-sqlite3
npx drizzle-kit studio --port=4990
Open https://local.drizzle.studio?port=4990, check that the seeded rows are in each table, and stop the server with Ctrl+C when finished.
Guidelines
- Use read-only database credentials when browsing production data; Studio edits and deletes immediately.
- Do not bind Studio to
0.0.0.0or put it on a public host: anyone who reaches the port can read and change the data. drizzle-kit studiorequiresdrizzle-ormin the project and a config withdialectanddbCredentials. Config keys from old Drizzle Kit versions (driver: 'pg',connectionString) are not part of the current config format.- Studio is a development and debugging
Установить drizzle-studio в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл drizzle-studio?
Explore and manage databases with Drizzle Studio. Use when a user asks to browse database contents visually, inspect tables and data, run ad-hoc queries, manage database records through a GUI, debug database issues, or use a lightweight alternative to pgAdmin or DBeaver. Covers setup with Drizzle ORM, standalone usage, data browsing, filtering, and inline editing.
Как установить скилл drizzle-studio?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл drizzle-studio запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic