The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Adds a separate page for Features (#9452)
Copple6293c2c02b1c
diff --git a/apps/reference/docs/architecture.mdx b/apps/reference/docs/architecture.mdxindex f969f70fa33..235460308c4 100755--- a/apps/reference/docs/architecture.mdx+++ b/apps/reference/docs/architecture.mdx@@ -2,38 +2,155 @@id: architecturetitle: Architecturedescription: 'Supabase design and architecture'-# hide_table_of_contents: true----Supabase is open source. Wherever possible, we use and support existing tools rather than developing from scratch.-We choose open source tools which are scalable and we make them simple to use.+Supabase is open source. We choose open source tools which are scalable and make them simple to use.++Supabase is not a 1-to-1 mapping of Firebase. While we are building many of the features that Firebase offers, we are not going about it the same way:+our technological choices are quite different; everything we use is open source; and wherever possible, we use and support existing tools rather than developing from scratch.++Most notably, we use Postgres rather than a NoSQL store. This choice was deliberate. We believe that no other database offers the functionality required to compete with Firebase,+while maintaining the scalability required to go beyond it.++## Architecture++Each Supabase project consists of several tools:-Supabase is not a 1-to-1 mapping of Firebase. While we are building many of the features that Firebase offers, we are not going about it the same way.--Our technological choices are quite different from Firebase. Everything we use is open source. Wherever possible, we use and support existing tools rather than developing from scratch.--Most notably, we use Postgres rather than a NoSQL store. This choice was deliberate. We believe that no other database offers the scalability and functionality required to compete with Firebase.--## Feature Status--| Product | Feature | Stage | Docs |-| -------------------------- | ---------------------- | ----- | ------------------------------------------------ |-| Database | Postgres | GA | [Link](/docs/guides/database) |-| Database | Webhooks | Alpha | |-| Database | Point in time Recovery | Alpha | |-| Realtime | Postgres CDC | Beta | [Link](/docs/guides/realtime/postgres-cdc) |-| Realtime | Broadcast | Alpha | [Link](/docs/guides/realtime#broadcast) |-| Realtime | Presence | Alpha | [Link](/docs/guides/realtime#presence) |-| Storage | | Beta | [Link](/docs/guides/storage) |-| Storage | CDN | Beta | [Link](/docs/guides/storage-cdn) |-| Edge Functions | | Beta | [Link](/docs/guides/functions) |-| Auth | OAuth Providers | Beta | [Link](/docs/guides/auth/auth-apple) |-| Auth | Passwordless | Beta | [Link](/guides/auth/auth-magic-link) |-| Auth | Next.js Auth Helpers | Alpha | [Link](/docs/guides/auth/auth-helpers/nextjs) |-| Auth | SvelteKit Auth Helpers | Alpha | [Link](/docs/guides/auth/auth-helpers/sveltekit) |-| Public API | | Beta | [Link](/docs/reference/api) |-| CLI | | Beta | [Link](/docs/guides/cli) |-| Client Library: JavaScript | | GA | [Link](/docs/reference/javascript) |-| Client Library: Dart | | Beta | [Link](/docs/reference/dart) |+### PostgreSQL (Database)++PostgreSQL is the core of Supabase. We do not abstract the PostgreSQL database — you can access it and use it with full privileges. We simply provide tools which makes PostgreSQL as easy to use as Firebase.++- Official Docs: [postgresql.org/docs](https://www.postgresql.org/docs/current/index.html)+- Source code: [github.com/postgres/postgres](https://github.com/postgres/postgres) (mirror)+- License: [PostgreSQL Licence](https://www.postgresql.org/about/licence/)+- Language: C++### Studio (Dashboard)++An open source Dashboard for managing your database and services.++- Official Docs: [Supabase docs](/docs)+- Source code: [github.com/supabase/supabase](https://github.com/supabase/supabase/tree/master/studio)+- License: [Apache 2](https://github.com/supabase/supabase/blob/master/LICENSE)+- Language: TypeScript++### GoTrue (Auth)++A JWT-based API for managing users and issuing access tokens. This integrates with PostgreSQL's Row Level Security and the API servers.++- Official Docs: [Supabase Auth reference docs](/docs/reference/auth)+- Source code: [github.com/supabase/gotrue](https://github.com/supabase/gotrue)+- License: [MIT](https://github.com/supabase/gotrue/blob/master/LICENSE)+- Language: Go++### PostgREST (API)++A standalone web server that turns your PostgreSQL database directly into a RESTful API.+We use this with our [pg_graphql](https://github.com/supabase/pg_graphql) extension to provide a GraphQL API.++- Official Docs: [postgrest.org](https://postgrest.org/)+- Source code: [github.com/PostgREST/postgrest](https://github.com/PostgREST/postgrest)+- License: [MIT](https://github.com/PostgREST/postgrest/blob/main/LICENSE)+- Language: Haskel++### Realtime (API & multiplayer)++A scalable websocket engine for managing user Presence, broadcasting messages, and streaming database changes.++- Official Docs: [Supabase Realtime docs](/docs/guides/realtime)+- Source code: [github.com/supabase/realtime](https://github.com/supabase/realtime)+- License: [Apache 2](https://github.com/supabase/realtime/blob/master/LICENSE)+- Language: Elixir++### Storage API (large file storage)++An S3-compatible object storage service that stores metadata in Postgres.++- Official Docs: [Supabase Storage reference docs](/docs/reference/storage)+- Source code: [github.com/supabase/storage-api](https://github.com/supabase/storage-api)+- License: [Apache 2.0](https://github.com/supabase/storage-api/blob/master/LICENSE)+- Language: NodeJS / TypeScript++### Deno (Edge Functions)++A modern runtime for JavaScript and TypeScript.++- Official Docs: [deno.land](https://deno.land/)+- Source code: [github.com/denoland/deno](https://github.com/denoland/deno)+- License: [MIT](https://github.com/denoland/deno/blob/main/LICENSE.md)+- Language: TypeScript / Rust++### postgres-meta (Database management)++A RESTful API for managing your Postgres. Fetch tables, add roles, and run queries.++- Official Docs: [supabase.github.io/postgres-meta](https://supabase.github.io/postgres-meta/)+- Source code: [github.com/supabase/postgres-meta](https://github.com/supabase/postgres-meta)+- License: [Apache 2.0](https://github.com/supabase/postgres-meta/blob/master/LICENSE)+- Language: NodeJS / TypeScript++### PgBouncer++A lightweight connection pooler for PostgreSQL. This is useful for connecting to Postgres when using Serverless functions.++- Official Docs: [pgbouncer.org](http://www.pgbouncer.org/)+- Source code: [pgbouncer/pgbouncer](https://github.com/pgbouncer/pgbouncer)+- License: [ISC](https://github.com/pgbouncer/pgbouncer/blob/master/COPYRIGHT)+- Language: C++### Kong (API Gateway)++A cloud-native API gateway, built on top of Nginx.++- Official Docs: [docs.konghq.com](https://docs.konghq.com/)+- Source code: [github.com/kong/kong](https://github.com/kong/kong)+- License: [Apache 2.0](https://github.com/Kong/kong/blob/master/LICENSE)+- Language: Lua++## Product Principles++It is our goal to provide an architecture that any large-scale company would design for themselves,+and then provide tooling around that architecture that is easy-to-use for indie-developers and small teams.++We use a series of principles to ensure that scalability and usability are never mutually exclusive:++### Everything works in isolation++Each system must work as a standalone tool with as few moving parts as possible.+The litmus test for this is: "Can a user run this product with nothing but a Postgres database?"++### Everything is integrated++Supabase is composable. Even though every product works in isolation, each product on the platform needs to 10x the other products.+For integration, each tool should expose an API and Webhooks.++### Everything is extensible++We're deliberate about adding a new tool, and prefer instead to extend an existing one.+This is the opposite of many cloud providers whose product offering expands into niche use-cases. We provide _primitives_ for developers, which allow them to achieve any goal.+Less, but better.++### Everything is portable++To avoid lock-in, we make it easy to migrate in and out. Our cloud offering is compatible with our self-hosted product.+We use existing standards to increase portability (like pg_dump an CSV files). If a new standard emerges which competes with a "Supabase" approach, we will deprecate the approach in favor of the standard.+This forces us compete on experience. We aim to be the best Postgres hosting service.++### Play the long game++We sacrifice short-term wins for long-term gains. For example, it is tempting to run a fork of Postgres with additional functionality which only our customers need.+Instead, we prefer to support efforts to upstream missing functionality so that the entire community benefits. This has the additional benefit of ensuring portability and longevity.++### Build for developers++"Developers" are a specific profile of user: they are _builders_.+When assessing impact as a function of effort, developers have a large efficiency due to the type of products and systems they can build.+As the profile of a developer changes over time, Supabase will continue to evolve the product to fit this evolving profile.++### Support existing tools++Supabase supports existing tools and communities wherever possible. Supabase is more like a "community of communities" - each tool typically has its own community+which we work with.+Open source is something we approach [collaboratively](https://supabase.com/blog/supabase-series-b#giving-back): we employ maintainers, sponsor projects, invest in businesses, and develop our own open source tools.diff --git a/apps/reference/docs/guides/features.mdx b/apps/reference/docs/guides/features.mdxnew file mode 100755index 00000000000..bd3ae948058--- /dev/null+++ b/apps/reference/docs/guides/features.mdx@@ -0,0 +1,171 @@+---+id: features+title: Features+description: 'Supabase features'+---++This is a non-exhaustive list of features that Supabase provides for every project.++## Database++### Postgres Database++Every project is a full Postgres database. [Docs](/docs/guides/database).++### Database Extensions++Every database comes with a full set of Postgres extensions. [Docs](/docs/guides/database/extensions).++### Database Functions++Create custom database functions which you can call from the browser. [Docs](/docs/guides/database/functions).++### Database Triggers++Attach triggers to your tables to handle database changes. [Docs](/docs/guides/auth/managing-user-data#using-triggers).++### Database Webhooks++Send database changes to any external service using Webhooks. [Link](https://supabase.com/blog/supabase-functions-updates#database-webhooks-alpha).++### Database Backups++Projects are backed up daily with the option to upgrade to Point in Time recovery.++### Search++Build search functionality using Postgres Full Text Search. [Docs](/docs/guides/database/full-text-search).++### Secrets and encryption++Encrypt sensitive data and store secrets using our Postgres extension, Supabase Vault. [Link](https://supabase.com/blog/supabase-vault).++### Database migrations++Develop locally and push your changes to your production database using migrations. [Docs](/docs/guides/cli/local-development#database-migrations)++<br />++## Auth++### Email & Password Logins++Build email logins for your application or website. [Docs](/docs/guides/auth/auth-email).++### Magic Links++Build passwordless logins for your application or website.[Docs](/docs/guides/auth/auth-magic-link).++### Social Logins++Provide social logins - everything from Apple, to GitHub, to Slack. [Docs](/docs/guides/auth/auth-apple).++### Phone Logins++Provide phone logins using a 3rd-party SMS provider. [Docs](/docs/guides/auth/auth-twilio).++### Row Level Security++Control the data each user can access with Postgres Policies. [Docs](/docs/guides/auth/row-level-security).++### Serverside Auth Helpers++Helpers for implementing user authentication in popular frameworks like [Next.js](/docs/guides/auth/auth-helpers/nextjs) and [SvelteKit](/docs/guides/auth/auth-helpers/sveltekit)++### Auth UI Kit++Build login and registration pages with custom themes. [Docs](/docs/guides/auth/auth-helpers/auth-ui).++<br />++## APIs & Client libraries++### Auto-generated REST API++RESTful APIs are autogenerated from your database, without a single line of code. [Docs](/docs/guides/api#rest-api-overview).++### Auto-generated GraphQL API++Fast GraphQL APIs using our custom Postgres GraphQL extension. [Docs](/docs/guides/api#graphql-api-overview).++### Realtime Database changes++Receive your database changes through websockets. [Docs](/docs/guides/realtime/postgres-cdc).++### User Broadcasting++Send messages between connected users through websockets. [Docs](/docs/guides/realtime#broadcast).++### User Presence++Synchronize shared state across your users, including online status and typing indicators. [Docs](/docs/guides/realtime#presence).++### Client libraries++Official client libraries for [JavaScript](/docs/reference/javascript/) and [Dart](/docs/reference/dart).+Unofficial libraries [supported by the community](https://github.com/supabase-community#client-libraries).++<br />++## File Storage++### Large File storage++Supabase Storage makes it simple to store and serve large files. [Docs](/docs/guides/storage).++### Storage CDN++Cache large files using the Supabase CDN. [Docs](/docs/guides/storage-cdn).++<br />++## Edge Functions++### Deno Edge Functions++Globally distributed TypeScript functions to execute custom business logic. [Docs](/docs/guides/functions).++<br />++## Project Managment++### CLI++Use our CLI to develop your project locally and deploy to the Supabase Platform. [Docs](/docs/reference/cli).++### Admin API++Manage your projects programmatically. [Docs](/docs/reference/api).++<br />++## Feature Status++Both Postgres and the Supabase Platform are production-ready. Some tools we offer on top of Postgres are still under development.++| Product | Feature | Stage |+| -------------------------- | ---------------------- | ------- |+| Database | Postgres | `GA` |+| Database | Triggers | `GA` |+| Database | Functions | `GA` |+| Database | Extensions | `GA` |+| Database | Full Text Search | `GA` |+| Database | Webhooks | `alpha` |+| Database | Point-in-Time Recovery | `alpha` |+| Database | Vault | `alpha` |+| Studio | | `GA` |+| Realtime | Postgres CDC | `beta` |+| Realtime | Broadcast | `alpha` |+| Realtime | Presence | `alpha` |+| Storage | Backend (S3) | `GA` |+| Storage | API | `beta` |+| Storage | CDN | `beta` |+| Edge Functions | | `beta` |+| Auth | OAuth Providers | `beta` |+| Auth | Passwordless | `beta` |+| Auth | Next.js Auth Helpers | `alpha` |+| Auth | SvelteKit Auth Helpers | `alpha` |+| Admin API | | `beta` |+| CLI | | `beta` |+| Client Library: JavaScript | | `GA` |+| Client Library: Dart | | `beta` |diff --git a/apps/reference/nav/_referenceSidebars.js b/apps/reference/nav/_referenceSidebars.jsindex ea72197d6f6..a9f6aa81431 100644--- a/apps/reference/nav/_referenceSidebars.js+++ b/apps/reference/nav/_referenceSidebars.js@@ -4,7 +4,7 @@ const sidebars = {type: 'category',label: 'Overview',collapsed: true,- items: ['about', 'architecture', 'guides/examples'],+ items: ['about', 'guides/features', 'architecture', 'guides/examples'],},{type: 'category',