Skip to content
المشاريع

حول

A fast, smooth database client for Windows. Built with Rust and GPUI.

البيانات والتحليلات

كيف تُقاس هذه الأرقام

204 نجمة5 التفرعات +16 خلال 24 ساعة

ما يمكنك فعله

  • SpacesYour own colours and icon per Space - Production lockWrites are blocked until you unlock
  • Relationship diagramDrawn from foreign keys; click a line to insert a JOIN - Command paletteCtrl+K finds commands, tabs, tables and history
  • Spaces: group connections and tabs, each with its own colors and icon
  • Vertical tabs; split the work area into up to 4 panes (Ctrl+Shift+M zooms one temporarily)

النمو المقاس للنجوم

خلال 24 ساعة
+١٦
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Locus

A database client for Windows that stays smooth.
GPU-rendered, written in Rust, one small exe.

Release CI Windows 10 and 11 License: AGPL-3.0

Download · Features · FAQ · 简体中文 · 繁體中文

Streaming 300,000 rows, then switching between three Spaces with Ctrl+2, Ctrl+3 and Ctrl+1
300,000 rows stream in, then Ctrl+1…3 switches Spaces. Each Space keeps its own connections, tabs and results.

  • No freezing. Results stream into the grid while the query is still running. A slow query or a huge table does not block typing, scrolling or switching tabs, and Cancel really stops the query on the server.
  • Production is locked by default. A connection marked Production is read-only. Writes need a timed unlock, every writing statement asks for its own confirmation, and each one lands in an audit log.
  • One window. Spaces, vertical tabs, split panes, and a command palette for everything else.

Download

Get the latest build from Releases. All three need Windows 10 or 11, 64-bit.

File
locus-<version>-windows-x64-setup.exe Installer. Per user, no admin, with a Start menu entry and an uninstaller.
locus-<version>-windows-x64-portable.zip Portable. Unzip anywhere and run locus.exe; keep sidecar.exe in the same folder.
locus-<version>-windows-x64.exe Single file, nothing to install. Some antivirus tools flag it because it unpacks a helper on first use; pick another build if yours does.

The builds are not code-signed, so SmartScreen may warn the first time.

Checking a download
# compare with the .sha256 file on the release page
Get-FileHash .\locus-<version>-windows-x64.exe -Algorithm SHA256

# build provenance, with the GitHub CLI
gh attestation verify .\locus-<version>-windows-x64.exe --repo sao-coding/locus

# minisign signature (the key is also in minisign.pub)
minisign -Vm .\locus-<version>-windows-x64.exe -P RWRDNREpYa8EZ59rUGsAnTVNIMjNfUWhciyq6SgS2MpNZvMGj0yVAZ0s

Supported databases

Database How Locus connects
MySQL / MariaDB Built in (Rust)
PostgreSQL Built in (Rust)
SQLite Built in (Rust), opens a file path
Redis Built in (Rust), with a key browser and command window
Oracle Bundled helper, pure-Go go-ora driver
SQL Server Bundled helper, pure-Go go-mssqldb driver

Nothing extra to install: Oracle and SQL Server go through sidecar.exe, which ships with every build.

Features

Space options: name, colours and icon

Spaces
Your own colours and icon per Space

A Production connection blocks a write until it is unlocked

Production lock
Writes are blocked until you unlock

Relationship diagram of a schema, drawn from its foreign keys

Relationship diagram
Drawn from foreign keys; click a line to insert a JOIN

Command palette searching commands, tabs, tables and history

Command palette
Ctrl+K finds commands, tabs, tables and history

Workspace

  • Spaces: group connections and tabs, each with its own colors and icon
  • Vertical tabs; split the work area into up to 4 panes (Ctrl+Shift+M zooms one temporarily)
  • Command palette, query history, light / dark / system theme, English, 简体中文 and 繁體中文

Query

  • SQL editor with syntax highlighting, find / replace, formatting, completion, and JOIN suggestions taken from foreign keys
  • Query parameters, saved queries and snippets
  • Auto-commit or manual transactions with Commit / Rollback
  • Execution plans

Results

  • Streaming grid, server-side cancel, filters, selection statistics
  • Follow a foreign key to the referenced row
  • Edit cells in place; changes are applied inside a transaction
  • Value viewer: text, JSON tree, hex, image

Objects

  • Object tree with paging and server-side search
  • Table structure tab, relationship diagram
  • Source and compile for stored procedures, functions, triggers and Oracle packages

Connections and safety

  • SSH tunnels; passwords are stored in the Windows Credential Manager
  • Production protection: read-only by default, timed unlock, audit log

Import and export

  • Import CSV and Excel
  • Export CSV, xlsx, JSON, SQL INSERT, Markdown and HTML, including streaming the full result from the server

AI tools (MCP)

  • Built-in MCP server on 127.0.0.1 for Claude Code, Cursor and other clients (off by default, token required); per-connection Off / Read-only / Read-write, Production writes ask you first. See docs/mcp.md

Administration

  • Server activity: sessions, kill a query, server variables
  • Redis: key browser, a viewer for each value type, command window

Performance

Locus (left) and DBeaver (right) loading 1,000,000 rows

