ShiftStage

View a SQLite database on your Mac from your iPhone

You hit the dev server, and now you want to know whether the row landed. The database is a file in the project on your Mac — read it from the phone without typing SQL blind on a glass keyboard.

This guide is about development databases: Django's db.sqlite3, Rails' storage/*.sqlite3, Prisma's prisma/dev.db, the database of an Electron or Tauri app you are building. ShiftStage reads them where they lie, on the Mac, through the system SQLite.

Other ways, and when they are better

  • sqlite3 over SSH. If you can reach the Mac by SSH, sqlite3 db.sqlite3 'select count(*) from orders' answers one question for free. It gets hard when the answer is twenty columns wide on a phone.
  • Copying the file to the phone. The copy is stale the moment the app writes again, and can miss the newest rows still in the -wal file.
  • A desktop database client at the desk. For designing a schema, migrations, imports and dumps, use it, or the terminal. ShiftStage does none of that on purpose: it answers "what is in this table", not "administer this database".

What the phone finds

Open your Mac in the app and go to Databases. The agent walks the folders you shared and lists every file with a database extension (.sqlite, .sqlite3, .db, .db3, .s3db, .sl3, .sqlitedb, .store) whose first bytes really are the SQLite header. It skips .git, node_modules, .build, DerivedData, .venv and Pods. The same file opened from the Files tab opens as a database, not as bytes.

A database outside your shared folders is not readable: add its folder in the agent on the Mac first.

Browse a table

  • Schema. Tables and views, each column with its declared type, NOT NULL, primary key and default. Row counts — and "unknown" rather than zero when a big table cannot be counted in time.
  • Rows in pages. 100 at a time in a stable order, so a row never jumps between pages. Sort by any column, either way.
  • Filters, not SQL. Equals, not equals, contains, less, greater, empty, not empty — several at once — plus one search box that looks for text in every column.
  • List or grid. Rows as a key and a few name–value pairs, or a grid that scrolls both ways under a pinned header.
  • Values as they are. NULL is always distinct from an empty string — that difference is often the bug. Long text is cut with its full size named; a BLOB shows its size and first bytes in hex.

Ask a question in SQL

For what filters cannot do — count(*), GROUP BY, a join — write one read-only statement. A bar above the keyboard suggests table and column names from the schema and the symbols the first iPhone keyboard layout hides; a Structure sheet lists the tables and inserts a name with a tap. A syntax error comes back as SQLite's own message: no such column: stauts.

The connection cannot write: writes, ATTACH, VACUUM INTO, PRAGMA beyond reading the schema, and a second statement are refused with the reason named. A statement gets 5 seconds; a page stops at 500 rows or 1 MiB and says which limit stopped it. Export the whole result as CSV — into the Mac's Downloads or through the share sheet.

A database your running app is using is read live, including what still sits in -wal. No transaction is held between requests, and a locked database is reported rather than waited on.

Change one value

Tap the pencil next to a value, type the new one, and confirm a dialog that shows old and new. The agent writes that one cell and nothing else, and only if the value is still what you saw: if your app changed it meanwhile, nothing is written and the current value is shown. Edits are offered only in folders where the agent allows writing, and not on views, tables without a primary key, cut text or binary values. There is no free-form write SQL against a file. Encrypted databases (SQLCipher) are not readable at all.

Rows stay on the Mac

Rows are shown, never saved on the phone. The access log on the Mac records the path, the table and your query — never the values.

Set it up once

  1. Install the agent on the Mac. A signed, notarised app from our open Homebrew tap. It shares only the folders you name.
    brew install --cask shiftstage/shiftstage/shiftstage-agent
  2. Install the app on the iPhone from the App Store.
  3. Pair them. Scan the code on the Mac's screen and confirm the same symbols on both devices. No account. The first pairing needs both on the same network.

That is the whole setup: no VPN, no port forwarding, no SSH keys. On the same Wi-Fi the phone talks to the Mac directly; away from home the connection goes peer to peer, or through a relay that forwards only end-to-end encrypted bytes. The Mac has to be awake: a sleeping Mac answers nothing, and the app says so instead of timing out.

For a database server rather than a file, see PostgreSQL and MySQL from your iPhone; for an app in the iOS Simulator, see SwiftData and Core Data simulator stores.

Get it

The Mac agent: download page — one Homebrew command or a notarised disk image. The iPhone app: App Store. Free forever for one Mac on your own network, no account; $7.99 a month or $69.99 a year to reach it from anywhere.

More guides: all guides.