> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatandbuild.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Supabase Integration

> Connect your ChatAndBuild projects with Supabase for database, authentication, and real-time features

## Overview

ChatAndBuild's Supabase integration provides seamless database connectivity, user authentication, real-time subscriptions, and edge functions. Build full-stack applications with AI assistance and powerful backend services.

## Features

<CardGroup cols={2}>
  <Card title="Database Operations" icon="database">
    Generate SQL queries, create tables, and manage your Supabase database with AI assistance.
  </Card>

  <Card title="Authentication Integration" icon="shield-check">
    Implement user authentication with Supabase Auth using AI-generated code.
  </Card>

  <Card title="Real-Time Features" icon="bolt">
    Build real-time applications with Supabase subscriptions and live data updates.
  </Card>

  <Card title="Edge Functions" icon="code">
    Deploy serverless functions to Supabase Edge with automatic code generation.
  </Card>
</CardGroup>

## Setting Up Supabase Integration

### Connect Your Supabase Project

<Steps>
  <Step title="Create Supabase Project">
    On the main page, open the Supabase icon and click icon to **Connect with Supabase**.

    <img src="https://mintcdn.com/chatandbuild-cfa8e63c/k8q6-ntWFtyR39Fe/docs/images/Screenshot2025-08-26at10.47.16PM.png?fit=max&auto=format&n=k8q6-ntWFtyR39Fe&q=85&s=e7d56abb751145599f3a57cdd73d9709" alt="Screenshot2025 08 26at10 47 16PM Pn" width="1354" height="426" data-path="docs/images/Screenshot2025-08-26at10.47.16PM.png" />
  </Step>

  <Step title="Authorize ChatAndBuild" stepNumber={2}>
    You'll be redirected to GitHub to authorize the ChatAndBuild application.
  </Step>

  <Step title="Grant Permissions">
    Allow ChatAndBuild to access your repositories with the following permissions:

    * **Read** access to analytics logs.
    * **Read** and **Write** access to auth configurations and SSO providers.
    * **Read** and **Write** access to Postgres configurations, SQL snippets, SSL enforcement configurations and Typescript schema types.
    * **Read** and **Write** access to custom domains and vanity subdomainsProject Configuration

      etc.
  </Step>

  <Step title="Create new database">
    Create a new Supabase project by clicking **“+ New Project”**.
  </Step>

  <Step title="Confirm">
    Select the corresponding Supabase project.
  </Step>

  <Step title="Prompt">
    Use a prompt in ChatAndBuild to help you connect your Supabase project.
  </Step>
</Steps>

<Note>
  Ready to integrate all your tools? Learn how these integrations work together in our [Platform Overview](/docs/overview) or explore [API Reference](/docs/api-reference/introduction) for programmatic access.
</Note>
