Build with Supabase
Open-source Firebase alternative with instant Postgres, real-time subscriptions, and edge functions
Why Choose Supabase?
Instant Postgres
Full PostgreSQL database with RESTful API auto-generated from your schema. No ORM required.
Real-time Subscriptions
Subscribe to database changes with WebSocket-based real-time engine. Build collaborative apps instantly.
Built-in Auth
Email, OAuth, magic links, phone authβall pre-built with row-level security integration.
Edge Functions
Deploy serverless TypeScript functions globally on Deno Deploy for low-latency API endpoints.
What You Can Build
Real-world Supabase automation examples
Autonomous AML Investigation Agent
Revolutionizing AML with AI-Driven Efficiency and Precision
Ambient Medical Scribe
Revolutionizing Clinical Documentation with AI-Powered Speech Recognition
Contract Review & Redlining Agent
Streamline contract review with AI for 85% faster processing.
Pricing Insights
Platform Cost
Service Price Ranges
Supabase vs Other BaaS Platforms
| Feature | Supabase | Firebase | Planetscale |
|---|---|---|---|
| Database | β Full PostgreSQL | β οΈ NoSQL only | β MySQL |
| Open Source | β Yes | β No | β No |
| Real-time | β Built-in | β Built-in | β No |
| Self-Hosting | β Docker/K8s | β No | β No |
Learning Resources
Master Supabase automation
Supabase Documentation
Comprehensive guides for all Supabase features and client libraries.
Learn More βSupabase YouTube
Tutorials, launch weeks, and community content from the Supabase team.
Learn More βSupabase Blog
Deep dives into features, architecture decisions, and best practices.
Learn More βSupabase Community
GitHub discussions for questions, feature requests, and community support.
Learn More βFrequently Asked Questions
How does Supabase compare to Firebase?
Supabase uses PostgreSQL (SQL) while Firebase uses Firestore (NoSQL). Supabase is fully open-source and self-hostable. Both offer real-time, auth, and storage. Choose Supabase for complex queries, relations, and data integrity; Firebase for simpler document-based apps with Google ecosystem integration.
Can I self-host Supabase?
Yes, Supabase is fully open-source. Deploy via Docker Compose for development or Kubernetes for production. Self-hosting requires managing PostgreSQL, GoTrue (auth), PostgREST (API), Realtime, and storage. The managed platform handles all this with backups, upgrades, and monitoring included.
How does Row Level Security (RLS) work?
RLS policies are SQL conditions that PostgreSQL evaluates for every row access. Define policies like 'users can only read their own data' using the auth.uid() function. Policies are enforced at the database level, so they apply whether access comes from API, Edge Functions, or direct SQL.
What are Supabase Edge Functions?
Edge Functions are TypeScript/JavaScript functions deployed globally on Deno Deploy. They're ideal for webhooks, payment processing, or any logic requiring secrets. They run close to users for low latency, can access Supabase client libraries, and integrate with the auth system seamlessly.
How do I implement real-time features?
Enable real-time on tables, then subscribe using supabase.channel().on('postgres_changes'). Specify INSERT, UPDATE, DELETE events. For presence (who's online) and broadcast (ephemeral messages), use the dedicated Realtime channels. All WebSocket connections authenticate using your Supabase auth tokens.
Can Supabase handle vector embeddings for AI?
Yes, Supabase includes pgvector extension for vector similarity search. Store embeddings alongside your data, create HNSW or IVFFlat indexes for fast retrieval, and query with operators like <=> (cosine distance). Perfect for semantic search, recommendations, and RAG applications.
How do I migrate from Firebase to Supabase?
Export Firebase data as JSON, transform to match your PostgreSQL schema, and import using Supabase's SQL editor or bulk insert APIs. For auth, use the migration tool to import Firebase Auth users. Realtime and storage have different APIs but similar concepts. Plan for schema redesign to use relations.
What authentication methods does Supabase support?
Email/password, magic links, phone OTP, and social OAuth (Google, GitHub, Apple, Microsoft, etc.). Also supports SAML SSO for enterprise, anonymous auth for guest users, and custom JWT providers. All auth methods integrate with RLS policies via the auth schema.
How do I handle file uploads in Supabase?
Supabase Storage provides S3-compatible object storage with CDN. Create buckets, set access policies (public/private), and upload via client SDK or resumable uploads API. Generate signed URLs for private access. Image transformations (resize, crop) are available on Pro plans.
What are the database size and connection limits?
Free tier: 500MB database, ~60 connections. Pro: 8GB included, scaling available. Connection limits can be extended with PgBouncer (built-in). For serverless, use the connection pooler mode. Enterprise plans offer dedicated databases with custom sizing.
Can I use Supabase with my existing PostgreSQL?
Supabase can connect to external PostgreSQL databases, but some features require Supabase-specific extensions. For full feature parity, migrate to a Supabase-managed instance. Alternatively, use only the client libraries with your existing database for API generation.
How does Supabase pricing scale?
Pro plan includes generous free usage with pay-as-you-go overage. Costs scale with database size, bandwidth, storage, and Edge Function invocations. For high-traffic apps, the Team plan offers better rates. Enterprise plans include committed use discounts and SLAs.
Ready to Build with Supabase?
Hire Supabase specialists to accelerate your business growth