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 PyPI 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.0b2.tar.gz (237.6 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.0b2-py3-none-any.whl (255.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shirube-0.1.0b2.tar.gz
  • Upload date:
  • Size: 237.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for shirube-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 84a1cfae78987d9df163701a3ea8ab39327a65612b5020831e2d719c171e31a0
MD5 b9dfd31f726648028cde8311d99a88d6
BLAKE2b-256 4ee943ffda8aee45adcc37b60d5e010b9000fc7cc31013a8d1314eb40fdedc06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shirube-0.1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 255.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for shirube-0.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d57b850c3e2cb536922c9220f6c1edb26246e7fad76d102a41926879b8f608c
MD5 a198e0d21ec14c93cd22c94719ea010d
BLAKE2b-256 1739ae20567def94be95f511470151210acd50329351e652d089cd3b6bd6ff2d

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