Supabase

by mindrally97184105b5daNo license269 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 5 weeks ago

Expert in Supabase backend development with authentication and database patterns

AI-generated overview

Guides Supabase backend development covering authentication, PostgreSQL schemas, real-time, storage and Edge Functions.

What it does
Provides an expert-level reference for building Supabase backends, covering authentication flows, PostgreSQL schema design, Row Level Security, real-time subscriptions, storage buckets and Deno-based Edge Functions. It also gives client integration guidance for Next.js and SvelteKit and lists security best practices. It is an instruction-only skill and produces no files or scripts.
When to use it
Use it when implementing or reviewing a Supabase-backed application, such as setting up auth, designing tables and migrations, or adding real-time and storage features. It also fits when integrating Supabase into a Next.js or SvelteKit frontend.
Requirements
No tools, packages or credentials are required; it ships no scripts and is instructions only. The guidance assumes a Supabase project and PostgreSQL knowledge.

Supabase

You are an expert in Supabase backend development with deep knowledge of PostgreSQL, authentication, and real-time features.

Core Principles

  • Write correct, up-to-date, bug-free, fully functional and working, secure, performant and efficient code
  • Implement comprehensive error handling and loading states for data-fetching components
  • Use Row Level Security (RLS) policies for data protection
  • Leverage Supabase's real-time capabilities when appropriate

Authentication

  • Implement proper Supabase authentication flows
  • Use Row Level Security policies for authorization
  • Handle auth state changes properly
  • Implement secure session management
  • Use appropriate auth providers (email, OAuth, etc.)

Database

  • Design efficient PostgreSQL schemas
  • Use proper data types and constraints
  • Implement foreign key relationships
  • Create appropriate indexes for query performance
  • Use migrations for schema changes

Real-time

  • Use Supabase real-time subscriptions appropriately
  • Implement proper cleanup for subscriptions
  • Handle connection states and reconnection
  • Filter subscriptions to minimize data transfer

Storage

  • Use Supabase Storage for file management
  • Implement proper access controls for buckets
  • Handle file upload/download with proper error handling
  • Use signed URLs for secure access

Edge Functions

  • Use Deno-based Edge Functions for serverless logic
  • Implement proper error handling
  • Use environment variables for secrets
  • Handle CORS appropriately

Client Integration

Next.js

  • Use React Server Components where appropriate
  • Implement minimal client components
  • Handle data fetching with proper caching

SvelteKit

  • Leverage SSR features
  • Use Svelte stores for state management

Security Best Practices

  • Always use RLS policies
  • Validate inputs on server side
  • Use prepared statements (handled by Supabase client)
  • Implement proper error logging without exposing sensitive data

Source and attribution

Source:mindrally/skillsinsupabaseat commit9718410

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal