Back to Agent Skills
Data & Analytics
Supabase Database & Realtime
Build on Supabase PostgreSQL with auto-generated APIs, realtime subscriptions, and edge functions.
Claude Code Cursor Copilot Windsurf Gemini CLI
Overview
Supabase provides a complete backend platform built on PostgreSQL, offering auto-generated REST and GraphQL APIs, realtime subscriptions via WebSockets, file storage, edge functions, and authentication. The JavaScript client library provides a fluent query builder that generates SQL queries automatically, with full TypeScript support through generated types.
The query builder supports filtering, sorting, pagination, and joining across tables using foreign key relationships. Realtime subscriptions allow clients to listen for INSERT, UPDATE, and DELETE events on specific tables or rows, enabling live dashboards, chat applications, and collaborative features. Row Level Security (RLS) policies ensure that realtime events respect access control rules.
Supabase edge functions run on Deno Deploy, providing serverless compute close to users. The platform includes built-in support for vector embeddings (pgvector), full-text search, database webhooks, and cron jobs. Database migrations are managed through the Supabase CLI, which provides a local development environment that mirrors production. The platform is open source and can be self-hosted.
The query builder supports filtering, sorting, pagination, and joining across tables using foreign key relationships. Realtime subscriptions allow clients to listen for INSERT, UPDATE, and DELETE events on specific tables or rows, enabling live dashboards, chat applications, and collaborative features. Row Level Security (RLS) policies ensure that realtime events respect access control rules.
Supabase edge functions run on Deno Deploy, providing serverless compute close to users. The platform includes built-in support for vector embeddings (pgvector), full-text search, database webhooks, and cron jobs. Database migrations are managed through the Supabase CLI, which provides a local development environment that mirrors production. The platform is open source and can be self-hosted.
Who Is This For?
- Build a CRUD API without writing backend code
- Implement realtime subscriptions for live data updates
- Set up Row Level Security for multi-tenant applications
- Generate TypeScript types from your database schema
Installation
Setup for Claude Code
npm install @supabase/supabase-js Configuration
import { createClient } from "@supabase/supabase-js"
const supabase = createClient(
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!
)
// Query with filters
const { data, error } = await supabase
.from("posts")
.select("*, author:users(name)")
.eq("published", true)
.order("created_at", { ascending: false })
.limit(10)
// Realtime subscription
supabase.channel("posts").on("postgres_changes",
{ event: "INSERT", schema: "public", table: "posts" },
(payload) => console.log("New post:", payload.new)
).subscribe() Explore AI Tools
Discover the best AI tools that complement your skills
Read AI & Design Articles
Tips and trends in the world of design and AI
Related Skills
Data & Analytics
Sentry Error Tracking
Monitor errors and performance issues in production with Sentry. AI agents can triage alerts and suggest fixes based on stack traces.
Claude Code Cursor Copilot
Data & Analytics PostHog Product Analytics
Track product usage, manage feature flags, and analyze user behavior with PostHog, an open-source product analytics platform.
Claude Code Cursor
Data & Analytics Database Query Builder
Generate and optimize SQL queries with AI assistance. Build complex queries, analyze execution plans, and improve database performance.
Claude Code Codex Copilot