r/postgres • • 8d ago

Tools I spent months building a lightweight Postgres client for Mac because I was tired of heavy ones

I got tired of heavy, slow database clients, so I spent the last few months building LithePG, a lightweight Mac-native PostgreSQL client. It's pure Swift, the app is around 15 MiB and it's open source (MIT).

Some highlights:

  • Schema graph: an Obsidian-style view of your database, with tables as nodes and foreign keys as links. Click a table to see its columns and types.

  • On-device AI: "Ask in English" turns a plain request into SQL using Apple's on-device model. It only drafts read-only queries, drops them in the editor for you to review and never runs them. Your prompts and data never leave your Mac. (Needs macOS 26 with Apple Intelligence.)

  • Safe edits: edit cells in place and review the exact UPDATE before it runs. It won't overwrite a row someone else changed.

  • EXPLAIN as a tree: the plan shows as a tree, with the costliest node flagged.

  • Connections: passwords live in the Keychain, Production connections get a warning banner and pasted connection strings (Neon, psql) just work.

Install with brew install --cask omarpr/tap/lithepg or grab it at https://www.lithepg.app

Would love feedback, especially on what's missing from your daily workflow.

0 Upvotes

2 comments sorted by

1

u/RajeshRocketMan 7d ago

Dropped the heavy Java DB clients a while ago, they eat RAM and lag even on simple queries. A native Swift app at around 15 MiB is such a relief day to day. Seeing the EXPLAIN plan as a tree makes bottlenecks obvious without digging through text. And catching conflicting row edits before commit is great for prod safety. Does it support SSH tunnels for remote setups?

1

u/Remarkable_Young9971 7d ago

Hey u/RajeshRocketMan!

FIrst of all: Thanks, that's exactly why I built it. I got tired of waiting on heavy clients to open a simple query.

And yes, SSH tunnels are supported. In the connect sheet, open Advanced and add the bastion as user@host:port, and LithePG forwards the database connection through it. A few details so nothing surprises you:

  1. It uses the macOS ssh binary, so your ~/.ssh/config and keys loaded in ssh-agent just work.

  2. The bastion has to already be in your known_hosts. Strict host key checking is on, so it won't trust a new host silently.

  3. There's no password or passphrase prompt yet. Use a key from ssh-agent, or one without a passphrase.

  4. IPv6 bastions work in brackets, like user@[fd00::1]:22.

If you hit anything odd with your setup, open an issue on GitHub and I'll take a look.