pgquery Open the app

Free · open source · no install

Query Postgres. Browse S3. Install nothing.

One browser client for your remote data: a full PostgreSQL studio and an S3 bucket browser in the same tab. Paste a connection string or an access key and you are in. What you save stays in your browser, and there is no account.

Postgres on Supabase, Neon, RDS or your own server, and S3-compatible storage such as AWS S3, R2 and MinIO, as long as it is reachable from the internet. Self-host it for private networks, or read the source.

FIG. 1 Connect, open a table, edit a value, run SQL. A real recording, no cuts.

Compared honestly

Where it wins. Where it doesn’t.

pgquery is ours, so the gaps are listed as carefully as the strengths. Full comparison with CloudBeaver and Adminer, or vs DBeaver.

pgquery and the main web-based alternatives
FeaturepgquerypgwebDbGatepgAdmin 4Supabase Studio
Self-hosted asOne Go container (or use the hosted app)One Go binary or containerNode.js server (container or npm); also desktopPython web appPart of the Supabase stack
Own login and user accountsNoNone needed when hosted; self-hosted, use a VPN or auth proxyPartlyHTTP basic authYesYesPartlyBasic auth when self-hosted
SSH tunnelNoYesYesYesNo
Visual EXPLAINYesTree with time sharePartlyEXPLAIN as textNot in its feature listYesYes
Row Level Security editorYesNoNot in its feature listYesYes
Performance and security advisorsYesPartlyActivity and settings viewsNoPartlyActivity dashboardsYesMore checks than pgquery
Backup and restoreNoUse pg_dumpPartlypg_dump export, no restorePartlyImport / export, NDJSON archivesYesPartlyPlatform backups
Import CSVNoNoYesAlso Excel, JSON, XMLYesYes
LicenseMITMITGPL-3.0 (paid Premium)PostgreSQL LicenseApache 2.0
MaturityNew (2026), one maintainer10+ years, small teamVery active, company-backed10+ years, PostgreSQL communityLarge company, very active
Yes Partly No · Checked against each project’s documentation, November 2026. Corrections welcome on GitHub.

Where pgquery wins

  • More than a query explorer: RLS policies, roles, indexes, functions, triggers, extensions and settings, which pgweb doesn’t cover.
  • Postgres-specific depth DbGate doesn’t focus on: Row Level Security, performance and security advisors, pg_stat_statements.
  • EXPLAIN ANALYZE as a tree that points at the slowest node and flags bad row estimates.
  • Nothing to install: open the hosted app and connect. Or self-host one small, stateless container; nothing is stored on the server.

Where pgquery loses

  • No SSH tunnels. pgweb, DbGate, pgAdmin and CloudBeaver connect through a bastion host where pgquery cannot.
  • No login of its own. pgweb has basic auth, DbGate, pgAdmin and CloudBeaver have accounts; a self-hosted pgquery needs a VPN or an auth proxy.
  • PostgreSQL only. DbGate, CloudBeaver and Adminer also speak MySQL, SQLite, SQL Server and more.
  • No backup / restore, CSV import or schema diff. DbGate and pgAdmin have them, and DbGate previews even row edits as SQL.

Procedure 1

Get started

1Open the app.pgquery.dev/app
2Paste a connection string, or choose S3 and add a bucket’s keys. They are saved in this browser only.postgres://user:pass@host/db
3Optional: run your own copy, for private networks or your own limits.
docker run -p 54280:54280 ghcr.io/hxndrik/pgquery

Specifications

Runs atpgquery.dev/app, or self-hosted as one container (amd64, arm64)
AccountsNone
Where state livesYour browser (localStorage). The server is stateless and keeps nothing.
Hosted app reachesDatabases on the public internet. Self-host for private networks and localhost
Schema changesShown as SQL before they run; dropping a table asks first
EncryptionSSL when the server offers it, with a warning when it doesn’t
Connection formatspostgres:// URI, Npgsql / ADO.NET key=value (Host=…;Database=…)
Also browsesS3-compatible buckets, one per connection (what it does and doesn’t do)
LicenseMIT
FIG. 2 Tuple, the operator. Drawn on a 30 × 20 grid.

Note from the author

A personal project

pgquery is a tool I built for my own Postgres work and decided to publish. It is free and will stay free; it is not built to make money. Expect a few rough edges. If something breaks, a feature is missing or the hosted limits get in your way, open a GitHub issue: a link and a short description is plenty.

Questions

What is pgquery?

A free, open-source client for remote data that you open in your browser: a PostgreSQL studio (SQL editor, table editor, ER diagram, RLS policies, roles, indexes, an EXPLAIN plan viewer, performance and security advisors) and an S3 bucket browser in one tab. You connect your live database or bucket; nothing is installed.

Where are my connection strings stored?

Saved connections (S3 keys included), tabs and history live in your browser (localStorage). Each query is sent with its connection string to the pgquery server, which opens a connection, runs it and returns the rows. S3 requests work the same way, and uploaded and downloaded files pass through the server without being kept. The server is stateless and open source; its code does not log or store connection strings, keys, queries or files. To keep everything inside your own network, self-host.

Is it really free?

Yes. MIT licensed, no paid tier, no account.

Can it browse S3 buckets?

Yes, one bucket per connection on AWS S3, Cloudflare R2, MinIO or another S3-compatible service: folders, previews, upload, download and delete. It has no multipart upload, versioning or bucket management; see the S3 guide for the full list.

Does it work with RDS, Supabase, Neon or a VPS?

Yes. The hosted app reaches any PostgreSQL server on the public internet. For a database in a private network or on localhost, self-host pgquery next to it.

What are the limits on pgquery.dev?

The hosted app at pgquery.dev reaches databases and buckets on the public internet only (private and local addresses are refused), and limits rows per query, query time, upload size and requests per IP. Self-host to reach private networks and set your own limits.

Something is broken, missing or too limited. Where do I say so?

Open a GitHub issue at https://github.com/Hxndrik/pgquery/issues/new/choose; a link and a short description is plenty. That goes for bugs, missing features, hosted limits that get in your way, or interest in more than the free app offers. pgquery is a personal project, so feedback is very welcome.

How do I self-host it?

Run docker run -p 54280:54280 ghcr.io/hxndrik/pgquery and open http://localhost:54280. It has no login of its own, so put a shared instance behind a VPN or an authenticating proxy.

How is it different from pgweb?

pgweb is a lean, mature query explorer shipped as one binary, with SSH tunnels. pgquery adds the administration side (RLS policies, roles, indexes, functions, triggers, extensions, settings), advisors, a visual EXPLAIN tree and an ER diagram; it has no SSH tunnels yet.

Is pgquery related to the pg_query parser library?

No. pg_query by pganalyze is a Postgres query parser for developers; pgquery is a database GUI.