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

Uploaded Python 3

File details

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

File metadata

  • Download URL: shirube-0.1.0b3.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.0b3.tar.gz
Algorithm Hash digest
SHA256 24a687dab210f419c9f65ff995a5414085c5274da18c3504e552d3325bea4ead
MD5 b7bf535eb6684a7032ebac64431cb72b
BLAKE2b-256 07c3bb4e944383df8aa60c66ddef17e3ebfb5b77c55b346e2b8a7cd90b766d0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shirube-0.1.0b3-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.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 5bfe1b59e56cd8301612d00a06f876923b8ef7018fdd47ebbccda15474ff33f7
MD5 e8baf45c61343d76cf2fc4c36f5495d6
BLAKE2b-256 baba095e031cc00229902efb5d95e2d6b48e15c47575ed2ecac37ef0cbe9c210

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