npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

datapeek

v0.1.17

Published

A local SQL database browser CLI tool

Readme

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

Option 1: With Connection String (Recommended)

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

  • 🗄️ Multi-Database Support - Works with both SQL Server and PostgreSQL
  • 📊 Browse Tables - Explore database schemas and tables with an intuitive sidebar
  • 📋 View Data - Paginated table views with Excel-like cell selection and copy
  • 🔍 Search & Filter - Quickly find tables and data with advanced filtering
  • 📝 SQL Editor - Write and execute queries with syntax highlighting and query history
  • 🔗 Foreign Key Navigation - View related data with foreign key displays
  • 📦 JSON Support - View and explore JSON objects with expandable formatting
  • Favorites - Bookmark frequently used tables
  • 💾 Connection History - Recent connections are remembered per database
  • 🎨 Modern UI - Clean, responsive interface
  • 🌓 Dark Mode - Built-in theme toggle
  • 📋 Copy to Excel - Select cells and copy with headers (Ctrl+C)
  • ⏱️ Query Cancellation - Cancel long-running queries (30-minute timeout)

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

  • Node.js 18 or higher
  • SQL Server database (local or remote) OR PostgreSQL database (local or remote)

License

MIT