Secure, spreadsheet-like tool for Postgres data
open sourceGPL-3.0-onlyself-hostablefree
Mathesar is an open source web app that gives people a spreadsheet-like interface to view, edit, filter and query the tables in an existing PostgreSQL database, without writing SQL. It works directly on Postgres schemas, foreign keys and data types, and access control is Postgres's own roles and privileges rather than a separate permission layer. It also builds public forms that insert rows, file columns backed by S3-compatible storage, and a read-only Data Explorer for saved reports. It is GPL-licensed and self-hosted with Docker; the nonprofit Mathesar Foundation that maintains it also runs Mathesar Cloud, free during its early beta.
Problems it solves
- let non-technical colleagues view and edit our Postgres tables like a spreadsheet without learning SQL
- give the operations team a friendly UI on our production Postgres database without building an admin panel
- access control for a database UI should just use our existing Postgres roles and permissions
- build reports joining several Postgres tables with filters and grouping, without writing SQL
- edit rows that reference other tables by picking the related record instead of typing foreign key IDs
- import a CSV or JSON file into a new Postgres table and have column types guessed for me
- export a filtered Postgres table to CSV for a colleague
- collect submissions from a public web form straight into a Postgres table
- attach files and images to rows in my Postgres tables and preview them
- a self-hosted open source alternative to Airtable that keeps data in a real Postgres database we control
- design new Postgres tables, columns and relationships from a web interface
- run a spreadsheet-like Postgres UI on our own server with Docker in a few minutes
- invite collaborators to a Postgres database UI and map each one to a database role
- staff should sign in to our self-hosted database UI with Okta, Google Workspace or Entra ID
- try a spreadsheet interface on a hosted Postgres database for free without installing anything
- a nonprofit-maintained data tool we can rely on without vendor lock-in or per-seat fees
Features
- spreadsheet-like table view for viewing, editing and entering records
- works directly on existing PostgreSQL schemas, tables, foreign keys and types
- access control through Postgres roles and privileges, with collaborators mapped to roles
- Data Explorer: joins, filters, sorting, grouping and summaries saved as reusable explorations
- record pickers for related rows across foreign keys
- CSV and JSON import with automatic column type inference
- CSV export of filtered and sorted tables
- public forms that insert records into a table
- file columns with previews, backed by S3-compatible object storage
- user-friendly data types mapped onto Postgres types, with display formatting
View 4 more
- single sign-on through any OIDC provider and GitHub
- JSON-RPC API (documented as unstable)
- Docker Compose install on Linux, macOS or Windows, plus DigitalOcean and Railway guides
- Mathesar Cloud: hosted Postgres database and Mathesar, free during early beta
Ways to run it
Mathesar
Only in this edition
- single sign-on through OIDC providers and GitHub
- full control of the server and data
You arrange
- a server with Docker and Docker Compose (Linux, macOS or Windows)
- PostgreSQL: the bundled container or your own server for Mathesar's internal database
- a domain and HTTPS if it's reachable from outside
- S3-compatible object storage if you want file columns
- an OIDC identity provider if you want single sign-on
- upgrades and backups
Mathesar Cloud
Free during early beta (one user); Team coming soon, price to be determined; Dedicated custom4
Only in this edition
- a hosted Postgres database
- no servers to install or maintain
Not included
- collaborators and multiple databases until the Team plan launches
Capabilities
| Has an API | plan not known |
|---|---|
| Has single sign-on | plan not known |
Alternatives
The same job
These do what Mathesar does.
- NocoDB Build databases as spreadsheets, no coding required
- Directus The backend for your whole team
- Baserow The data collaboration platform for teams
- Teable AI Spreadsheet for Business
- Airtable All your teams, all their workflows, connected in one workspace
- Grist A relational spreadsheet-database that empowers you to organize your data, your way
