The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Formats all code
Copple39813e1a6179
diff --git a/apps/reference/.prettierignore b/apps/reference/.prettierignorenew file mode 100644index 00000000000..b2d6de30624--- /dev/null+++ b/apps/reference/.prettierignore@@ -0,0 +1,20 @@+# Dependencies+/node_modules++# Production+/build++# Generated files+.docusaurus+.cache-loader++# Misc+.DS_Store+.env.local+.env.development.local+.env.test.local+.env.production.local++npm-debug.log*+yarn-debug.log*+yarn-error.log*diff --git a/apps/reference/README.md b/apps/reference/README.mdindex 69d07a1cf5e..4f3b8c0389f 100644--- a/apps/reference/README.md+++ b/apps/reference/README.md@@ -7,6 +7,7 @@ Supabase Reference DocsIf you are a maintainer of any tools in the Supabase ecosystem, you can use this site to provide documentation for the tools & libraries that you maintain.## Types of docs+There are many types of docs:1. Guides: teach developers how to use a product. "I have XX problem, how do I solve it?"@@ -17,11 +18,13 @@ There are many types of docs:In these docs, you should focus only on the fourth type: "Reference Docs".## Versioning+All tools have versioned docs, which are kept in separate folders. For example, the CLI has the following folders and files:+- `cli`: the "next" release.- `cli_spec`: contains the DocSpec for the "next" release (see below).- `cli_versioned_docs`: a version of the documentation for every release (including the most current version).-- `cli_versioned_sidebars`: a version of the sidebar for every release (including the most current version).+- `cli_versioned_sidebars`: a version of the sidebar for every release (including the most current version).When you release a new version of a tool, you should also release a new version of the docs. You can do this via the command line. For example, if you just released the CLI version `1.0.1`:@@ -32,10 +35,11 @@ npm run cli:version 1.0.1## DocSpecWe use documentation specifications which can be used to generate human-readable docs.+- OpenAPI: for documenting API endpoints.- SDKSpec (custom to Supabase): for SDKs and client libraries.- ConfigSpec (custom to Supabase): for configuration options.- CLISpec (custom to Supabase): for CLI commands and usage.The benefit of using custom specifications is that we can generate many other types from a strict schema (eg, HTML and manpages).-It also means that we can switch any documentation system we want. On this site we use Docusaurus, but in Supabase's official website we use a custom React site and expose only a subset of the available API for each tool.\ No newline at end of file+It also means that we can switch any documentation system we want. On this site we use Docusaurus, but in Supabase's official website we use a custom React site and expose only a subset of the available API for each tool.diff --git a/apps/reference/_api/intro.md b/apps/reference/_api/intro.mdindex bfd546d4cdc..5bd32acd56d 100644--- a/apps/reference/_api/intro.md+++ b/apps/reference/_api/intro.md@@ -6,4 +6,4 @@ sidebar_label: Introduction# Supabase API-Some docs\ No newline at end of file+Some docsdiff --git a/apps/reference/_api/release-notes.md b/apps/reference/_api/release-notes.mdindex 77883904adc..30c0f23e7c6 100644--- a/apps/reference/_api/release-notes.md+++ b/apps/reference/_api/release-notes.md@@ -4,4 +4,4 @@ id: release-notes# Release Notes-Start your release notes here.\ No newline at end of file+Start your release notes here.diff --git a/apps/reference/_cli_versioned_sidebars/version-0.0.1-sidebars.json b/apps/reference/_cli_versioned_sidebars/version-0.0.1-sidebars.jsonindex cbc998c626b..c30a1c0b981 100644--- a/apps/reference/_cli_versioned_sidebars/version-0.0.1-sidebars.json+++ b/apps/reference/_cli_versioned_sidebars/version-0.0.1-sidebars.json@@ -1,8 +1,3 @@{- "cliSidebar": [- "intro",- "usage",- "config",- "release-notes"- ]+ "cliSidebar": ["intro", "usage", "config", "release-notes"]}diff --git a/apps/reference/_cli_versions.json b/apps/reference/_cli_versions.jsonindex daa9a702763..e0c9dfb7d99 100644--- a/apps/reference/_cli_versions.json+++ b/apps/reference/_cli_versions.json@@ -1,3 +1 @@-[- "0.0.1"-]+["0.0.1"]diff --git a/apps/reference/_gotrue_versioned_docs/version-0.0.1/intro.md b/apps/reference/_gotrue_versioned_docs/version-0.0.1/intro.mdindex 14302fb108b..b2c9b7bbc47 100644--- a/apps/reference/_gotrue_versioned_docs/version-0.0.1/intro.md+++ b/apps/reference/_gotrue_versioned_docs/version-0.0.1/intro.md@@ -5,4 +5,4 @@ sidebar_position: 1# GoTrue - Supabase Auth-Some docs\ No newline at end of file+Some docsdiff --git a/apps/reference/_gotrue_versioned_docs/version-0.0.1/release-notes.md b/apps/reference/_gotrue_versioned_docs/version-0.0.1/release-notes.mdindex 77883904adc..30c0f23e7c6 100644--- a/apps/reference/_gotrue_versioned_docs/version-0.0.1/release-notes.md+++ b/apps/reference/_gotrue_versioned_docs/version-0.0.1/release-notes.md@@ -4,4 +4,4 @@ id: release-notes# Release Notes-Start your release notes here.\ No newline at end of file+Start your release notes here.diff --git a/apps/reference/_gotrue_versioned_sidebars/version-0.0.1-sidebars.json b/apps/reference/_gotrue_versioned_sidebars/version-0.0.1-sidebars.jsonindex 749e53defbc..a8aadd1b7f9 100644--- a/apps/reference/_gotrue_versioned_sidebars/version-0.0.1-sidebars.json+++ b/apps/reference/_gotrue_versioned_sidebars/version-0.0.1-sidebars.json@@ -1,7 +1,3 @@{- "goTrueSidebar": [- "intro",- "config",- "release-notes"- ]+ "goTrueSidebar": ["intro", "config", "release-notes"]}diff --git a/apps/reference/_gotrue_versions.json b/apps/reference/_gotrue_versions.jsonindex daa9a702763..e0c9dfb7d99 100644--- a/apps/reference/_gotrue_versions.json+++ b/apps/reference/_gotrue_versions.json@@ -1,3 +1 @@-[- "0.0.1"-]+["0.0.1"]diff --git a/apps/reference/_supabase_dart_versioned_sidebars/version-1.0-sidebars.json b/apps/reference/_supabase_dart_versioned_sidebars/version-1.0-sidebars.jsonindex f2ef2ffe68f..dd25946fbf3 100644--- a/apps/reference/_supabase_dart_versioned_sidebars/version-1.0-sidebars.json+++ b/apps/reference/_supabase_dart_versioned_sidebars/version-1.0-sidebars.json@@ -1,7 +1,3 @@{- "goTrueSidebar": [- "intro",- "usage",- "release-notes"- ]+ "goTrueSidebar": ["intro", "usage", "release-notes"]}diff --git a/apps/reference/_supabase_dart_versions.json b/apps/reference/_supabase_dart_versions.jsonindex 9a369ed18f4..7e20b00b2fe 100644--- a/apps/reference/_supabase_dart_versions.json+++ b/apps/reference/_supabase_dart_versions.json@@ -1,3 +1 @@-[- "1.0"-]+["1.0"]diff --git a/apps/reference/_supabase_js/intro.md b/apps/reference/_supabase_js/intro.mdindex 0139dbd7488..d756d0ed2aa 100644--- a/apps/reference/_supabase_js/intro.md+++ b/apps/reference/_supabase_js/intro.md@@ -6,4 +6,4 @@ sidebar_label: Introduction# Supabase JavaScript Client-Some docs\ No newline at end of file+Some docsdiff --git a/apps/reference/_supabase_js/release-notes.md b/apps/reference/_supabase_js/release-notes.mdindex 77883904adc..30c0f23e7c6 100644--- a/apps/reference/_supabase_js/release-notes.md+++ b/apps/reference/_supabase_js/release-notes.md@@ -4,4 +4,4 @@ id: release-notes# Release Notes-Start your release notes here.\ No newline at end of file+Start your release notes here.diff --git a/apps/reference/babel.config.js b/apps/reference/babel.config.jsindex e00595dae7d..67526481891 100644--- a/apps/reference/babel.config.js+++ b/apps/reference/babel.config.js@@ -1,3 +1,3 @@module.exports = {presets: [require.resolve('@docusaurus/core/lib/babel/preset')],-};+}diff --git a/apps/reference/docs/about.md b/apps/reference/docs/about.mdindex c3ac5451deb..c9988f0771c 100644--- a/apps/reference/docs/about.md+++ b/apps/reference/docs/about.md@@ -23,13 +23,10 @@ Supabase is modular. While it may seem like a single tool, it is actually a suit- Developers can disable tools which are not required.- Each tool is focused on a single task to minimize complexity.-This is a similar approach to any Enterprise-grade system with an additional focus on modularity: while some companies might cut-corners, Supabase makes modularity a priority.-## Architecture-- `Database`- [PostgreSQL](https://www.postgresql.org/) is an object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.- Coonection Pooling: [PgBouncer](https://www.pgbouncer.org/) is a lightweight connection pooler for PostgreSQL.@@ -46,13 +43,12 @@ This is a similar approach to any Enterprise-grade system with an additional foc- `File Storage`- [Storage](https://github.com/supabase/storage-api) provides a RESTful interface for managing Files stored in S3, using Postgres to manage permissions.-## Open source-Each part of the Supabase ecosystem is open source. Wherever possible, we support existing tools rather than developing from scratch.+Each part of the Supabase ecosystem is open source. Wherever possible, we support existing tools rather than developing from scratch.-We choose tools which are [OSI Compliant](https://opensource.org/licenses), with a strong bias towards MIT, Apache 2.0, and PostgreSQL licenses.-Everything we open source is licensed with one of these 3 licenses:+We choose tools which are [OSI Compliant](https://opensource.org/licenses), with a strong bias towards MIT, Apache 2.0, and PostgreSQL licenses.+Everything we open source is licensed with one of these 3 licenses:- MIT for client libraries- Apache 2.0 for API servers@@ -60,7 +56,7 @@ Everything we open source is licensed with one of these 3 licenses:## Client Libraries-Supabase provides client libraries for building your products. Our approach for client libraries is modular. Each sub-library is a standalone implementation for a single system.+Supabase provides client libraries for building your products. Our approach for client libraries is modular. Each sub-library is a standalone implementation for a single system.For example, our `supabase-js` library is a wrapper around five smaller libraries:@@ -70,10 +66,9 @@ For example, our `supabase-js` library is a wrapper around five smaller librarie- `realtime-js` (Websockets)- `functions-js` (Edge Functions)-## Community--Supabase officially supports the Javascript libraries, and all other libraries are community-maintained. This is one way that we try to support and foster an open source ecosystem.+## Community+Supabase officially supports the Javascript libraries, and all other libraries are community-maintained. This is one way that we try to support and foster an open source ecosystem.<table style={{ tableLayout: 'fixed', whiteSpace: 'nowrap' }}><tr>diff --git a/apps/reference/package.json b/apps/reference/package.jsonindex b0546ac3131..aa9dee67d0f 100644--- a/apps/reference/package.json+++ b/apps/reference/package.json@@ -10,7 +10,8 @@"build": "docusaurus build","deploy": "docusaurus deploy","clear": "docusaurus clear",- "serve": "docusaurus serve"+ "serve": "docusaurus serve",+ "prettier": "prettier --write \"./**/*.{ts,tsx,md,js,jsx,json}\""},"dependencies": {"@docusaurus/core": "2.0.0-rc.1",