Skip to content
AwesomeDogPublic

About

Self-hosted web database console & SQL GUI for MySQL, PostgreSQL, SQLite, MongoDB, Redis, SQL Server, Oracle & Elasticsearch. DataGrip / phpMyAdmin alternative.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

dbjack — a single-binary web database client for MySQL, PostgreSQL, SQLite, MongoDB, Redis and more

GitHub stars for dbjack Built with Go 1.27 dbjack Docker image on GHCR Runs on Linux, macOS and Windows, amd64 and arm64 8 SQL and NoSQL database engines

Every database. One tab. dbjack is a self-hosted web database console and SQL GUI that connects directly to MySQL / MariaDB, PostgreSQL, SQLite, SQL Server, Oracle, Elasticsearch, MongoDB, and Redis. It ships as one pure-Go binary with the React frontend embedded: no Java, no cgo, no PHP, no account system, no external dump tools.

Run it on your laptop, put it behind a reverse proxy as a shared database admin panel, or mount it as an http.Handler at /admin/db inside your Go app. If you are looking for a lightweight alternative to DataGrip, phpMyAdmin or a hand-written CRUD back office, this is the shape of it: a familiar Query Console and Data Editor in the browser, with eight engines side by side in one Database Explorer.

dbjack web database console: Database Explorer across multiple data sources, an SQL Query Console, and a result grid

Contents

At a glance

What it is A browser-based database client: Database Explorer, Query Console, Data Editor, DDL viewer, result grid, import / export
Engines 8: MySQL / MariaDB, PostgreSQL, SQLite, SQL Server, Oracle, Elasticsearch, MongoDB, Redis
Distribution One static binary (Linux / macOS / Windows × amd64 / arm64) via Homebrew, winget, npm or Releases; Docker image ghcr.io/awesomedog/dbjack; or Go library github.com/AwesomeDog/dbjack (built from a clone)
Setup Zero config to start: pass native connection URIs as arguments. Three configuration keys total: listen, base_path, datasources
Performance Cold start under 1 s; 100k-row results scroll smoothly; 1 GB SQL scripts import by streaming with flat memory
Formats SQL, CSV, JSON / ndjson, Redis command files; gzip for one object, zip for many
By design No login of its own, no app-level read-only mode, no helper objects created in your databases, credentials never sent to the browser

Supported databases

All data sources are native URIs. The same binary handles every engine; capabilities such as transactions, cancellation and DDL generation follow what the engine supports.

Engine URI scheme Query language Notes
MySQL / MariaDB mysql:// Multi-statement SQL SHOW CREATE DDL, EXPLAIN ANALYZE, KILL QUERY, stored procedures (5.7+ / 10.3+)
PostgreSQL postgres:// · postgresql:// Multi-statement SQL Schemas and search_path, COPY, NOTICE, DDL rebuilt from catalogs (12+)
SQLite file: Multi-statement SQL One file per data source, pure-Go driver, no cgo
SQL Server sqlserver:// T-SQL, GO batches Databases / schemas, SHOWPLAN_XML (2012+)
Oracle oracle:// SQL, PL/SQL blocks ending in / DBMS_METADATA DDL, DBMS_XPLAN (12.2+)
Elasticsearch http:// · https:// ES SQL (read-only) Indices as tables, aliases as views, mapping as DDL (7.10+ with SQL enabled)
MongoDB mongodb:// · mongodb+srv:// mongo shell subset, db.runCommand({}) Tree / Table / Text views, Extended JSON editing (4.4+)
Redis redis:// · rediss:// redis-cli commands, one per line SCAN-based prefix tree, type-aware editors, cluster aware (5+, ACL 6+)

Protocol-compatible services use the same URI scheme and are treated as that engine — no special detection or adaptation, but a convenient way to get a web GUI for a hosted or distributed database. Engine-specific capabilities may differ:

  • mysql://: TiDB, OceanBase (MySQL mode), PolarDB-MySQL / TDSQL-C, Aurora MySQL, Percona, PlanetScale / Vitess, Doris / StarRocks
  • postgres://: Supabase, Neon, TimescaleDB, Citus, Aurora PostgreSQL, PolarDB-PG, YugabyteDB

Features

Six jobs, and nothing else: connect, find objects, read data, edit data, change schema, move data. The interface follows a desktop GUI database client — Query Console, Data Editor, Services, Live Templates — so existing muscle memory carries over to the browser.

Query Console and SQL editor

Per-engine syntax highlighting and completion (alias-aware SQL columns, Mongo methods and operators, Redis commands); Ctrl/Cmd+Enter runs the statement at the caret, the selection, or everything. Multi-statement results, Explain Plan / Explain Analyse, transactions (Tx: Auto / Manual), cancellation that reaches the engine, Query History, and Execute to File for results too large for the browser.

Data Editor and result grid

