supabase
Supabase PostgreSQL backend-as-a-service with realtime. Use for serverless PostgreSQL.
Works with
---
name: supabase
description: Supabase PostgreSQL backend-as-a-service with realtime. Use for serverless PostgreSQL.
license: MIT
---
# Supabase
Supabase is an open source Firebase alternative. It provides a dedicated PostgreSQL database, packaged with Authentication, Realtime subscriptions, Storage, and Edge Functions.
## When to Use
- **Rapid Application Development**: Get Auth + DB + APIs in 5 minutes.
- **Postgres Power**: Unlike Firebase, you have full SQL power (JOINs, aggregation).
- **Realtime**: Subscribe to DB changes via WebSockets.
- **Vector/AI**: Highly integrated `pgvector` support for AI apps.
## Quick Start (JS)
```javascript
import { createClient } from "@supabase/supabase-js";
const supabase = createClient("https://xyz.supabase.co", "public-anon-key");
// Listen to changes
const subscription = supabase
.channel("public:messages")
.on(
"postgres_changes",
{ event: "INSERT", schema: "public", table: "messages" },
(payload) => {
console.log("New message:", payload);
},
)
.subscribe();
```
## Core Concepts
### Row Level Security (RLS)
Supabase exposes the DB directly to the frontend (via PostgREST). RLS is **critical** to secure data.
```sql
CREATE POLICY "Users can see own data" ON "profiles"
FOR SELECT USING (auth.uid() = user_id);
```
### PostgREST
Automatically turns your Database Tables into RESTful APIs.
### Extensions
Supabase makes enabling Postgres extensions easy (PostGIS, pgvector, pg_cron).
## Best Practices (2025)
**Do**:
- **Enable RLS immediately**: Never launch without RLS policies.
- **Use Supabase CLI**: For local development and migrations. Develop locally, push to prod.
- **Use Generated Types**: `supabase gen types typescript` generates accurate TS definitions from your DB schema.
**Don't**:
- **Don't access `service_role` key in client**: Allows bypassing RLS. Server-side only.
- **Don't put business logic in triggers**: Hard to debug. Use Database Webhooks or Edge Functions.
## References
- [Supabase Docs](https://supabase.com/docs)More Database skills
prisma-mongodb-upgrade
prisma/skills
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb", "prisma 7 mongodb", "mongodb prisma migration", "prisma next mongodb".
azure-upgrade
microsoft/azure-skills
Assess and upgrade Azure workloads between plans, tiers, or SKUs, or modernize Azure SDK dependencies in source code. WHEN: upgrade Consumption to Flex Consumption, upgrade Azure Functions plan, change hosting plan, function app SKU, migrate App Service to Container Apps, modernize legacy Azure Java SDKs (com.microsoft.azure to com.azure), migrate Azure Cache for Redis (ACR/ACRE) to Azure Managed Redis (AMR).
azure-cost-optimization
microsoft/azure-skills
Identify Azure cost savings from usage and spending data. USE FOR: optimize Azure costs, reduce Azure spending/expenses, analyze Azure costs, find cost savings, generate cost optimization report, identify orphaned resources to delete, rightsize VMs, reduce waste, optimize Redis costs, optimize storage costs, AKS cost analysis add-on, namespace cost, cost spike, anomaly, budget alert, AKS cost visibility. DO NOT USE FOR: deploying resources (use azure-deploy), general Azure diagnostics (use azure-diagnostics), security issues (use azure-security)

