Tuple app icon

Run PostgreSQL on your iPhone

Tuple is a real PostgreSQL 18 server on your iPhone and iPad: offline, in milliseconds. PostGIS maps, pgvector search, Apache AGE graphs, a psql terminal and SQL notebooks. No server, no network, no account.

Download Tuple on the App Store
PostGIS query with results on an offline world map pgvector nearest-neighbour search plotted in 2-D psql-style terminal Extensions: PostGIS, pgvector, Apache AGE, pgcrypto Window functions with a running total Free SQL lessons Several databases, PostgreSQL 16, 17 or 18

A database, not a client

PostgreSQL 18 on the deviceAlso 17 and 16, chosen per database, running in WebAssembly (PGlite). Works in flight mode.
PostGIS with mapsGeometry and geography types and 1000+ spatial functions; results drawn on an offline world map.
pgvectorVector similarity search with a 2-D plot of your embeddings.
Apache AGEGraph queries in openCypher, inside PostgreSQL.
psql terminalBackslash commands like \d, \dt, \dx, \df, \l, \c, \x and \timing, with history.
Jupyter-style notebooksSQL and Markdown cells saved as .ipynb in the Files app; tables, charts and maps.
30+ extensionspgcrypto, pg_trgm, hstore, ltree, citext, uuid-ossp, tablefunc, pgmq, pgTAP and more, all bundled.
Learn SQLFree lessons from SELECT to joins, CTEs and window functions.

Questions

How do I run PostgreSQL on my iPhone?

Install Tuple from the App Store and open it. A PostgreSQL 18 server starts on the device in milliseconds; there is nothing to configure and no server to connect to.

Is Tuple a client for a remote PostgreSQL server?

No. The database runs on your iPhone or iPad itself, compiled to WebAssembly with PGlite, so it works offline.

Can I use PostGIS and pgvector on iOS?

Yes. PostGIS, pgvector, Apache AGE and 30+ other extensions are bundled in the app and need no download.

Which PostgreSQL versions does Tuple support?

PostgreSQL 18, 17 and 16. Each database can use its own version and extensions.

Does Tuple have a psql terminal?

Yes, a psql-style terminal with \d, \dt, \dx, \df, \l, \c, \x and \timing.

Can I learn SQL on my iPhone with Tuple?

Yes. Free lessons cover SELECT, filtering, joins, GROUP BY, CTEs and window functions, each one a notebook you can run.

Where is my data stored?

Only on your device. Notebooks are .ipynb files in Files › On My iPhone › Tuple, and databases can be backed up and restored as .tar.gz files.