Browse with pagination, sorting and SQL WHERE / Mongo filter / Redis MATCH. Stage cell edits, add, clone or delete rows, then Submit or Revert; Preview Pending Changes is optional. Value Editor for text, JSON, hex and images. Results use virtual scrolling and copy a selection as TSV, CSV, JSON, SQL Inserts, Markdown or an IN (…) list.

Database Explorer and schema changes

One lazy, cached tree across all data sources, with Speed Search and double-Shift Search Everywhere (objects, actions, Live Templates). Create / Modify Table and Create / Modify Database share one non-modal dialog; every generated statement — SQLite table rebuilds included — can be previewed, edited and executed. Go to DDL opens a read-only definition tab.

Import, export and data movement

Export Data, Import Data from File, Run Script and Copy Table to are all streamed in the browser, with progress and cancellation. No mysqldump, pg_dump, mongodump or redis-cli on the host. Copy Table to moves tables, collections or Redis key prefixes within a data source or across data sources of the same engine — the "pull the test database down to local" workflow.

Deep links and Live Templates

The URL is the state: /{base}/{tab}/{datasource}/{namespace}/{object}?filter=…&order=…&page=…&size=… addresses any table, filter, sort or DDL, and ?q= prefills a query without ever auto-executing it. Built-in Live Templates replace admin UIs with per-engine snippets for process lists, lock waits, table bloat, slow logs, big keys, grants, VACUUM and more. A Terminal tool window provides a shell on the dbjack host per tab.

Installation

# Windows (winget)
winget install AwesomeDog.dbjack

# macOS (Homebrew)
brew install AwesomeDog/tap/dbjack

# Linux, or any platform with Node.js
npm install -g @awesomedog/dbjack

# Direct binary (Linux amd64; all six builds: https://github.com/AwesomeDog/dbjack/releases)
curl -fsSL https://github.com/AwesomeDog/dbjack/releases/latest/download/dbjack-linux-amd64 -o dbjack
chmod +x dbjack && sudo mv dbjack /usr/local/bin/

# Docker — put a reverse proxy in front before anyone else can reach it; WORKDIR /data, amd64 + arm64
docker run --rm -p 1618:1618 \
  -e DBJACK_LISTEN=0.0.0.0:1618 \
  ghcr.io/awesomedog/dbjack \
  "postgres://user:pass@192.168.1.100:5432/app"

# Check the install
dbjack --version

Spring Boot sidecar — copy the binary into your own image or route it as a sidecar; see §5.4.4 Embedded, other stacks in the PRD for the config.

Go library — mount the http.Handler behind your own middleware; see §5.4.3 Embedded, Go in the PRD for the build commands and example.

Quick start

# Fetch sample SQL and build demo.db and start dbjack on it
curl -fsSL https://raw.githubusercontent.com/AwesomeDog/dbjack/main/testdata/sqlite.sql | sqlite3 demo.db
dbjack file:demo.db

# Start with your own db
dbjack file:./app.db mysql://root@127.0.0.1:3306/app redis://127.0.0.1:6379

dbjack listens on 127.0.0.1:1618 by default and opens your browser automatically on loopback. dbjack --help lists all options.

Configuration

Three keys, every one optional. Data sources are predefined only — a config file, positional CLI arguments, or environment variables. The UI never adds or edits them, and changes take effect after a restart.

Key Default Notes
listen 127.0.0.1:1618 Any host:port
base_path / Mount under a prefix such as /admin/db
datasources[] — name (display only), uri (required, native URI), color (red … purple)
# dbjack.yaml — looked up as --config / DBJACK_CONFIG, then ./dbjack.yaml,
# then $XDG_CONFIG_HOME/dbjack/config.yaml
listen: 127.0.0.1:1618
base_path: /admin/db
datasources:
  - name: main
    uri: "postgres://user:pass@localhost:5432/app?sslmode=disable"
    color: blue
  - name: local
    uri: "file:./app.db"

