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

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

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