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

# Supabase Integration

> Supercharge your OnSpace builds with Supabase's all-in-one backend platform, creating dynamic full-stack applications with enterprise-grade capabilities.

OnSpace's seamless Supabase integration enables you to control every aspect of your application—from user interface design to database architecture—all through one intelligent conversational platform. This means you can simultaneously create engaging app interfaces and configure powerful PostgreSQL cloud databases without ever switching tools or platforms.

This consolidated workflow revolutionizes how applications are built: beginners can leverage OnSpace's smart recommendations and intuitive guidance to create professional-grade apps, while expert developers can instantly access Supabase's full suite of advanced features whenever complex functionality is required.

## Overview

OnSpace seamlessly integrates with Supabase, the leading open-source Firebase alternative that delivers enterprise-grade PostgreSQL databases with real-time capabilities, user authentication, file storage, and serverless functions. This integration transforms your OnSpace app with instant access to a production-ready backend infrastructure—no boilerplate code or server configuration required.

**PostgreSQL Database Foundation**\
Deploy robust SQL-powered data storage with OnSpace's intelligent schema generation. Simply describe your data needs, and OnSpace automatically creates the necessary tables and relationships.

**Secure User Management**\
Implement comprehensive authentication systems including email/password flows, social logins (Google, GitHub, etc.), and access control—all configured through natural language prompts.

**Cloud File Management**\
Handle image uploads, document storage, and media files through Supabase's integrated storage solution, perfect for user avatars, content assets, and file sharing features.

**Live Data Synchronization**\
Enable real-time features like instant messaging, collaborative editing, live notifications, and dynamic dashboards that update across all connected users simultaneously.

**Serverless Backend Functions**\
Deploy custom business logic using Supabase Edge Functions for email automation, payment processing, AI integrations, and third-party API connections.

### Why Choose OnSpace's Supabase Integration?

OnSpace eliminates the traditional complexity of coordinating frontend and backend development. Through conversational AI, you can simultaneously design your user interface and configure the underlying database architecture.

Example in action: Request "Create a customer review system that stores ratings and comments" and OnSpace will generate both the review form interface and the database table structure, connecting them automatically. This unified approach accelerates development while maintaining professional-grade architecture.

## **Setup Guide: Connecting Your OnSpace Project**

### **Prerequisites**

* Active Supabase account (free tier available)
* OnSpace project ready for integration

### **Step 1: Supabase Account Setup**

Navigate to Supabase and either create a new account or sign into your existing one.

1. **Create a new organization**

   <img src="https://mintcdn.com/soulzaiinc/f7POxopOXVhYFDw2/images/supabase-org.jpg?fit=max&auto=format&n=f7POxopOXVhYFDw2&q=85&s=1be609d624cefc3b81c3471d35dcdf31" alt="supabase-org.jpg" title="supabase-org.jpg" className="mr-auto" style={{ width:"60%" }} width="1370" height="958" data-path="images/supabase-org.jpg" />
2. **Create a new project**

   <img src="https://mintcdn.com/soulzaiinc/f7POxopOXVhYFDw2/images/supabase-project.jpg?fit=max&auto=format&n=f7POxopOXVhYFDw2&q=85&s=309ba22d9de59d0f6d2fd41b6ad26b3a" alt="supabase-project.jpg" title="supabase-project.jpg" className="mr-auto" style={{ width:"60%" }} width="1368" height="1234" data-path="images/supabase-project.jpg" />

### Step 2: OnSpace Integration

**Initialize Connection**\
From the top right corner of your current project, click the Supabase icon and choose **Connect Supabase**.

<img src="https://mintcdn.com/soulzaiinc/DP_um_9EGfdPiKQZ/images/supabase-2.gif?s=27b2e45e53eeb54736489bcd6d5f2433" alt="supabase-2.gif" title="supabase-2.gif" className="mr-auto" style={{ width:"100%" }} width="800" height="398" data-path="images/supabase-2.gif" />

**Account Authorization**\
Complete the Supabase login process and authorize OnSpace's access to your account.

<img src="https://mintcdn.com/soulzaiinc/DP_um_9EGfdPiKQZ/images/Supabase-acct-auth.gif?s=1b982e3ad7c7f4631ff58b6505be582b" alt="Supabase-acct-auth.gif" title="Supabase-acct-auth.gif" className="mr-auto" style={{ width:"100%" }} width="800" height="398" data-path="images/Supabase-acct-auth.gif" />

**Project Selection**\
Choose your target Supabase organization and project, or create a new project.

<img src="https://mintcdn.com/soulzaiinc/DP_um_9EGfdPiKQZ/images/Supabase-Select-Project.gif?s=11929a7d11cba8e79331603a06de1631" alt="Supabase-Select-Project.gif" title="Supabase-Select-Project.gif" className="mr-auto" style={{ width:"100%" }} width="800" height="398" data-path="images/Supabase-Select-Project.gif" />

**Configuration Completion**

To connect Supabase in OnSpace: Open your project, click **"Refresh Browser"** → **Supabase icon** → select your project from the **dropdown**. When you see the green **"Connect"** message, the setup is complete.

<img src="https://mintcdn.com/soulzaiinc/DP_um_9EGfdPiKQZ/images/Supabase-completion.gif?s=ac39cd112c36ab78a136d5e2d41131b6" alt="Supabase-completion.gif" title="Supabase-completion.gif" className="mr-auto" style={{ width:"100%" }} width="800" height="398" data-path="images/Supabase-completion.gif" />

Your OnSpace app now has full access to Supabase's database, authentication, and backend services.

## How to Create Functional Login and Signup

Ready to implement authentication in your OnSpace application? This step-by-step video tutorial demonstrates how to build a complete user authentication system using OnSpace's intuitive interface combined with Supabase's powerful backend capabilities.

<iframe width="560" height="315" src="https://www.youtube.com/embed/uUoZBpHzHTI" title="Full-stack app dev Tutorial: Functional Login/Signup for your Project. OnSpace.AI x Supabase" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />
