Skip to main content

Understand your database as a map — built for the AI-coding era.

Project description

shirube

shirube

AI writes the SQL.
You still own the schema.

標べ — a signpost for reading a database as a map.

CI Status: beta Licence: AGPL-3.0 PostgreSQL

🚧 Status: Beta. The explorer core is here and usable today. The AI navigator — the feature shirube is ultimately built around — is the next milestone. shirube is pre-1.0: things may still change.

See the whole database as a map.

shirube exploring a database: an ER diagram with a table's detail and its rows

🤖 Why shirube

You write less SQL by hand than you used to — an AI writes much of it for you. But that SQL still runs against your schema, and someone still has to understand that schema: to prompt the AI well, to check what it gave back, to reason about where the data actually lives. That understanding used to come for free while you wrote the queries yourself. It doesn't any more.

shirube is where that understanding lives — and it's just as useful in the classic case, dropping into a project with hundreds of undocumented tables and needing to find your footing fast.

AI changed how we write SQL. shirube changes how we understand databases.

🧭 What shirube does

shirube opens on an interactive ER diagram and lets you explore a database like a map: search for a table, focus on it, and follow its relationships outward — so you can see how everything connects without reading DDL or writing a single query.

It is not another SQL IDE or database administration console — there is no query editor, and nothing that ever writes. shirube is a tool for understanding a database.

✨ Features

Everything below works today, in the beta:

  • 🗺️ ER diagram home — auto-generated and centred on the most-connected table; see a table and its immediate neighbours, and travel outward one hop at a time.
  • 📋 Table detail — columns with their types, primary keys and nullability, plus relationships split into references and referenced by.
  • 🔗 Relationship navigation — click a related table to glide the map over to it.
  • 👁️ Data preview — read a table or view's actual rows in a drawer, with click-to-sort columns, simple filters and paging.
  • Instant search — jump straight to any table or column.
  • 🔐 Saved connections — passwords kept in your operating system's keychain, never in a config file.
  • 🌗 Light and dark themes.

🛡️ Safe by design

  • 🔒 Read-only — every connection is opened read-only with a statement timeout. shirube cannot modify your database — no writes, no schema changes, ever.
  • 💻 Local-first — it runs on your machine and binds to 127.0.0.1 only. Your database credentials and data never leave your computer.
  • 📝 Metadata-only logging — the local log records errors and request timings, but never the values in your data.

🚀 Getting started

You'll need a PostgreSQL database to point shirube at, and a way to run a Python application without installing it permanently.

The beta is tested on macOS and Windows. Linux support is planned.

pipx run shirube   # with pipx
# or
uvx shirube        # with uv

Either command starts a small local server and opens shirube in your browser. Add a connection with your PostgreSQL details, and shirube inspects the schema and opens the ER diagram.

💡 shirube connects with whatever credentials you give it. A read-only role with CONNECT and SELECT is all it needs — and all it should have.

📚 Learn more

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shirube-0.1.0b1.tar.gz (234.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shirube-0.1.0b1-py3-none-any.whl (251.7 kB view details)

Uploaded Python 3

File details

Details for the file shirube-0.1.0b1.tar.gz.

File metadata

  • Download URL: shirube-0.1.0b1.tar.gz
  • Upload date:
  • Size: 234.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shirube-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 47cc0e71c0839a892aa43d8a9aff0c9081789bfa2078106b1d6e9b1e2dc1ec5c
MD5 56f2cd37b06269425f8c3fc7d34a8a7f
BLAKE2b-256 caaef13d63f6d0e2bf4271170dc20dcfb79950017092680c3f97996143059714

See more details on using hashes here.

File details

Details for the file shirube-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: shirube-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 251.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shirube-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 b185b77544566b1a12d86dc20317e863a08fd11955f1867f372636869907a1a9
MD5 5880b142e8c5ab8a1d62a1a34eed57ba
BLAKE2b-256 3ba738023c699e5fea0b65fa373a2dd4339515a3b7e3c409009b42c610796c22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page