Supabase untuk Aplikasi Web 2026
Kenapa Supabase
PostgreSQL (SQL) bukan NoSQL. Row Level Security built-in. REST API otomatis dari tabel.
Setup Database
SQL migration: profiles, posts. Index untuk performa. RLS policies: author dan admin bisa edit, publik bisa baca.
Autentikasi
Email/password, Google, GitHub, Magic Link. 50.000 user gratis. Session management built-in.
Storage
File upload ke bucket. Public URL dengan CDN. Cache control. Upsert.
Integrasi Laravel
Supabase PHP client. Verifikasi JWT. Service class untuk queries.
Vercel Edge Functions
Edge runtime + Supabase = API cepat. Query dari edge tanpa backend server.
Real-time
WebSocket subscriptions. Event: INSERT, UPDATE, DELETE. Auto-reconnect.
Pricing
Free: 500MB DB, 50K users, 2GB bandwidth. Pro: $25/bulan, 8GB, unlimited users. Team: $75/bulan.
Kesimpulan
Free tier 500MB cukup untuk production skala kecil. SQL + Auth + Storage + Real-time dalam satu platform.