
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.
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.
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.


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"
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
MIT