Loading a 1,000,000-row, 12-column table with SELECT *, Locus on the left, DBeaver 26.0.5 on the right. Locus shows rows while they are still arriving and lets you stop the query; the GIF is real time.

Locus DBeaver
Load time, 1,000,000 rows 1.5 to 1.7 s (3 runs) 2.9 s (1 run; a second run failed with a driver error)
Memory when idle about 100 MB about 340 MB
Memory right after the load about 360 MB about 1.3 GB (peak 1.4 GB)
Memory after closing the result about 107 MB, within seconds about 1.37 GB, not released

Locus is not always faster: on a 100,000-row result both were done in under a second.

How it was measured

Intel Core i5-14400F, 15.8 GB RAM, Windows 11, MariaDB 11.8.5 on the same machine over 127.0.0.1, no TLS. Locus is the release build with the per-tab row limit off (a separate 1,000,000-row memory cap, set in Settings, still applies; this table has exactly that many rows). DBeaver uses its default 1 GB heap with the fetch size raised to 1,000,000 (its default is 200), so it loads everything at once. Memory is the process's private memory sampled about once a second. The two programs were measured in separate sessions, and DBeaver only once, so read the DBeaver column as one observation, not a benchmark.

Keyboard

Keys Action
Ctrl+K / Ctrl+Shift+P Command palette
Ctrl+Enter / Ctrl+Shift+Enter Run the statement at the cursor / the whole script
Ctrl+E Explain the statement at the cursor
Ctrl+S Save query
Ctrl+T / Ctrl+W New tab / close tab
Ctrl+\ / Ctrl+Shift+\ Split right / split down
Ctrl+Shift+M Zoom the current pane
Ctrl+1…9 Switch Space
Ctrl+B / Ctrl+J Sidebar / right panel
Ctrl+Shift+E Export the result
Ctrl+, Settings

Settings has the full list. To change a shortcut, edit %APPDATA%\Locus\keymap.json; see docs/keymap.md.

FAQ

Can a SELECT still change data on a Production connection? The guard reads the statement text, so it cannot see what a function called from a SELECT does. Known built-ins with side effects (nextval, pg_terminate_backend, GET_LOCK ...) are treated as writes; your own functions are not.

How do updates work? About once a day Locus asks GitHub whether a newer release exists and shows it in the status bar. The new version downloads in the background and installs only when you pick Restart and update, and only if its minisign signature matches minisign.pub. Each copy updates the way it was installed: the installer runs the new setup, a zip copy swaps locus.exe and sidecar.exe, and the single exe replaces itself. Scoop installs are left to scoop update. Both can be turned off in Settings › About.

How do I reset or remove everything? In a portable copy, delete its data folder. Otherwise, settings, connections and history live in %APPDATA%\Locus. %LOCALAPPDATA%\Locus holds downloaded updates and, for the single exe, the unpacked helper. Delete both folders.

Can I keep everything next to the program? Yes, that is portable mode. The zip comes with a data folder next to locus.exe, and while it is there everything Locus writes (settings, connections, history, logs, downloaded updates) goes into it instead of AppData. Updates leave it untouched. To make the single exe portable, create an empty data folder next to it. The installer and Scoop always use AppData.

  • Saved passwords are never written to files. They stay in Windows Credential Manager on the computer where you saved them, so a portable folder copied to another computer asks for them again.
  • The data folder must be writable. If it isn't (for example, under Program Files), Locus says so at start and uses AppData until you move the folder.
  • Locus never copies existing data for you. To bring it along, quit Locus and copy the contents of %APPDATA%\Locus into data. Details in docs/configuration.md.

Is my password sent anywhere? No. See Privacy.

Privacy

Locus has no telemetry and no account. Apart from the databases, SSH hosts and Git remotes you configure, its only network request is the daily update check to GitHub, which sends nothing but User-Agent: Locus/<version> and can be turned off. The optional MCP server (off by default) listens on 127.0.0.1 only. Passwords go to the Windows Credential Manager, never to a file. Query history and audit logs stay in %APPDATA%\Locus on your machine; result data is never written there.

Contributing

Bug reports and pull requests are welcome. When you open an issue, say which database and version you connect to and what you did. Never paste passwords or connection strings. For a security problem, see SECURITY.md instead of opening a public issue.

Building from source

You need Windows, a recent stable Rust, and Go (for the Oracle / SQL Server helper).

.\sidecar\build.ps1                # sidecar\bin\sidecar.exe
cargo build --release -p app       # target\release\locus.exe (uses sidecar\bin\sidecar.exe)
cargo build --release -p app --features embed-sidecar   # single-file exe, sidecar embedded
cargo test --workspace --lib --bins

Do not regenerate Cargo.lock: gpui-kit is a snapshot and a fresh resolve breaks the build. More in CONTRIBUTING.md; settings files and environment variables are in docs/configuration.md, and a map of the source is in docs/README.md.

Acknowledgements

  • GPUI and gpui-kit for the UI
  • Arc for the idea behind Spaces and vertical tabs

The licenses of all bundled components are in THIRD_PARTY_LICENSES.md.

License

AGPL-3.0

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…