> ## Documentation Index
> Fetch the complete documentation index at: https://f75df8d-docs-2.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://f75df8d-docs-2.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://f75df8d-docs-2.manicule.dev/api/mcp.
> Every agent surface: https://f75df8d-docs-2.manicule.dev/.well-known/llms-manifest.json

# Supabase Managed Postgres (/databases/supabase-postgres)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 225 · updated: 2026-11-11 -->
Related: [Managed Databases & Storage Overview](/databases/overview.md), [Cloudflare D1 (Edge SQLite)](/databases/cloudflare-d1.md), [Neon Serverless Postgres](/databases/neon-postgres.md), [Database Migrations & ORM Setup](/databases/migrations.md)

> Managed PostgreSQL database with Supabase Auth, Storage, and Realtime integrations.

**Supabase** provides an enterprise PostgreSQL database coupled with authentication, file storage, and realtime subscriptions.

***

## Capabilities

* **Auth Integration**: Google, GitHub, and email/password authentication flows.
* **Row Level Security (RLS)**: Enforce access control rules at the database level.
* **Storage Buckets**: Upload and serve images, user media, and documents.

```typescript
import { createClient } from "@supabase/supabase-js";

export const supabase = createClient(
  process.env.NEXT_PUBLIC_SUPABASE_URL!,
  process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
);

export async function fetchOrders() {
  const { data, error } = await supabase
    .from("orders")
    .select("*, items(*)")
    .order("created_at", { ascending: false });

  if (error) throw error;
  return data;
}
```
