pixelysg cuts out the Supabase middleman for database calls
An optional toggle lets the app talk to Postgres directly while keeping the rest of the codebase none the wiser.
pixelysg has added a switch that, when flipped, routes all database reads and writes straight to Postgres instead of going through Supabase's hosted API. Authentication still runs through Supabase - only the data layer changes. To pull this off, the team built their own query layer that mimics the shape of the Supabase client the rest of the app already speaks to, so nothing upstream had to be rewritten.
The likely motive lines up with pixelysg's parallel work to deploy on Cloudflare's edge network: cutting out the hosted gateway trims latency and frees the app to point at any Postgres-compatible database, including a local one for tests. The trade-offs are real - it's a hand-rolled adapter covering only what the codebase uses today, and it sidesteps Supabase's row-level security, so whatever credentials you hand it run with full access.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?