datapeek

Datapeek Logo

A modern, local SQL database browser for SQL Server and PostgreSQL databases.

Datapeek provides an intuitive web-based interface to browse, query, and explore your SQL Server and PostgreSQL databases directly from your terminal.

Quick Start

Run Datapeek with your connection string directly:

SQL Server:

npx datapeek "Server=localhost;Database=MyDB;User Id=sa;Password=password;"

PostgreSQL:

npx datapeek "postgresql://user:password@localhost:5432/mydb"

This will automatically connect and open your browser to the Datapeek interface.

Option 2: Without Connection String

Run Datapeek without arguments to use the interactive connection dialog:

npx datapeek

A connection dialog will open in your browser where you can enter your database connection details.

Screenshots

Light Mode

Datapeek Light Mode Datapeek Light Mode

Dark Mode

Datapeek Dark Mode Datapeek Dark Mode

Features

Installation (Optional)

If you use Datapeek frequently, you can install it globally:

npm install -g datapeek

Then run it directly:

SQL Server:

datapeek "Server=localhost;Database=MyDB;User Id=sa;Password=password;"

PostgreSQL:

datapeek "postgresql://user:password@localhost:5432/mydb"

Development

For developers who want to contribute or customize Datapeek:

# Clone the repository
git clone https://github.com/bishoymly/datapeek.git
cd datapeek

# Install dependencies
npm install

# Run development server (opens browser automatically)
npm run dev

# Run with connection string (SQL Server)
CONNECTION_STRING="Server=localhost;Database=MyDB;User Id=sa;Password=password;" npm run dev

# Run with connection string (PostgreSQL)
CONNECTION_STRING="postgresql://user:password@localhost:5432/mydb" npm run dev

# Build for production
npm run build

Requirements

License

MIT