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.0b4.tar.gz (237.7 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.0b4-py3-none-any.whl (255.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shirube-0.1.0b4.tar.gz
  • Upload date:
  • Size: 237.7 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.0b4.tar.gz
Algorithm Hash digest
SHA256 77a7b5f4bca5cfc86d69d4916ef80d3263c1512ecf0d79eaffceaaf7e24a89e2
MD5 2280314f07c5d9a5a267c4458659af5d
BLAKE2b-256 22ef341800d2a8940b58788cb225d23e4dca158d2066087445d15f0a6fe9ee56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shirube-0.1.0b4-py3-none-any.whl
  • Upload date:
  • Size: 255.2 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.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 ffb5eb35e833c67fca3c5a7dbe5b1097e12c929cb4a67ad047f2047a446f1c1a
MD5 76d6dc1b00d59309759b831c72aad3af
BLAKE2b-256 d6ecc881c5dbc93f105e94d3b8a0a4c7bb46f8ab593a980f3c7f3bfc05151aff

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