Environment variables mirror the flags: DBJACK_LISTEN, DBJACK_BASE_PATH, DBJACK_CONFIG, and DBJACK_DATASOURCE[_<NAME>] for data sources (e.g. DBJACK_DATASOURCE_PROD). Scalars take command line > environment > config file > defaults; data sources from all three origins are combined. TLS, timeouts, read preference and similar options travel as URI parameters (sslmode, tls, tlsCAFile, rediss://), not as UI settings.

Duplicate URIs are a startup error; parsing is strict and names the offending field. Data sources are identified in links by the first 8 hex digits of the SHA-256 of the URI — credentials never appear in a URL.

Deployment and security

Choose the mode by what sits in front of dbjack; all modes have identical features.

  1. Local — single binary, zero config, loopback only, browser opens automatically.
  2. Server (recommended when others can reach it) — container behind a reverse proxy that handles authentication and TLS; DBJACK_BASE_PATH lets it share a domain with your app.
  3. Embedded in Go — in-process http.Handler behind the host app's middleware.
  4. Sidecar — separate process routed to by any other stack, so its middleware applies.
docker run -p 1618:1618 \
  -e DBJACK_LISTEN=0.0.0.0:1618 \
  -e DBJACK_BASE_PATH=/admin/db \
  -e DBJACK_DATASOURCE_TEST="postgres://dev:***@pg-test:5432/app" \
  -e DBJACK_DATASOURCE_PROD="mysql://ro_user:***@10.0.0.5:3306/shop" \
  ghcr.io/awesomedog/dbjack

dbjack has no authentication, access gate or network-exposure restriction of its own. Who can reach it is the deployer's job (reverse proxy or host app). What a user can run depends only on the database identity behind the connection: for read-only access, connect with a read-only database user. Connection URIs stay on the Go side, logs are masked, cell content is never rendered as HTML, and dbjack never creates helper tables, schemas or keys in a target database.

How dbjack compares

Lighter than an IDE, broader than a single-engine admin, easier to deploy than all of them.

Tool Where dbjack fits
DataGrip / desktop GUI clients Adds web access, single-binary deployment, embedding and deep links; drops IDE features (refactoring, VCS, debugging, ER design)
phpMyAdmin Eight engines instead of one, less UI, streaming import / export, no PHP stack
Django Admin and similar CRUD back offices No framework or ORM lock-in and no model registration code — it connects directly to any data store

FAQ

Is dbjack a phpMyAdmin alternative?

For self-hosted, browser-based database administration, yes: it covers the same daily work (browse tables, run queries, edit rows, change schemas, import and export) across eight engines, from one Go binary with no runtime dependencies. It deliberately has no user management UI, BI, charts or plugin system.

Is dbjack a DataGrip alternative?

For developers who want a lightweight multi-engine database client in a browser, yes — same terms and interactions (Query Console, Data Editor, Services, Live Templates), plus shareable deep links and mounting inside an app. It is not an IDE: no refactoring, VCS, debugging or ER diagrams.

Can I use it as a self-hosted admin panel for my app?

Yes. Mount the Go http.Handler at /admin/db, or run the binary as a sidecar and route that path through your gateway, so the host app's authentication applies. No ORM, model registration or generated CRUD code is needed.

Does dbjack have authentication, users or a read-only mode?

No, by design. Authentication and TLS termination belong to your reverse proxy or host app; read/write permissions belong to the database user in the connection URI. There is no app-level statement filtering, timeout or fetch-size limit.

Does dbjack write anything into my databases?

Only the objects and rows you explicitly create or change. It never creates helper tables, schemas or keys, and it never shells out to mysqldump / pg_dump / mongodump / redis-cli — import and export are built in and streamed to the browser.

Which hosted databases does it work with?

Anything using the MySQL or PostgreSQL protocol with the same URI scheme is treated as that engine: Supabase, Neon, TimescaleDB, Aurora, TiDB, PlanetScale / Vitess, Doris / StarRocks and friends. There is no per-service adaptation, so engine-specific features may differ. See Supported databases.

Do deep links expose credentials?

No. A deep link addresses a data source by name@id, where id is a short hash of the URI; credentials stay on the server and never appear in a link or log. A ?q= parameter on a console link only prefills the editor, it never runs the query.

Is Elasticsearch editable?

No — Elasticsearch is read-only through ES SQL. Query Console, browsing, Explain and CSV / JSON export work; Data Editor editing, Modify, Import, Copy Table to and Run Script do not.

What dbjack does not do

DBA operations (replication, binlog, HA, backup scheduling, monitoring), admin panels for server sessions, built-in accounts and RBAC, BI / reports / charts / ER diagrams, Explain visualization, IDE features, theme customization, custom keymaps, a plugin system, long-tail import formats, Mongo JS scripts / transactions / GridFS, and Redis modules. Settings, Query History and custom Live Templates live locally in the browser; the server keeps only in-process session and execution state.

Development

# Install dependencies
pnpm -C web install
go mod download

# Build (the frontend is embedded, so build it first)
pnpm -C web build
go build -o dbjack ./cmd/dbjack

# Develop: test databases with sample data
docker compose up -d
go run ./cmd/dbjack --config testdata/dbjack.yaml
docker compose down

# Release: bump version & trigger CI
v=v1.2.3 && git tag -a "$v" -m "Release $v" && git push origin "$v"

compose.yaml starts MySQL, PostgreSQL, SQLite, MongoDB, Redis, SQL Server, Oracle and Elasticsearch with seeded sample data; testdata/dbjack.yaml points dbjack at all of them.

One-command showcase (all eight engines, dbjack included): docker compose --profile showcase up -d → http://127.0.0.1:1618 → docker compose down -v.

Documentation

dbjack — a single-binary web database console for eight engines. Point it at a database; that's the setup.

About

Self-hosted web database console & SQL GUI for MySQL, PostgreSQL, SQLite, MongoDB, Redis, SQL Server, Oracle & Elasticsearch. DataGrip / phpMyAdmin alternative.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages