Open source · Built in Rust

sq/lab

A blazing-fast SQL IDE for developers who care about craft. Query, version, and agent-code your databases — without the bloat.

Download for macOS Star on GitHub
<80MB
Memory
<25ms
Cold start
Native
Not Electron
MIT
License
Supported databases
PostgreSQL PostgreSQL Supported
MySQL MySQL Supported
SQLite SQLite Supported
DuckDB DuckDB Coming soon
Databend Databend Coming soon

// why sq/lab

Built different. By design.

Most SQL editors are slow, bloated, or locked behind a paywall. sq/lab is none of those things.

Query detector
Detects the query under your cursor so you know exactly what will execute — no need to manually select anything first.
File editor
Edit .sql files directly. No copy-paste — your queries live in your repo.
Built-in terminal
Git, migrations, and coding agents — without leaving the IDE.
Rust-native speed
GPUI-powered. Uses a fraction of the RAM DataGrip or DBeaver needs.

// beyond the pillars

Everything around the query matters.

sq/lab keeps the daily database workflow in one native workspace: inspect schemas, jump across files, complete SQL from real metadata, and store credentials in the operating system keychain.

Live schema treeBrowse schemas, tables, views, indexes, triggers, functions, and columns from the connection panel.
File searchFind SQL files and project references quickly without leaving the editor.
Metadata-aware autocompleteComplete tables, aliases, and columns from your current database context.
Secure password storagePasswords are stored through native keychain providers instead of plain project files.

sq/lab is a fast, open-source SQL IDE built in Rust — powered by GPUI, the same GPU-accelerated UI engine that drives the Zed editor. A workspace built for developers who treat SQL as code.

— the sq/lab project

Ready to query
at the speed of thought?

Download sq/lab for free and feel the difference on your first query.

Download for macOS View on GitHub