Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pgweb

> 数据库
Open source

Cross-platform client for PostgreSQL databases

9.5K stars0 likes1 views
WebsiteGitHub

About

Cross-platform client for PostgreSQL databases

pgweb

Simple web-based and cross platform PostgreSQL database explorer.

Overview

Pgweb is a web-based database explorer for PostgreSQL, written in Go, and works on Mac, Linux and Windows machines. Distributed as a simple binary with zero dependencies. Very easy to use and packs just the right amount of features.

See application screenshots

Features

  • Cross-platform: Mac/Linux/Windows (64bit).
  • Simple installation (distributed as a single binary).
  • Zero dependencies.
  • Works with PostgreSQL 9.6+.
  • Supports native SSH tunnels.
  • Multiple database sessions.
  • Execute and analyze custom SQL queries.
  • Table and query data export to CSV/JSON/XML.
  • Query history.
  • Server bookmarks.

Visit WIKI for more details.

Demo

Visit https://pgweb-demo.fly.dev/ to see Pgweb in action.

Installation

  • Precompiled binaries for supported operating systems are available.
  • More installation options

Usage

Start server:

pgweb

You can also provide connection flags:

pgweb --host localhost --user myuser --db mydb

Connection URL scheme is also supported:

pgweb --url postgres://user:password@host:port/database?sslmode=[mode]
pgweb --url "postgres:///database?host=/absolute/path/to/unix/socket/dir"

Multiple database sessions

To enable multiple database sessions in pgweb, start the server with:

pgweb --sessions

Or set environment variable:

PGWEB_SESSIONS=1 pgweb

Testing

Before running tests, make sure you have PostgreSQL server running on localhost:5432 interface. Also, you must have postgres user that could create new databases in your local environment. Pgweb server should not be running at the same time.

Execute test suite:

make test

If you're using Docker locally, you might also run pgweb test suite against all supported PostgreSQL version with a single command:

make test-all

Contribute

  • Fork this repository
  • Create a new feature branch for a new functionality or bugfix
  • Commit your changes
  • Execute test suite
  • Push your code and open a new pull request
  • Use issues for any questions
  • Check wiki for extra documentation

License

The MIT License (MIT). See LICENSE file for more details.

Issues· 56 open

View all issuesOpen on GitHub
  • #869

    Connect-backend authorization bypass via direct /api/connect arbitrary connection string

    Updated Aug 4, 2026
  • #606

    Add support for dark mode

    Updated Jul 28, 2026
  • #866

    Docker Compose wiki example uses outdated DATABASE_URL environment variable

    Updated Jul 6, 2026
  • #862

    Show connected server name in the UI sidebar

    Updated Jun 30, 2026
  • #850

    FEATURE REQUEST: Visual Table Viewer

    Updated Jun 10, 2026
  • #815

    Direct negotiation

    Updated Jun 8, 2026
  • #625

    Frontend refactor

    Updated Jun 2, 2026
  • #852

    Wiki for Windows

    Updated Apr 23, 2026
  • #829

    Optional Persistent Query History

    Updated Apr 10, 2026
  • #847

    PGWEB_SSL_DISABLE option

    Updated Apr 5, 2026

> Tags

Gocross-platformgolangpgwebpostgresql

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库