supabase-realtime

Configure private Supabase Realtime channels for messaging, presence, and live collaboration.

1|Updated Sep 19, 2025
One-click install
npx skills add https://github.com/antonpme/CV-Optimizer --skill supabase-realtime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-realtime
Source: https://github.com/antonpme/CV-Optimizer/tree/main/.claude/skills/supabase-realtime
Command: npx skills add https://github.com/antonpme/CV-Optimizer --skill supabase-realtime

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Supabase Realtime enables developers to add live updates, presence, and messaging to apps by broadcasting changes in real time. This Skill provides best practices, patterns, and migration guidance to implement robust, scalable realtime features without compromising security or performance.

Core Features & Use Cases

  • Real-time messaging and notifications: implement chat, alerts, and live updates using dedicated, private channels.
  • Presence and collaboration: track user presence and build collaborative features with fine-grained access control.
  • Migration and optimization: guidance to move from postgres_changes to broadcast and optimize performance with proper RLS and indexing.

Quick Start

Set up a private real-time channel and listen for a broadcast event, for example: channel = supabase.channel('room:123:messages', { config: { private: true } }); channel.on('broadcast', { event: 'message_created' }, handler).subscribe();

Frequently Asked Questions about supabase-realtime

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up private real-time channels in Supabase for secure messaging?

Set up private real-time channels in Supabase by configuring your channel with `private: true` and applying strict RLS policies. This ensures only authorized users receive broadcast events and presence updates within their designated rooms.

What is the best way to migrate from postgres_changes to Supabase realtime broadcast?

Migrate from postgres_changes to Supabase realtime broadcast by using `realtime.broadcast_changes` via database triggers. This approach optimizes performance and provides better scalability for delivering real-time updates to client applications.

Do I need Row Level Security policies for Supabase real-time presence features?

Yes, Row Level Security (RLS) policies are required for Supabase real-time presence features. RLS enforces fine-grained access control, ensuring collaborative features securely track user presence and broadcast updates only to authorized subscribers.

How does Supabase handle real-time database triggers for live updates?

Supabase handles real-time database triggers for live updates by utilizing `realtime.broadcast_changes`. This mechanism captures database mutations and broadcasts them directly to subscribed clients, enabling scalable messaging and notification scenarios.

Can I build scalable live collaboration features using Supabase real-time?

Yes, you can build scalable live collaboration features using Supabase real-time. By implementing dedicated private channels, presence tracking, and performance-oriented indexing, applications securely manage concurrent user states and live updates.

Why should I use private channels by default for Supabase real-time messaging?

Use private channels by default for Supabase real-time messaging to enforce security at the channel level. Combined with RLS policies and clear topic naming, this prevents unauthorized access to broadcast events and sensitive presence data.