Modernizing RT Infrastructure and Observability for Supabase
SW Mansion collaborated with Supabase on two parallel engineering efforts: modernizing the Realtime.js SDK by migrating from a custom Phoenix.js fork to the canonical upstream library, and improving Logflare, Supabase's observability platform. The Realtime.js work involved building a proof of concept, creating an abstraction layer to preserve the existing API, developing a browser-based test playground, and adding React Native lifecycle hooks for reliable WebSocket reconnection. On the Logflare side, the team migrated BigQuery integration from a deprecated REST API to gRPC streaming, rebuilt the ingestion rule evaluation engine as a tree-based structure for near-logarithmic complexity, and implemented export adapters for Axiom, Last9, and OpenTelemetry Protocol.