gitmyhub

pgweb

Go ★ 9.4k updated 12d ago

Cross-platform client for PostgreSQL databases

A lightweight browser-based PostgreSQL explorer that runs as a single downloaded file with no installation, browse tables, run queries, and export data from your browser in seconds.

Gosetup: easycomplexity 2/5

Pgweb is a browser-based tool for exploring and managing PostgreSQL databases. PostgreSQL is a popular open-source database system used to store and retrieve structured data, and pgweb gives you a visual way to interact with it without needing to type database commands into a terminal.

Once you start pgweb, it opens a web interface in your browser where you can browse tables, run custom queries, and export data in formats like CSV, JSON, or XML. You can connect to a database using a URL or by supplying connection details as command-line flags. If you need to connect to a remote database through a secure tunnel (a way of routing traffic through an intermediate server for security), pgweb supports that too. You can also have multiple database sessions open at the same time, which is useful when switching between different projects or environments.

Installation is straightforward: pgweb is distributed as a single compiled file with no additional software required. You download the binary for your operating system, run it, and open your browser. It works on Mac, Linux, and Windows.

Query history is tracked automatically, so you can revisit earlier queries without retyping them. Server bookmarks let you save frequently used connections for quick access later.

The project is written in Go, which is a programming language known for producing fast, self-contained programs. The single-binary distribution is a direct result of this choice. The source code is open and available under the MIT license, meaning anyone can use, modify, or distribute it freely. A live demo is available online if you want to see the interface before installing anything.

Where it fits