Supabase overview and usage

Updated at:
Copy as MD

Supabase is an open source Backend as a Service (BaaS) platform. AI-Native Database Service integrates Supabase into the Agent Developer Platform to help you build backend services for AI-native applications and deliver a one-stop BaaS development experience.

What is Supabase

Supabase is an open source BaaS (Backend as a Service) platform built on PostgreSQL. It provides core backend capabilities such as databases, authentication, file storage, edge functions, and real-time subscriptions. Developers can build fully functional applications without setting up or maintaining backend infrastructure.

AI-Native Database Service integrates Supabase into the Custom Development module of the Agent Developer Platform, providing a managed Supabase service based on AnalyticDB for PostgreSQL. You can create and manage Supabase projects in the AI-Native Database Service console without deploying or maintaining the backend environment yourself.

Core capabilities

Supabase provides the following core capabilities for application development:

Capability

Description

Database

A PostgreSQL-based relational database that provides full SQL query capabilities, row-level security (RLS) policies, and auto-generated RESTful APIs for application data storage and access.

Authentication

Built-in user authentication and authorization service. Supports email-password, phone number, OAuth, and other authentication methods to help you implement user management for your applications.

File storage

An object storage service that supports uploading, downloading, and managing files such as images, videos, and documents. You can control file access permissions through storage policies.

Edge functions

Allows you to write and deploy server-side functions (Edge Functions) for custom business logic and third-party API integration without maintaining additional application servers.

Real-time subscriptions

WebSocket-based real-time data delivery that monitors change events in database tables, enabling real-time data synchronization and updates for your applications.

Platform integration advantages

Compared with self-deploying open source Supabase, using Supabase in AI-Native Database Service provides the following advantages:

  • Zero-maintenance deployment: Create Supabase projects with a single click in the console. No manual configuration of databases, authentication services, or storage backends is required, reducing deployment and O&M costs.

  • Enterprise-grade database foundation: Built on AnalyticDB for PostgreSQL, which provides high availability, high performance, and elastic scaling to meet enterprise-level data processing requirements.

  • AI-native development integration: Works with Dify, RAGFlow, and other tools in the Agent Developer Platform to provide comprehensive backend service support for AI applications.

  • Free edition available: A free edition (1C2G, 1 GB storage) is available for feature validation and prototype development before you commit to a paid plan.

Use cases

  • AI application backend services: Provide database storage, user authentication, and file management capabilities for AI applications built on large language models, accelerating AI-native application development and launch.

  • Rapid prototyping: Use auto-generated APIs and built-in authentication to build application prototypes quickly, shortening the cycle from concept to validation.

  • Real-time collaboration applications: Build multi-user collaboration, real-time chat, and data dashboard applications that require real-time data synchronization by using the real-time subscription capabilities.

Specifications and billing

Supabase currently offers the following specifications:

Edition

Specifications

Description

Free

1C2G, 1 GB storage

Suitable for feature validation and prototype development. Available at no cost.

Note

Supabase is built on AnalyticDB for PostgreSQL. Paid editions follow the AnalyticDB for PostgreSQL pricing model. For more information about billing, see the AnalyticDB for PostgreSQL billing documentation.

Supported regions

Supabase is currently available in the following region: China (Hangzhou).

Note

More regions will become available over time. Check the console for the latest supported regions.

Access Supabase

To access Supabase, perform the following steps:

  1. Log on to the AI-Native Database Service console.

  2. In the left-side navigation pane, choose Agent Developer Platform > Custom Development.

  3. On the Custom Development page, click the Supabase tab to go to the Supabase management page.

On the Supabase management page, you can create Supabase projects, view project status, and log on to projects to develop and manage backend services.

Workflow

A typical workflow for using Supabase in the Agent Developer Platform is as follows:

  1. Create a Supabase project: On the Supabase management page, click the create button. Select a specification and region. The system automatically deploys and initializes the project.

  2. Design your database: Log on to the Supabase project. Use the visual editor or SQL editor to create data tables, configure row-level security policies, and build your application data model.

  3. Integrate backend services: Use the auto-generated RESTful APIs or client SDKs provided by Supabase to integrate database, authentication, storage, and other backend capabilities into your application.

  4. Extend functionality (optional): Configure edge functions for custom logic or enable real-time subscriptions for real-time data delivery based on your business requirements.