Sangha Rooms (Servers)
A Sangha is the digital equivalent of a high-vibe communal space. It's a permanent community oriented around shared goals and collective presence.
👑 Role & Permission Hierarchy
Haven provides elite, Discord-style role management for every Sangha:
- The Architect (Creator): Complete authority over the space, including role definition and server deletion.
- The Moderators (Mods): Empowered to kick, ban, or mute to maintain the sanctuary's vibe.
- The Members: The lifeblood of the Sangha with access to voice, video, and persistent chat.
check_room_permission_internal (Manual SQL)
Our core permission logic uses a high-performance PostgreSQL function to verify access. It checks for owner_id (Creator) status or specific room_role entries across the room_user_roles table. This logic was hardened in Q1 2026 to resolve all schema mismatches.
🏛️ High-Fidelity Infrastructure (LiveKit)
Haven Sanghas leverage LiveKit SFU (Selective Forwarding Unit) for high-scale, low-latency group media.
- Immense Capacity: Support for large groups in a single room with adaptive bitrate.
- Global Low Latency: Sub-100ms delay ensures real-time interaction regardless of location.
- Crystal Clear Audio: High-bandwidth audio paths optimized for deep work and meditation.
🚦 Interactive Features
1. Real-time Message Persistence
Every Sangha room features a persistent message history. Messages are stored in room_messages with an index on created_at DESC for sub-5ms loading.
2. Presence Tracking
Member status (is_online, online_at) is synchronized via Supabase Realtime. You can instantly see who's active and for how long they've been contributing to the space.
3. Collaborative Rituals
Integrated Pomodoro Timers and Vedic Soundscapes help groups sync their focus cycles.
Created by the Haven Community Bureau.