back to home

mathesar-foundation / mathesar

An intuitive spreadsheet-like interface that lets users of all technical skill levels view, edit, query, and collaborate on Postgres data directly—100% open source and self hosted, with native Postgres access control.

4,881 stars
472 forks
364 issues
SvelteTypeScriptPython

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing mathesar-foundation/mathesar in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/mathesar-foundation/mathesar)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Intuitive spreadsheet-like interface that lets users of all technical skill levels view, edit, query, and collaborate on Postgres data directly—self hosted, with native Postgres access control. Website • Docs • Matrix (chat) • Discord • Contributor Wiki • Roadmap Mathesar Mathesar is a web application that makes working with PostgreSQL databases both simple and powerful. It empowers users of all technical skill levels to view, edit, query, and collaborate on data with a familiar spreadsheet-like interface—no code needed. It’s self hosted, can be deployed in minutes, and works directly with PostgreSQL databases, schemas, and tables without extra abstractions. The project is 100% open source and maintained by Mathesar Foundation, a 501(c)(3) nonprofit. Mathesar is as scalable as Postgres and supports any size or complexity of data, making it ideal for workflows involving production databases. It requires minimal setup, and integrates into your existing infrastructure. Because Mathesar is self-hosted, your data never leaves your servers, and access control based on Postgres roles and privileges keeps your database secure without adding unnecessary risk. **Table of Contents** • Status • Install Mathesar • Join our community • Contribute to Mathesar • Features • Screenshots • Connecting a database • Adding collaborators • Viewing a Postgres schema • Working with tables • Finding a nested record • Linking two tables together • Managing table permissions • Viewing a single record with related records • Building a form • Filling out a form • Viewing an Exploration (query result) • Building an Exploration (query) • Disconnecting a database • Mathesar in action • Our motivation • Bugs and troubleshooting • License Status • [x] **Public Alpha**: You can install and deploy Mathesar on your server. Go easy on us! • [x] **Public Beta**: Stable and feature-rich enough to implement in production • [ ] **Public**: Widely used in production environments We are currently in the **public beta** stage. Install Mathesar Please see our documentation for instructions on installing Mathesar on your own server. Join our community The Mathesar team is on Matrix (chat service). We also have mailing lists and the core team discusses day-to-day work on our developer mailing list. Contribute to Mathesar We actively encourage contribution! Get started by reading our Contributor Guide. Features • **Built on Postgres**: Connect to an existing Postgres database or set one up from scratch. • **Install in minutes**: Install using Docker in minutes, integrate into any existing infrastructure. • **Postgres-based access control**: Use existing Postgres roles within Mathesar's UI, or set up your own. • **Interoperable with other tools**: Mathesar works harmoniously alongside your database and thousands of other tools in the Postgres ecosystem. • **Set up your data models**: Easily create and update Postgres schemas and tables. • **Data entry**: Use our spreadsheet-like interface to view, create, update, and delete table records. • **Filter, sort, and group**: Quickly slice your data in different ways. • **Query builder**: Use our Data Explorer to build queries without knowing anything about SQL or joins. • **Forms**: Build and share forms to collect data from anyone via a unique link, with submissions automatically saved as new records. • **Import and export data**: Import and export data into Mathesar easily to work with your data elsewhere. • **Schema migrations**: Transfer columns between tables in two clicks. • **Uses Postgres features**: Mathesar uses and manipulates Postgres schemas, primary keys, foreign keys, constraints and data types. e.g. "Relationships" in the UI are foreign keys in the database. • **Custom data types**: Custom data types for emails and URLs, validated at the database level. Screenshots Connecting a database Adding collaborators Viewing a Postgres schema Working with tables Finding a nested record Linking two tables together Managing table permissions Viewing a single record with related records Building a form Filling out a form Viewing an Exploration (query result) Building an Exploration (query) Disconnecting a database Mathesar in action https://github.com/user-attachments/assets/6bdfb178-17b4-4abf-aac4-9781e1d841ab Our motivation Using databases shouldn't require technical expertise or expensive, closed-off tools. Databases are incredibly powerful, but they're often trapped behind complex interfaces that are hard to use or limit how people can access and share their data. We want to change that by building user-friendly tools that unlock the power of existing databases without sacrificing accessibility, portability, or extensibility. Mathesar is our answer: an open-source platform designed to unlock the full potential of PostgreSQL, one of the most powerful and trusted open-source databases. Mathesar is easy to use, interoperable, and extensible, while also giving you complete control over your data. As a nonprofit, we're committed to keeping Mathesar 100% open source and available to everyone—because better ways to work with data mean better decisions, and better decisions lead to a better world. Bugs and troubleshooting If you run into problems, refer to our troubleshooting guide. License Mathesar is open source under the GPLv3 license - see LICENSE. It also contains derivatives of third-party open source modules licensed under the MIT license. See the list and respective licenses in THIRDPARTY.