Sign up Log in
n/open-source · 2d ago · 182 views
u/sao-codingBronze
n/open-sourceu/sao-coding · 2d ago

Locus: a lightweight open-source database tool built with GPUI

I'm on Windows all day and constantly connecting to different databases to look at data, but after getting used to tools like DBeaver I've always found them slow to start and memory-hungry, and they choke when pulling a few hundred thousand rows. And every time I need to connect to Oracle I have to mess around installing a Client, which drives me nuts.

So I just wrote my own open-source desktop client in Rust using Zed's GPUI framework: Locus.
The core features all work now. Here's a quick rundown of the design decisions I focused on:

  1. Space-based environment isolation, borrowed from the Arc browser
    I made the Dev, Staging, and Production connections and tabs into Spaces with different colors, switchable instantly with Ctrl + 1~9. The main point is to fix the pain of hopping between environments and accidentally editing the wrong database because you weren't paying attention.
  2. Production safeguards against accidental writes
    As soon as a connection is marked as Production, it's strictly read-only by default. If you really need to run a write or an update, you have to manually unlock it for a limited time and confirm each statement, and a full audit log is recorded automatically underneath.
  3. Native support for multiple databases & streaming queries
    Currently supports MySQL / MariaDB, PostgreSQL, SQLite, Redis, SQL Server, and Oracle (built in, no separate Oracle Client install needed). Query results stream in and render as they arrive, and hitting cancel actually sends an interrupt to the database server, so the UI never freezes.
    The project is open source under AGPL-3.0, and all connection passwords are stored via the local Windows Credential Manager — no plaintext on disk.

GitHub: https://github.com/sao-coding/locus

Translated by AI from 简体中文

7
3
Log into join the discussion.
QuicksilverVPN

快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。

umami.dnsl.top Learn more

3 replies

Sort order
  1. James 💯 Legend MANAGER 2d ago

    It'd be awesome if this could replace DBeaver.

    Translated by AI from 简体中文

    0
  2. James 💯 Legend MANAGER 2d ago

    Does TiDB support ClickHouse?

    Translated by AI from 简体中文

    0
  3. sao-coding Bronze OP 2d ago

    Not supported yet — I'll note it down and add it later when I get a chance. Thanks!

    Translated by AI from 繁體中文

    0