Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Docs: integration guides (#3022)

Jonathan Summers-Muir220a1c4815a0
diff --git a/web/docs/guides/integrations/auth0.mdx b/web/docs/guides/integrations/auth0.mdx
new file mode 100644
index 00000000000..7129259f22a
--- /dev/null
+++ b/web/docs/guides/integrations/auth0.mdx
@@ -0,0 +1,458 @@
+---
+id: auth0
+title: 'Auth0'
+description: 'Swap out Supabase authentication with Auth0. Let Auth0 handle tokens and signing users in and out, while Supabase enforces authorization policies with Row Level Security (RLS).'
+---
+
+This guide steps through building a Next.js application with Auth0 and Supabase. We configure Auth0 to handle authenticating users and managing tokens, while writing our authorization logic in Supabase - using Row Level Security policies.
+
+> Note: This guide is heavily inspired by the [Using Next.js and Auth0 with Supabase](https://auth0.com/blog/using-nextjs-and-auth0-with-supabase/) article on [Auth0's blog](https://auth0.com/blog/). Check it out for a practical step-by-step guide on integrating Auth0 and Supabase.
+
+The full code example for this guide can be found [here](https://github.com/dijonmusters/supabase-auth0-example).
+
+[Auth0](https://auth0.com/) is an authentication and authorization platform, offering numerous strategies to authenticate and manage users. It provides fine-grain control over how users sign in to your application, the token that is generated, and what data is stored about your users.
+
+[Next.js](https://nextjs.org/) is a web application framework built on top of React. We will be using it for this example, as it allows us to write server-side logic within our application. Auth0 have also written a [very well integrated authentication library](https://www.npmjs.com/package/@auth0/nextjs-auth0) specifically for Next.js.
+
+> Note: API routes (serverless functions) in Next.js closely resemble the structure of Node server frameworks - such as Express, Koa and Fastify. The server-side logic in this guide could easily be refactored in one of these frameworks and managed as a separate application to the front-end.
+
+If you don’t have an Auth0 account, create one [here](https://auth0.com/signup).
+
+You will also need a Supabase account, which can be created by signing in [here](https://app.supabase.io/).
+
+## Step 1: Creating an Auth0 tenant
+
+From the Auth0 dashboard, click the menu to the right of the Auth0 logo, and select `Create tenant`.
+
+![Create tenant from Auth0 dashboard](/img/guides/integrations/auth0/IYzHxeW.png)
+
+Enter a `Domain` for your tenant - this will need to be unique.
+
+Select a `Region` - this should be geographically close to the majority of your users.
+
+Select `Development` for `Environment Tag` - this should be production when you're ready to go live.
+
+![Auth0 tenant settings](/img/guides/integrations/auth0/iSA3E0J.png)
+
+## Step 2: Setting up an Auth0 application
+
+From the sidebar menu, select `Applications` > `Applications` and click `Create Application`.
+
+Give your application a name, select the `Regular Web Applications` option and click `Create`.
+
+![Auth0 application settings](/img/guides/integrations/auth0/ANU4Wez.png)
+
+Select `Settings` and navigate to the `Application URIs` section, and update the following:
+
+`Allowed Callback URLs`: `http://localhost:3000/api/auth/callback`
+
+`Allowed Logout URLs`: `http://localhost:3000`
+
+Scroll to the bottom of the `Settings` section and reveal the `Advanced Settings`.
+
+Select `OAuth` and set `JSON Web Token Signature` to `RS256`.
+
+Confirm `OIDC Conformant` is `Enabled`.
+
+Click `Save` to update the settings.
+
+## Step 3: Creating a Supabase project
+
+From your [Supabase dashboard](https://app.supabase.io/), click `New project`.
+
+Enter a `Name` for your Supabase project.
+
+Enter a secure `Database Password`.
+
+Select the same `Region` you selected for your Auth0 tenant.
+
+Click `Create new project`.
+
+![New Supabase project settings](/img/guides/integrations/auth0/qnmJEU7.png)
+
+## Step 4: Creating data in Supabase
+
+From the sidebar menu in the [Supabase dashboard](https://app.supabase.io/), click `Table editor`, then `New table`.
+
+Enter `todo` as the `Name` field.
+
+Select `Enable Row Level Security (RLS)`.
+
+Create two new columns:
+
+- `title` as `text`
+- `user_id` as `text`
+- `is_complete` as `bool` with the default value `false`
+
+Click `Save` to create the new table.
+
+![Todo table](/img/guides/integrations/auth0/33kqP4K.png)
+
+From the `Table editor` view, select the `todo` table and click `Insert row`.
+
+Fill out the `title` field and click `Save`.
+
+![New row settings](/img/guides/integrations/auth0/mEhHAWC.png)
+
+Click `Insert row` and add a couple of extra todos.
+
+![List of todos](/img/guides/integrations/auth0/dLOvhdq.png)
+
+## Step 5: Building a Next.js app
+
+Create a new Next.js project:
+
+```bash
+npx create-next-app <name-of-project>
+```
+
+Create a `.env.local` file and enter the following values:
+
+```
+AUTH0_SECRET=any-secure-value
+AUTH0_BASE_URL=http://localhost:3000
+AUTH0_ISSUER_BASE_URL=https://<name-of-your-tenant>.<region-you-selected>.auth0.com
+AUTH0_CLIENT_ID=get-from-auth0-dashboard
+AUTH0_CLIENT_SECRET=get-from-auth0-dashboard
+NEXT_PUBLIC_SUPABASE_URL=get-from-supabase-dashboard
+NEXT_PUBLIC_SUPABASE_KEY=get-from-supabase-dashboard
+SUPABASE_SIGNING_SECRET=get-from-supabase-dashboard
+```
+
+> Note: Auth0 values can be found under `Settings > Basic Information` for your application.
+
+![Auth0 settings](/img/guides/integrations/auth0/o07FaoV.png)
+
+> Note: Supabase values can be found under `Settings > API` for your project.
+
+![Supabase settings](/img/guides/integrations/auth0/r1GAfLo.png)
+
+Restart your Next.js development server to read in the new values from `.env.local`.
+
+```bash
+npm run dev
+```
+
+## Step 5: Install Auth0 Next.js library
+
+Install the `@auth0/nextjs-auth0` library.
+
+```bash
+npm i @auth0/nextjs-auth0
+```
+
+Create a new file `pages/api/auth/[...auth0].js` and add:
+
+```jsx
+// pages/api/auth/[...auth0].js
+
+import { handleAuth } from '@auth0/nextjs-auth0'
+
+export default handleAuth()
+```
+
+> Note: This will create a few API routes for us. The main ones we will use are `/api/auth/login` and `/api/auth/logout` to handle signing users in and out.
+
+Open `pages/_app.js` and wrap our `Component` with the `UserProvider` from Auth0:
+
+```jsx
+// pages/_app.js
+
+import React from 'react'
+import { UserProvider } from '@auth0/nextjs-auth0'
+
+const App = ({ Component, pageProps }) => {
+ return (
+ <UserProvider>
+ <Component {...pageProps} />
+ </UserProvider>
+ )
+}
+
+export default App
+```
+
+Update `pages/index.js` to ensure the user is logged in to view the landing page.
+
+```jsx
+// pages/index.js
+
+import styles from '../styles/Home.module.css'
+import { withPageAuthRequired } from '@auth0/nextjs-auth0'
+import Link from 'next/link'
+
+const Index = ({ user }) => {
+ return (
+ <div className={styles.container}>
+ <p>
+ Welcome {user.name}!{' '}
+ <Link href="/api/auth/logout">
+ <a>Logout</a>
+ </Link>
+ </p>
+ </div>
+ )
+}
+
+export const getServerSideProps = withPageAuthRequired()
+
+export default Index
+```
+
+> Note: `withPageAuthRequired` will automatically redirect the user to `/api/auth/login` if they are not currently logged in.
+
+Test this is working by navigating to `http://localhost:3000` which should redirect you to an Auth0 sign in screen.
+
+![Auth0 sign in screen](/img/guides/integrations/auth0/xLRL7S7.png)
+
+Either `Sign up` for a new account, or click `Continue with Google` to sign in.
+
+You should now be able to view the landing page.
+
+![Landing page](/img/guides/integrations/auth0/YdBKRy6.png)
+
+## Step 6: Sign Auth0 token for Supabase
+
+Currently, neither Supabase or Auth0 allow for a custom signing secret to be set for their JWT. They also use different [signing algorithms](https://auth0.com/docs/configure/applications/signing-algorithms).
+
+Therefore, we need to extract the bits we need from Auth0's JWT, and sign our own to send to Supabase.
+
+We can do that using Auth0's `afterCallback` function, which gets called anytime the user authenticates.
+
+Install the `jsonwebtoken` library.
+
+```bash
+npm i jsonwebtoken
+```
+
+Update `pages/api/auth/[...auth0].js` with the following:
+
+```jsx
+// pages/api/auth/[...auth0].js
+
+import { handleAuth, handleCallback } from '@auth0/nextjs-auth0'
+import jwt from 'jsonwebtoken'
+
+const afterCallback = async (req, res, session) => {
+ const payload = {
+ userId: session.user.sub,
+ exp: Math.floor(Date.now() / 1000) + 60 * 60,
+ }
+
+ session.user.accessToken = jwt.sign(payload, process.env.SUPABASE_SIGNING_SECRET)
+
+ return session
+}
+
+export default handleAuth({
+ async callback(req, res) {
+ try {
+ await handleCallback(req, res, { afterCallback })
+ } catch (error) {
+ res.status(error.status || 500).end(error.message)
+ }
+ },
+})
+```
+
+Our `payload` for the JWT will contain our user's unique identifier from Auth0 - `session.user.sub` and an expiry of 1 hour.
+
+We are signing this JWT using Supabase's signing secret, so Supabase will be able to validate it is authentic and hasn't been tampered with in transit.
+
+> Note: We need to sign the user out and back in again to run the `afterCallback` function, and create our new token.
+
+Now we just need to send the token along with the request to Supabase.
+
+## Step 7: Requesting data from Supabase
+
+Create a new file called `utils/supabase.js` and add the following:
+
+```jsx
+// utils/supabase.js
+
+import { createClient } from '@supabase/supabase-js'
+
+const getSupabase = (access_token) => {
+ const supabase = createClient(
+ process.env.NEXT_PUBLIC_SUPABASE_URL,
+ process.env.NEXT_PUBLIC_SUPABASE_KEY
+ )
+
+ if (access_token) {
+ supabase.auth.session = () => ({
+ access_token,
+ })
+ }
+
+ return supabase
+}
+
+export { getSupabase }
+```
+
+This will be our client for talking to Supabase. We can pass it an `access_token` and it will be attached to our request.
+
+Let's load our `todos` from Supabase in our landing page!
+
+```jsx
+// pages/index.js
+
+import styles from '../styles/Home.module.css'
+import { withPageAuthRequired } from '@auth0/nextjs-auth0'
+import { getSupabase } from '../utils/supabase'
+import Link from 'next/link'
+import { useEffect } from 'react'
+
+const Index = ({ user }) => {
+ const [todos, setTodos] = useState([])
+ const supabase = getSupabase(user.accessToken)
+
+ useEffect(() => {
+ const fetchTodos = async () => {
+ const { data } = await supabase.from('todo').select('*')
+ setTodos(data)
+ }
+
+ fetchTodos()
+ }, [])
+
+ return (
+ <div className={styles.container}>
+ <p>
+ Welcome {user.name}!{' '}
+ <Link href="/api/auth/logout">
+ <a>Logout</a>
+ </Link>
+ </p>
+ {todos?.length > 0 ? (
+ todos.map((todo) => <p key={todo.id}>{todo.content}</p>)
+ ) : (
+ <p>You have completed all todos!</p>
+ )}
+ </div>
+ )
+}
+
+export const getServerSideProps = withPageAuthRequired()
+
+export default Index
+```
+
+Alternatively, we could fetch todos on the server using the `getServerSideProps` function.
+
+```jsx
+// pages/index.js
+
+import styles from '../styles/Home.module.css'
+import { withPageAuthRequired, getSession } from '@auth0/nextjs-auth0'
+import { getSupabase } from '../utils/supabase'
+import Link from 'next/link'
+
+const Index = ({ user, todos }) => {
+ return (
+ <div className={styles.container}>
+ <p>
+ Welcome {user.name}!{' '}
+ <Link href="/api/auth/logout">
+ <a>Logout</a>
+ </Link>
+ </p>
+ {todos?.length > 0 ? (
+ todos.map((todo) => <p key={todo.id}>{todo.content}</p>)
+ ) : (
+ <p>You have completed all todos!</p>
+ )}
+ </div>
+ )
+}
+
+export const getServerSideProps = withPageAuthRequired({
+ async getServerSideProps({ req, res }) {
+ const {
+ user: { accessToken },
+ } = await getSession(req, res)
+
+ const supabase = getSupabase(accessToken)
+
+ const { data: todos } = await supabase.from('todo').select('*')
+
+ return {
+ props: { todos },
+ }
+ },
+})
+
+export default Index
+```
+
+Either way, when we reload our application, we are still getting the empty state for todos.
+
+![Empty todo list](/img/guides/integrations/auth0/XgEMwnN.png)
+
+This is because we enabled Row Level Security, which blocks all requests by default. To enable our user to select their `todos` we need to write a policy.
+
+## Step 8: Write a policy to allow select
+
+Our policy will need to know who our currently logged in user is to determine whether or not they should have access. Let's create a PostgreSQL function to extract the current user from our new JWT.
+
+Navigate back to the Supabase dashboard, select `SQL` from the sidebar menu, and click `New query`. This will create a new query called `new sql snippet`, which will allow us to run any SQL against our Postgres database.
+
+Write the following and click `Run`.
+
+```sql
+create or replace function auth.user_id() returns text as $$
+ select nullif(current_setting('request.jwt.claim.userId', true), '')::text;
+$$ language sql stable;
+```
+
+This will create a function called `auth.user_id()`, which will inspect the `userId` field of our JWT payload.
+
+> Note: To learn more about PostgreSQL functions, check out [our deep dive video](https://www.youtube.com/watch?v=MJZCCpCYEqk).
+
+Let's create a policy that checks whether this user is the owner of the todo.
+
+Select `Authentication` from the Supabase sidebar menu, click `Policies`, and then `New Policy` on the `todo` table.
+
+![Create new policy](/img/guides/integrations/auth0/M7XyhHe.png)
+
+From the modal, select `Create a policy from scratch` and add the following.
+
+![Policy settings for SELECT](/img/guides/integrations/auth0/wuWz3am.png)
+
+This policy is calling the function we just created to get the currently logged in user's ID `auth.user_id()` and checking whether this matches the `user_id` column for the current `todo`. If it does, then it will allow the user to select it, otherwise it will continue to deny.
+
+Click `Review` and then `Save policy`.
+
+> Note: To learn more about RLS and policies, check out [our deep dive video](https://www.youtube.com/watch?v=Ow_Uzedfohk).
+
+The last thing we need to do is update the `user_id` columns for our existing `todos`.
+
+Head back to the Supabase dashboard, and select `Table editor` from the sidebar.
+
+![User ID null in Supabase Table Editor](/img/guides/integrations/auth0/dLOvhdq.png)
+
+Each of our `user_id` columns are set to `NULL`!
+
+To get the ID for our Auth0 user, head over to the Auth0 dashboard, select `User Management` from the sidebar, click `Users` and select your test user.
+
+![List of users in Auth0 dashboard](/img/guides/integrations/auth0/GdXS013.png)
+
+Copy their `user_id`.
+
+![User ID in Auth0 dashboard](/img/guides/integrations/auth0/tbvd0Uj.png)
+
+Update each row in Supabase.
+
+![User ID set to Auth0 user](/img/guides/integrations/auth0/tPu4Tt8.png)
+
+Now when we refresh our application, we should finally see our list of `todos`!
+
+> Note: Check out [the repo](https://github.com/dijonmusters/supabase-auth0-example/blob/main/pages/index.js) for an example of writing new `todos` to Supabase.
+
+## Resources
+
+- [Auth0](https://auth0.com/) official website.
+- [Auth0 blog](https://auth0.com/blog/).
+- [Using Next.js and Auth0 with Supabase article](https://auth0.com/blog/using-nextjs-and-auth0-with-supabase/).
+- [Auth0 community](https://community.auth0.com/).
+- [Auth0 documentation](https://auth0.com/docs/).
diff --git a/web/docs/guides/integrations/draftbit.mdx b/web/docs/guides/integrations/draftbit.mdx
new file mode 100644
index 00000000000..a0867a6b920
--- /dev/null
+++ b/web/docs/guides/integrations/draftbit.mdx
@@ -0,0 +1,231 @@
+---
+id: draftbit
+title: 'Draftbit'
+description: 'Connect your Supabase postgres database to your Low-code mobile app.'
+---
+
+This guide explains how to connect a Supabase back-end to a Draftbit front-end and then configure all CRUD operations necessary to build a simple mobile app.
+
+[Draftbit](https://draftb.it/3Fkbask) is a "pro-code" low-code mobile app building platform. Draftbit exports React Native source code that is 100% run on open-source languages and libraries.
+
+Draftbit is back-end agnostic and connects to Supabase via REST API.
+
+> Note: For the demonstration purpose of this guide, we are using a pre-populated database in Supabase. We are calling `Groceries`. To follow along, rename it any way you prefer.
+
+![Prepopulated Database](/img/guides/integrations/draftbit/prepopulated-database.png)
+
+If you don’t have a Draftbit account, create one [here](https://draftb.it/3Fkbask). Once you’ve got your account set up, Create a New App. You can select `Start From a Blank App` for this demo and proceed to the Builder interface.
+
+## Step 1: Get the RESTful endpoint and Project API key
+
+To connect the REST API in the Draftbit app, the following fields are required:
+
+- Base URL of the REST API, which is in the format: `https://<your-domain>.supabase.co/rest/v1` where the `<your-domain` is a unique domain name generated by Supabase.
+- The `supabase-key` is the secret key.
+
+You can find these unique values in the API settings of your Supabase account.
+
+- Click the Settings button from the top menu bar.
+- In Settings, select **API**.
+- In the Project API Keys section, select and copy the API key under `anon`. It is required for every request made to the Supabase database.
+- Also, under `Config`, select and copy the URL. It is the Base URL of your Supabase REST API. It will be requirest to make a connection to the Draftbit app.
+
+![Get Supabase connection string](/img/guides/integrations/draftbit/endpoint.png)
+
+## Step 2: Save Supabase API key as Authorization Header in Draftbit
+
+To authorize your Draftbit app with Supabse, in the builder interface:
+
+- Open the **Settings** tab from the top menu bar.
+- In Project Settings, navigate to App Variables.
+- Enter a name to access the API Key such as `Authorization_Header`. When making the service connection in the next section, it will be passed as the value for the header `Authorization`.
+- The value of this key requires you to enter an authorization token that starts with syntax `Bearer <your-api-key>` (the space between `Bearer` and `<your-api-key>` is required). Click **Add** after adding the value.
+- Enter another key name to access the API Key such as `Api_Key_Header`. When making the service connection in the next section, it will be passed as the header `apiKey` value.
+- The value of this key requires you to enter an authorization token that starts with syntax is `<your-api-key>`. Click **Add** after adding the value.
+- Click **Save** to save these keys and close the modal.
+
+![Add header values in Draftbit](/img/guides/integrations/draftbit/authheader.png)
+
+## Step 3: Add Supabase RESTful endpoint in Draftbit
+
+In your Draftbit builder interface:
+
+- Open the **API & Cloud Services** modal from the top menu bar.
+- From the **Connect a service** menu, click on **Rest API**.
+
+- In Step 1: Enter a name for your REST API. Then, paste your `Base URL` (from the first section) into the Base URL field.
+- In Step 2: Under **Key** add `Authorization` and `apikey`. Then, under **Value**, select the global variables (from the previous section) to add the actual values for both keys.
+- Click Save.
+
+![Create a API service in Draftbit](/img/guides/integrations/draftbit/service.png)
+
+## Making API requests with Supabase & Draftbit
+
+### GET request to Fetch all records
+
+In this section, let's populate a Fetch component with all the data from a simple Supabase and then display the data fetched from the Supabase data table in a List component.
+
+For a reference, here is a how the Components tree looks like for this screen:
+
+![Components tree](/img/guides/integrations/draftbit/ctree.png)
+
+The next step is to create an endpoint. Let's try fetching all the data using a `GET` HTTP request. Select the Supabase service in the **API & Cloud Services** modal, and then:
+
+- Click **Add endpoint**.
+- In Step 1: enter the name for the endpoint. Make sure the **Method** select is `GET`.
+- In Step 2: add the base name path: `/groceries/select=*`, where `groceries` is the table name in Supabase.
+- In Step 4: click the **Test** button next to the Endpoint input to verify the response coming from the Supabase.
+- Click Save.
+
+![Creating a GET request endpoint](/img/guides/integrations/draftbit/get-request.gif)
+
+In the Builder, on the app screen:
+
+- Select the Fetch component in the Components tree and go to the [Data tab from Properties Panel](doc:introduction-to-the-builder#properties-panel).
+- For **Service**, select the name of the Supabase Service.
+- For **Endpoint**, select the endpoint you want to fetch the data from.
+- Select the List component in the Components and go to the [Data tab from Properties Panel](doc:introduction-to-the-builder#properties-panel). In Data, select `Top-Level Response` from the dropdown menu.
+- Then, select the Text component in the Components and then go to the Data tab from the Properties Panel.
+- Add a `{{varName}}` value (inside the curly braces) to represent a column field from the Supabase. For example, add `{{title}}` to represent the column name from the Supabase Base.
+- Under **Variables**, you will see the variable name defined in the previous step. From the dropdown menu, select the appropriate field that represents the data field.
+
+![Fetching data on app screen](/img/guides/integrations/draftbit/fetchall.gif)
+
+### GET request to fetch single row
+
+Open the **API & Cloud services** modal from the top menu, select the Supabase service, and then:
+
+- Click **Add endpoint**.
+- In Step 1: enter a name for the endpoint.
+- In Step 2: add the `/groceries/column-name=eq.{{column-name}}` variable. Then, add a Test value for the `{{column-name}}`. For example, it can be the `title` or the `id`.
+- In Step 4: click the **Test** button next to the Endpoint input to verify the response coming from the Supabase.
+- Click Save.
+
+![Creating endpoint to fetch a single row](/img/guides/integrations/draftbit/getsingle.gif)
+
+On app screen:
+
+- Select the Fetch component in the Components tree and go to the Data tab from Properties Panel
+- For **Service**, select the name of the Supabase Service.
+- For **endpoint**, select the endpoint you want to fetch the data from.
+- Set the value for the `id` in the Configuration > URL Structure section to Navigation > id.
+- Select the List component in the Components and go to the Data tab from Properties Panel. In Data, select `Top-Level Response` from the dropdown menu.
+- Then, select the Text component in the Components and then go to the Data tab from the Properties Panel.
+- Add a `{{varName}}` value (inside the curly braces) to represent the column field from the Supabase. For example, add `{{title}}` to represent the field and value from the Supabase data table.
+- Under **Variables**, you will see the variable name defined in the previous step. From the dropdown menu, select the appropriate field that represents the data field.
+
+![Displaying data from single row](/img/guides/integrations/draftbit/fetchsingle.png)
+
+### POST request to submit a new row
+
+Submitting new Data from the Draftbit app to Supabase's REST API requires the request to be sent using the HTTP `POST` method.
+
+For this section, you need to use at least one component that accepts user input and has a Field Name prop to POST data using Supabase REST API.
+
+You can use one of the following components in Draftbit:
+
+- Text Input
+- Text Area/Text Field
+- Checkbox
+- Slider
+- Radio Button Group
+- Radio Button
+
+In addition, you need a Touchable component like a Button to attach the POST action. After you have created these components, we will create the `POST` endpoint:
+
+- Click **Add endpoint**.
+- In Step 1: enter a name for the endpoint and select the Method to `POST`.
+- In Step 2: enter the base name as path: `/groceries`.
+- In Step 3: add a valid Body structure to submit a POST request. Add one or many `{{variable}}` for test values. Click Body Preview to validate the structure of the Body in the request. For the example, let's create a variable called `{{inputValue}}`.
+- In Step 4: to see the new row added to the Supabase data table as JSON response inside the Builder, you have to pass a new header called `Prefer` with its value as `return=representation`.
+- In Step 5: click the **Test** button next to the Endpoint input to verify the response coming from the Supabase and click Save.
+
+![Make a POST request to add new data to Supabase database](/img/guides/integrations/draftbit/postrequest.gif)
+
+Once you follow the above steps, you should get a 200 OK response with exactly the new record as a JSON you have entered for your schema.
+
+An example of how Body in a request will look like:
+
+```json
+{
+ "title": {{inputValue}}
+}
+```
+
+Where `title` is the column name in your Supabase database table.
+
+In Draftbit, using a Touchable or a Button component, you can trigger the action **API Request** to submit the data to the endpoint.
+
+Now, there is a working `POST` request in Draftbit. Map its response to the components on your screen in Draftbit.
+
+First, for each input component, make sure you have set the Field Names (found in the Configs tab, second from the left) to unique values. For example, in the screen below, there is one TextInput field component with the the value of the `Field Name` prop of `textInputValue`.
+
+![Field Name prop on a TextInput component](/img/guides/integrations/draftbit/textinput.png)
+
+Next, on your Button component, go to the Interactions tab in the Properties panel located on the far-right-hand side. Select an Action called `API request`.
+
+In the API request action:
+
+- In **Service**, select the name to Supabase API Service.
+- In **Endpoint**, select the name of the Endpoint.
+- Then add the configuration for the body request to be sent by selecting the values for `{{inputValue}}`.
+
+![Setting up the API Request to send a POST request](/img/guides/integrations/draftbit/postapirequest.png)
+
+After completing the above steps, you can trigger the API request to submit new data to the Supabase database.
+
+### PATCH request to Update a new record
+
+Updating an existing record from the Draftbit app to Supabase's REST API requires the request to be sent using the HTTP `PATCH` method.
+
+After you have created your screen components in the Draftbit builder, open the Supabase service and make the `PATCH` endpoint:
+
+- Click **Add endpoint**.
+- In Step 1: enter a name for the endpoint and select the Method to `PATCH`.
+- In Step 2: enter the base name as path: `/groceries?id=eq.{{id}}`, where `id` is the value of an existing record in the database.
+- In Step 3: add a valid Body structure to submit a PATCH request. Add one or many `{{variable}}` for test values depending on the structure of your app. Click Body Preview to validate the structure of the Body in the request. For the example, let's create a variable called `{{inputValue}}`.
+- In Step 5: click the **Test** button next to the Endpoint input to verify the response coming from the Supabase and click Save.
+
+![Creating an endpoint for PATCH request](/img/guides/integrations/draftbit/patch.gif)
+
+Next, on your Button component, go to the Interactions tab in the Properties panel located on the far-right-hand side. Select an Action called `API request`.
+
+In the API request action:
+
+- In **Service**, select the name to Supabase API Service.
+- In **Endpoint**, select the name of the Endpoint.
+- Then add the configuration for the query param, and the body request to be sent by selecting the values for `{{inputValue}}`.
+
+![Setting up the API Request to send a PATCH request](/img/guides/integrations/draftbit/patchapirequest.png)
+
+After completing the above steps, you can trigger the API request to update existing data in the Supabase database.
+
+### DELETE request to remove an existing record
+
+The `DELETE` request is to the Supabase with an item's `column-name` to remove that particular record from the table. You can use a [filter from Supabase](https://supabase.io/docs/reference/javascript/using-filters) to filter the value of a specific `column-name`.
+
+After you have created your screen components in the Draftbit builder, open the Supabase service and create the `DELETE` endpoint:
+
+- Click **Add endpoint**.
+- In Step 1: enter a name for the endpoint and select the Method to `DELETE`.
+- In Step 2: add `/groceries/columnName=eq.{{columnName}}`. Then, add a Test value for the `{{columnName}}`. For example, the `{{columnName}}` here can be `id` of the record.
+- In Step 4: click the **Test** button next to the Endpoint input to verify the response from the Supabase.
+- Click Save.
+
+![Creating an endpoint for DELETE request](/img/guides/integrations/draftbit/delete.gif)
+
+Next, on your Button component, go to the Interactions tab in the Properties panel located on the far-right-hand side. Select an Action called `API request`.
+
+In the API Request action:
+
+- In **Service**, select the name to Supabase API Service.
+- In **Endpoint**, select the name of the Endpoint.
+- Then, add the configuration for the query request to be sent by selecting a value. For example, in this case it will be the `id` of the record coming from the Navigation parameter.
+
+![Setting up the API Request to send a DELETE request](/img/guides/integrations/draftbit/deleteapirequest.gif)
+
+## Resources
+
+- [Draftbit](https://draftb.it/3Fkbask) official website.
+- [Draftbit Community](https://community.draftbit.com/home).
+- [Draftbit](https://docs.draftbit.com/) documentation.
diff --git a/web/docs/guides/integrations/prisma.mdx b/web/docs/guides/integrations/prisma.mdx
new file mode 100644
index 00000000000..9b805c2b110
--- /dev/null
+++ b/web/docs/guides/integrations/prisma.mdx
@@ -0,0 +1,146 @@
+---
+id: prisma
+title: 'Prisma'
+description: 'Connect your Supabase postgres database to your Prisma project.'
+---
+
+This guide explains how to quickly connect the Postgres database provided by Supabase to a Prisma project.
+
+[Prisma](https://prisma.io) is an [open source](https://github.com/prisma/prisma) next-generation ORM. It consists of the following parts:
+
+- **Prisma Client**: Auto-generated and type-safe query builder for Node.js & TypeScript.
+- **Prisma Migrate**: Migration system.
+- **Prisma Studio**: GUI to view and edit data in your database.
+
+## Step 1: Get the connection string from Supabase project settings
+
+Go to the settings page from the sidebar and navigate to the **Database** tab. You’ll find the database’s connection string with a placeholder for the password you provided when you created the project.
+![Getting the connection string](/img/guides/integrations/prisma/zntcsh3ic91gf1gy8j73.png)
+
+## Step 2: Testing the connection
+
+To make sure that everything works correctly, let’s try the connection string in a Prisma project.
+
+If you already have one, all you need to do is set the `DATABASE_URL` to the connection string (including the password) in your `.env` file, and you’re good to go.
+
+In case you don’t have a Prisma project or this is your first time working with Prisma, you’re going to use with the repo from the [quickstart](https://www.prisma.io/docs/getting-started/quickstart) guide.
+
+### Cloning the starter project
+
+Navigate into a directory of your choice and run the following command in your terminal if you’re on a Windows machine:
+
+```bash
+curl https://pris.ly/quickstart -L -o quickstart-master.tar.gz && tar -zxvf quickstart-master.tar.gz quickstart-master/typescript/starter && move quickstart-master\typescript\starter starter && rmdir /S /Q quickstart-master && del /Q quickstart-master.tar.gz
+```
+
+And if you’re using Mac OS or Linux, run the following command:
+
+```bash
+curl -L https://pris.ly/quickstart | tar -xz --strip=2 quickstart-master/typescript/starter
+```
+
+You can now navigate into the directory and install the project’s dependencies:
+
+```bash
+cd starter && npm install
+```
+
+### A look at the project’s structure
+
+This project comes with TypeScript configured and has the following structure.
+
+- A `prisma` directory which contains:
+ - A `dev.db` file: This is a SQLite database.
+ - A `schema.prisma` file: Where we define the different database models and relations between them.
+- A `.env` file: Contains the `DATABASE_URL` variable, which Prisma will use.
+- A `script.ts` file: where we will run some queries using Prisma Client.
+ This starter also comes with the following packages installed:
+- [`@prisma/client`](https://www.npmjs.com/package/prisma): An auto-generated and type-safe query builder that’s _tailored_ to your data.
+- [`prisma`](https://www.npmjs.com/package/@prisma/client): Prisma’s command-line interface (CLI). It allows you to initialize new project assets, generate Prisma Client, and analyze existing database structures through introspection to automatically create your application models.
+ > Note: Prisma works with both JavaScript and TypeScript. However, to get the best possible development experience, using TypeScript is highly recommended.
+
+### Configuring the project to use PostgreSQL
+
+Go ahead and delete the `prisma/dev.db` file because we will be switching to PostgreSQL.
+Next, inside the `prisma/.env` file, update the value of the `DATABASE_URL` variable to the connection string you got in **step 3**. The URL might look as follows:
+
+```env
+# prisma/.env
+postgres://postgres:[YOUR-PASSWORD]@db.vdbnhqozmlzdsaejdxwr.supabase.co:5432/postgres
+```
+
+Finally, inside your `schema.prisma` file, change the `provider` from “sqlite” to `“postgresql”`.
+This is what your `schema.prisma` file should look like:
+
+```go
+datasource db {
+ provider = “postgresql”
+ url = env(“DATABASE_URL”)
+}
+generator client {
+ provider = “prisma-client-js”
+}
+model Post {
+ id Int @id @default(autoincrement())
+ title String
+ content String?
+ published Boolean @default(false)
+ author User? @relation(fields: [authorId], references: [id])
+ authorId Int?
+}
+model User {
+ id Int @id @default(autoincrement())
+ email String @unique
+ name String?
+ posts Post[]
+}
+```
+
+To test that everything works correctly, run the following command to create a migration:
+
+```bash
+prisma migrate dev --name init
+```
+
+You can optionally give your migration a name, depending on the changes you made. Since this is the project’s first migration, you’re setting the `--name` flag to “init”.
+If everything works correctly, you should get the following message in your terminal:
+
+```text
+Your database is now in sync with your schema.
+:heavy_check_mark: Generated Prisma Client (2.x.x) to ./node_modules/@prisma/client in 111ms
+```
+
+This will create a `prisma/migrations` folder inside your `prisma` directory and synchronize your Prisma schema with your database schema.
+
+> Note: if you want to skip the process of creating a migration history, you can use the [`db push`](https://www.prisma.io/docs/concepts/components/prisma-migrate/db-push) command instead of `migrate dev`.
+> If you go to your Supabase project, in the table editor, you should see that two tables have been created, a `Post` and a `User` table.
+> ![tables created in the UI](/img/guides/integrations/prisma/7y4qq4wwvfrheti6r09u.png)
+> That’s it! You have now successfully connected a Prisma project to a PostgreSQL database hosted on Supabase and ran your first migration.
+
+## Connection pooling with Supabase
+
+If you’re working in a serverless environment (for example Node.js functions hosted on AWS Lambda, Vercel or Netlify Functions), you need to set up [connection pooling](https://www.prisma.io/docs/guides/performance-and-optimization/connection-management#serverless-environments-faas) using a tool like [PgBouncer](https://www.pgbouncer.org/). That’s because every function invocation may result in a [new connection to the database](https://www.prisma.io/docs/guides/performance-and-optimization/connection-management#the-serverless-challenge). Supabase [support connection management using PgBouncer](https://supabase.io/blog/2021/04/02/supabase-pgbouncer#what-is-connection-pooling) and are enabled by default.
+Go to the **Database** page from the sidebar in the Supabase dashboard and navigate to **connection pool** settings
+![Connection pool settings](/img/guides/integrations/prisma/w0oowg8vq435ob5c3gf0.png)
+When running migrations you need to use the non pooled connection URL (like the one we used in **step 4**). However, when deploying your app, you’ll use the pooled connection URL. and add the `?pgbouncer=true` flag to the PostgreSQL connection URL. The URL might look as follows:
+
+```env
+# prisma/.env
+postgres://postgres:[YOUR-PASSWORD]@db.vdbnhqozmlzdsaejdxwr.supabase.co:6543/postgres?pgbouncer=true
+```
+
+Prisma Migrate uses database transactions to check out the current state of the database and the migrations table. However, the Migration Engine is designed to use a single connection to the database, and does not support connection pooling with PgBouncer. If you attempt to run Prisma Migrate commands in any environment that uses PgBouncer for connection pooling, you might see the following error:
+
+```bash
+Error: undefined: Database error
+Error querying the database: db error: ERROR: prepared statement “s0” already exists
+```
+
+This is a known issue and it is being worked on, you can follow the progress on this [GitHub issue](https://github.com/prisma/prisma/issues/6485).
+If you want to learn more about Prisma, check out the [docs](https://www.prisma.io/docs). Also in case you have any questions or run into any issue, feel free to start a discussion in the repo’s [discussions section](https://github.com/prisma/prisma/discussions).
+
+## Resources
+
+- [Prisma](https://prisma.io) official website.
+- [Prisma GitHub](https://github.com/prisma/prisma).
+- [Prisma](https://www.prisma.io/docs/) documentation.
diff --git a/web/docs/guides/integrations/vercel.mdx b/web/docs/guides/integrations/vercel.mdx
new file mode 100644
index 00000000000..d3da240fe4c
--- /dev/null
+++ b/web/docs/guides/integrations/vercel.mdx
@@ -0,0 +1,241 @@
+---
+id: vercel
+title: 'Vercel'
+description: The fastest way to get up and running with an application that uses Supabase is with Vercel's Next.js starter and Supabase integration.
+---
+
+This guide steps through using Vercel's dashboard to create a Next.js project integrated with Supabase. To further streamline the process, we will be using the Next.js starter template, which can be automatically forked to a new GitHub repo, without leaving the dashboard!
+
+If you don’t have a Vercel account, create one [here](https://vercel.com/signup).
+
+## Step 1: Create a Supabase project
+
+This guide could use an existing Supabase project, but to create the `todo` demo from scratch, navigate to [Supabase](https://app.supabase.io/), click `Sign In` and authenticate with GitHub to login or register a new account.
+
+From the Supabase dashboard, click `New project` and select an organization.
+
+> Note: You may need to create an organization first.
+
+Give your project a `name`, `password`, select a `region` close to your potential users and click `Create new project`.
+
+![Create a Supabase project](/img/guides/integrations/vercel/create-supabase-project.png)
+
+Supabase will take a couple of minutes to configure the infrastructure.
+
+Once this is finished, navigate to `SQL Editor` from the sidebar menu and click `New query`.
+
+This will create a new SQL snippet called "New Query". Copy and paste the following and click `Run`.
+
+```sql
+create table todos (
+ id bigint generated by default as identity primary key,
+ title text,
+ is_complete boolean default false,
+ created_at timestamp with time zone default timezone('utc'::text, now()) not null
+);
+
+alter table todos enable row level security;
+
+create policy "Anyone can view todos" on todos for
+ select using (true);
+
+create policy "Anyone can add new todos" on todos for
+ insert with check (true);
+
+insert into todos(title)
+values
+ ('Create Supabase project'),
+ ('Create Vercel project'),
+ ('Install Supabase integration');
+```
+
+This will create a new todos table, enable row level security, add policies for selecting and inserting data, and add some example rows.
+
+> Note: To simplify this example, we are allowing anyone to `select` and `insert` rows on the `todos` table. Usually, these actions would be locked down to only allow logged in users to perform them. Check out [this video](https://www.youtube.com/watch?v=Ow_Uzedfohk) to learn more about Row Level Security and policies.
+
+## Step 2: Create Vercel project
+
+From your [Vercel dashboard](https://vercel.com/dashboard), click `New Project`.
+
+![Create new Vercel project](/img/guides/integrations/vercel/create-vercel-project.png)
+
+Under the `Clone Template` menu, click `Next.js`.
+
+![Clone Next.js template](/img/guides/integrations/vercel/clone-next-js-template.png)
+
+In the `Create Git Repository` section, click `GitHub`, select your username under `GIT SCOPE`, enter a name for your project, choose whether you want your repo `private` or `public`, and click `Create`.
+
+![New GitHub repo settings](/img/guides/integrations/vercel/repo-settings.png)
+
+This will create a new GitHub repository, clone and commit the Next.js starter project, then build and deploy your new project to Vercel.
+
+Once you have been redirected to the `Congratulations` screen, click `Go to Dashboard`.
+
+Navigate to `Settings`, `Integrations`, then click `Browse Marketplace`.
+
+Search for `Supabase` and click the Supabase integration.
+
+![Supabase integration](/img/guides/integrations/vercel/supabase-integration.png)
+
+Click `Add Integration`. Select your account from the `Vercel Scope` dropdown, and click `CONTINUE`.
+
+![Choose scope](/img/guides/integrations/vercel/choose-scope.png)
+
+Choose `Specific Projects` and select your new Vercel project from the dropdown, and click `Add Integration`.
+
+![Choose project](/img/guides/integrations/vercel/choose-project.png)
+
+From the Supabase popup, select your new Vercel Project and Supabase project from the dropdowns.
+
+![Supabase integration](/img/guides/integrations/vercel/link-vercel-to-supabase.png)
+
+## Step 4: Clone GitHub repo
+
+The fastest way to get this project running locally is to clone the repo that Vercel created for us.
+
+Navigate back to the Vercel project `Overview` page, and click `View Git Repository`.
+
+![Vercel Project Dashboard](/img/guides/integrations/vercel/vercel-project-dashboard.png)
+
+This will open the GitHub repo. From here, click the arrow next to `Code` and copy the url from the dropdown.
+
+![GitHub repo url](/img/guides/integrations/vercel/github-project-url.png)
+
+Open a terminal window or CLI and run the following command to clone the GitHub repo.
+
+```bash
+git clone your-repo-url.git
+```
+
+Open the project in your code editor of choice, and update the contents of `pages/index.js` to the following:
+
+```jsx
+import styles from '../styles/Home.module.css'
+
+export default function Home() {
+ return <div className={styles.container}>working</div>
+}
+```
+
+Run a local development server.
+
+```bash
+npm run dev
+```
+
+Navigate to `http://localhost:3000` to confirm the project is "working".
+
+## Step 4: Pull environment variables from Vercel
+
+First, we need to login to Vercel using their CLI tool.
+
+```bash
+npx vercel login
+```
+
+This will ask if we are happy to install `vercel`. Type `y` and hit `Enter`.
+
+We will the need to authenticate Vercel by selecting `Continue with GitHub`.
+
+This will open a browser window where you need to authenticate with your GitHub account.
+
+Next, we need to link our Vercel project.
+
+```bash
+npx vercel link
+```
+
+Step through the prompts to link the Vercel project.
+
+![Link project from Vercel](/img/guides/integrations/vercel/vercel-link.png)
+
+Copy the environment variables from our Vercel project.
+
+```bash
+npx vercel env pull
+```
+
+This will create a `.env` file containing our Supabase environment variables. Rename this file to `.env.local` to automatically ignore it from git.
+
+## Step 5: Install Supabase.js
+
+Install the `supabase-js` library.
+
+```bash
+npm i @supabase/supabase-js
+```
+
+Create a new file called `/utils/supabase.js` and add the following.
+
+```jsx
+import { createClient } from '@supabase/supabase-js'
+
+export default createClient(
+ process.env.NEXT_PUBLIC_SUPABASE_URL,
+ process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY
+)
+```
+
+Create a new file called `/components/NewTodo.js` and add the following.
+
+```jsx
+import { useState } from 'react'
+import supabase from '../utils/supabase'
+
+export default ({ reload }) => {
+ const [title, setTitle] = useState('')
+
+ const addTodo = async (e) => {
+ e.preventDefault()
+ await supabase.from('todos').insert({ title })
+ reload()
+ setTitle('')
+ }
+
+ return (
+ <form onSubmit={addTodo}>
+ <input value={title} onChange={(e) => setTitle(e.target.value)} />
+ </form>
+ )
+}
+```
+
+This component will be responsible for writing a new `todo` to Supabase.
+
+Let's import our new component in `pages/index.js` and display a list of todos.
+
+```jsx
+import { useState, useEffect } from 'react'
+import styles from '../styles/Home.module.css'
+import supabase from '../utils/supabase'
+import NewTodo from '../components/NewTodo'
+
+export default function Home() {
+ const [todos, setTodos] = useState([])
+
+ const fetchTodos = async () => {
+ const { data } = await supabase.from('todos').select('*')
+ setTodos(data)
+ }
+
+ useEffect(() => {
+ fetchTodos()
+ }, [])
+
+ return (
+ <div className={styles.container}>
+ <NewTodo reload={fetchTodos} />
+ {todos.map((todo) => (
+ <p key={todo.id}>{todo.title}</p>
+ ))}
+ </div>
+ )
+}
+```
+
+## Resources
+
+- [Vercel official website](https://vercel.com).
+- [Vercel blog](https://vercel.com/blog).
+- [Vercel docs](https://vercel.com/docs).
+- [Vercel Integration docs](https://vercel.com/docs/integrations)
diff --git a/web/sidebars.js b/web/sidebars.js
index d94dccfc96e..c62b08083eb 100755
--- a/web/sidebars.js
+++ b/web/sidebars.js
@@ -182,6 +182,17 @@ module.exports = {
},
],
},
+ {
+ type: 'category',
+ label: 'Integrations',
+ collapsed: false,
+ items: [
+ 'guides/integrations/auth0',
+ 'guides/integrations/draftbit',
+ 'guides/integrations/prisma',
+ 'guides/integrations/vercel',
+ ],
+ },
// {
// type: 'category',
// label: 'Storage',
diff --git a/web/static/img/guides/integrations/auth0/33kqP4K.png b/web/static/img/guides/integrations/auth0/33kqP4K.png
new file mode 100644
index 00000000000..1158cb6fa24
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/33kqP4K.png differ
diff --git a/web/static/img/guides/integrations/auth0/ANU4Wez.png b/web/static/img/guides/integrations/auth0/ANU4Wez.png
new file mode 100644
index 00000000000..33c0704aec4
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/ANU4Wez.png differ
diff --git a/web/static/img/guides/integrations/auth0/GdXS013.png b/web/static/img/guides/integrations/auth0/GdXS013.png
new file mode 100644
index 00000000000..a5ee5ef69a9
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/GdXS013.png differ
diff --git a/web/static/img/guides/integrations/auth0/IYzHxeW.png b/web/static/img/guides/integrations/auth0/IYzHxeW.png
new file mode 100644
index 00000000000..ec2a54f7841
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/IYzHxeW.png differ
diff --git a/web/static/img/guides/integrations/auth0/M7XyhHe.png b/web/static/img/guides/integrations/auth0/M7XyhHe.png
new file mode 100644
index 00000000000..694f54ff79d
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/M7XyhHe.png differ
diff --git a/web/static/img/guides/integrations/auth0/XgEMwnN.png b/web/static/img/guides/integrations/auth0/XgEMwnN.png
new file mode 100644
index 00000000000..2a85f0c3af1
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/XgEMwnN.png differ
diff --git a/web/static/img/guides/integrations/auth0/YdBKRy6.png b/web/static/img/guides/integrations/auth0/YdBKRy6.png
new file mode 100644
index 00000000000..979720ce868
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/YdBKRy6.png differ
diff --git a/web/static/img/guides/integrations/auth0/dLOvhdq-1.png b/web/static/img/guides/integrations/auth0/dLOvhdq-1.png
new file mode 100644
index 00000000000..baa9fdc2326
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/dLOvhdq-1.png differ
diff --git a/web/static/img/guides/integrations/auth0/dLOvhdq.png b/web/static/img/guides/integrations/auth0/dLOvhdq.png
new file mode 100644
index 00000000000..baa9fdc2326
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/dLOvhdq.png differ
diff --git a/web/static/img/guides/integrations/auth0/iSA3E0J.png b/web/static/img/guides/integrations/auth0/iSA3E0J.png
new file mode 100644
index 00000000000..666ad012ac7
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/iSA3E0J.png differ
diff --git a/web/static/img/guides/integrations/auth0/mEhHAWC.png b/web/static/img/guides/integrations/auth0/mEhHAWC.png
new file mode 100644
index 00000000000..e8aca555121
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/mEhHAWC.png differ
diff --git a/web/static/img/guides/integrations/auth0/o07FaoV.png b/web/static/img/guides/integrations/auth0/o07FaoV.png
new file mode 100644
index 00000000000..4aabb218006
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/o07FaoV.png differ
diff --git a/web/static/img/guides/integrations/auth0/qnmJEU7.png b/web/static/img/guides/integrations/auth0/qnmJEU7.png
new file mode 100644
index 00000000000..d6daf31eecd
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/qnmJEU7.png differ
diff --git a/web/static/img/guides/integrations/auth0/r1GAfLo.png b/web/static/img/guides/integrations/auth0/r1GAfLo.png
new file mode 100644
index 00000000000..2bfe6a9c68b
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/r1GAfLo.png differ
diff --git a/web/static/img/guides/integrations/auth0/tPu4Tt8.png b/web/static/img/guides/integrations/auth0/tPu4Tt8.png
new file mode 100644
index 00000000000..ffb2f78b6a8
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/tPu4Tt8.png differ
diff --git a/web/static/img/guides/integrations/auth0/tbvd0Uj.png b/web/static/img/guides/integrations/auth0/tbvd0Uj.png
new file mode 100644
index 00000000000..0f323f1b4f9
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/tbvd0Uj.png differ
diff --git a/web/static/img/guides/integrations/auth0/wuWz3am.png b/web/static/img/guides/integrations/auth0/wuWz3am.png
new file mode 100644
index 00000000000..c506f369373
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/wuWz3am.png differ
diff --git a/web/static/img/guides/integrations/auth0/xLRL7S7.png b/web/static/img/guides/integrations/auth0/xLRL7S7.png
new file mode 100644
index 00000000000..53527c9b3d8
Binary files /dev/null and b/web/static/img/guides/integrations/auth0/xLRL7S7.png differ
diff --git a/web/static/img/guides/integrations/draftbit/authheader.png b/web/static/img/guides/integrations/draftbit/authheader.png
new file mode 100644
index 00000000000..c8b2b0c7c1f
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/authheader.png differ
diff --git a/web/static/img/guides/integrations/draftbit/ctree.png b/web/static/img/guides/integrations/draftbit/ctree.png
new file mode 100644
index 00000000000..cc1ade28a6d
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/ctree.png differ
diff --git a/web/static/img/guides/integrations/draftbit/delete.gif b/web/static/img/guides/integrations/draftbit/delete.gif
new file mode 100644
index 00000000000..bc8a27abb27
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/delete.gif differ
diff --git a/web/static/img/guides/integrations/draftbit/deleteapirequest.gif b/web/static/img/guides/integrations/draftbit/deleteapirequest.gif
new file mode 100644
index 00000000000..5fc85f42a3e
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/deleteapirequest.gif differ
diff --git a/web/static/img/guides/integrations/draftbit/endpoint.png b/web/static/img/guides/integrations/draftbit/endpoint.png
new file mode 100644
index 00000000000..99ecd0d6bc3
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/endpoint.png differ
diff --git a/web/static/img/guides/integrations/draftbit/fetchall.gif b/web/static/img/guides/integrations/draftbit/fetchall.gif
new file mode 100644
index 00000000000..8004538c9d9
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/fetchall.gif differ
diff --git a/web/static/img/guides/integrations/draftbit/fetchsingle.png b/web/static/img/guides/integrations/draftbit/fetchsingle.png
new file mode 100644
index 00000000000..44051de9f21
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/fetchsingle.png differ
diff --git a/web/static/img/guides/integrations/draftbit/get-request.gif b/web/static/img/guides/integrations/draftbit/get-request.gif
new file mode 100644
index 00000000000..fb6500dd544
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/get-request.gif differ
diff --git a/web/static/img/guides/integrations/draftbit/getsingle.gif b/web/static/img/guides/integrations/draftbit/getsingle.gif
new file mode 100644
index 00000000000..934ae30a06d
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/getsingle.gif differ
diff --git a/web/static/img/guides/integrations/draftbit/patch.gif b/web/static/img/guides/integrations/draftbit/patch.gif
new file mode 100644
index 00000000000..623b5614379
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/patch.gif differ
diff --git a/web/static/img/guides/integrations/draftbit/patchapirequest.png b/web/static/img/guides/integrations/draftbit/patchapirequest.png
new file mode 100644
index 00000000000..3963e3888b5
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/patchapirequest.png differ
diff --git a/web/static/img/guides/integrations/draftbit/postapirequest.png b/web/static/img/guides/integrations/draftbit/postapirequest.png
new file mode 100644
index 00000000000..ba5334a09e6
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/postapirequest.png differ
diff --git a/web/static/img/guides/integrations/draftbit/postrequest.gif b/web/static/img/guides/integrations/draftbit/postrequest.gif
new file mode 100644
index 00000000000..ba41851eb3a
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/postrequest.gif differ
diff --git a/web/static/img/guides/integrations/draftbit/prepopulated-database.png b/web/static/img/guides/integrations/draftbit/prepopulated-database.png
new file mode 100644
index 00000000000..db3ad5cbf1a
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/prepopulated-database.png differ
diff --git a/web/static/img/guides/integrations/draftbit/service.png b/web/static/img/guides/integrations/draftbit/service.png
new file mode 100644
index 00000000000..c145dd53d1f
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/service.png differ
diff --git a/web/static/img/guides/integrations/draftbit/textinput.png b/web/static/img/guides/integrations/draftbit/textinput.png
new file mode 100644
index 00000000000..794d58fd9d6
Binary files /dev/null and b/web/static/img/guides/integrations/draftbit/textinput.png differ
diff --git a/web/static/img/guides/integrations/prisma/7y4qq4wwvfrheti6r09u.png b/web/static/img/guides/integrations/prisma/7y4qq4wwvfrheti6r09u.png
new file mode 100644
index 00000000000..7602fd2f152
Binary files /dev/null and b/web/static/img/guides/integrations/prisma/7y4qq4wwvfrheti6r09u.png differ
diff --git a/web/static/img/guides/integrations/prisma/w0oowg8vq435ob5c3gf0.png b/web/static/img/guides/integrations/prisma/w0oowg8vq435ob5c3gf0.png
new file mode 100644
index 00000000000..9bfb34db474
Binary files /dev/null and b/web/static/img/guides/integrations/prisma/w0oowg8vq435ob5c3gf0.png differ
diff --git a/web/static/img/guides/integrations/prisma/zntcsh3ic91gf1gy8j73.png b/web/static/img/guides/integrations/prisma/zntcsh3ic91gf1gy8j73.png
new file mode 100644
index 00000000000..817a4f8d1b2
Binary files /dev/null and b/web/static/img/guides/integrations/prisma/zntcsh3ic91gf1gy8j73.png differ
diff --git a/web/static/img/guides/integrations/vercel/choose-project.png b/web/static/img/guides/integrations/vercel/choose-project.png
new file mode 100644
index 00000000000..530ede3f217
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/choose-project.png differ
diff --git a/web/static/img/guides/integrations/vercel/choose-scope.png b/web/static/img/guides/integrations/vercel/choose-scope.png
new file mode 100644
index 00000000000..cd01bf47838
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/choose-scope.png differ
diff --git a/web/static/img/guides/integrations/vercel/clone-next-js-template.png b/web/static/img/guides/integrations/vercel/clone-next-js-template.png
new file mode 100644
index 00000000000..0a6987e2c55
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/clone-next-js-template.png differ
diff --git a/web/static/img/guides/integrations/vercel/create-supabase-project.png b/web/static/img/guides/integrations/vercel/create-supabase-project.png
new file mode 100644
index 00000000000..bafa3f40076
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/create-supabase-project.png differ
diff --git a/web/static/img/guides/integrations/vercel/create-vercel-project.png b/web/static/img/guides/integrations/vercel/create-vercel-project.png
new file mode 100644
index 00000000000..bc799859433
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/create-vercel-project.png differ
diff --git a/web/static/img/guides/integrations/vercel/github-project-url.png b/web/static/img/guides/integrations/vercel/github-project-url.png
new file mode 100644
index 00000000000..5e855935f23
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/github-project-url.png differ
diff --git a/web/static/img/guides/integrations/vercel/link-vercel-to-supabase.png b/web/static/img/guides/integrations/vercel/link-vercel-to-supabase.png
new file mode 100644
index 00000000000..b4da05efe2a
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/link-vercel-to-supabase.png differ
diff --git a/web/static/img/guides/integrations/vercel/repo-settings.png b/web/static/img/guides/integrations/vercel/repo-settings.png
new file mode 100644
index 00000000000..7b96f4b3a1a
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/repo-settings.png differ
diff --git a/web/static/img/guides/integrations/vercel/supabase-integration.png b/web/static/img/guides/integrations/vercel/supabase-integration.png
new file mode 100644
index 00000000000..0a1f0ba5f3c
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/supabase-integration.png differ
diff --git a/web/static/img/guides/integrations/vercel/vercel-link.png b/web/static/img/guides/integrations/vercel/vercel-link.png
new file mode 100644
index 00000000000..1b0961c2160
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/vercel-link.png differ
diff --git a/web/static/img/guides/integrations/vercel/vercel-project-dashboard.png b/web/static/img/guides/integrations/vercel/vercel-project-dashboard.png
new file mode 100644
index 00000000000..cca9931a856
Binary files /dev/null and b/web/static/img/guides/integrations/vercel/vercel-project-dashboard.png differ