Self-hosted Supabase & PowerSync (via Docker)
An example implementation and demo is available here:self-host-demo/demos/supabase at main · powersync-ja/self-host-demo
Self-hosted Supabase & PowerSync Cloud (via ngrok)
This guide describes an example local dev workflow that uses ngrok and the PowerSync CLI.
This guide assumes that you have both ngrok and the Supabase CLI installed
Configure Supabase for SSL
Start ngrok
Here we obtain the local port that supabase is listening on and initialize ngrok using it.4.tcp.us-cal-1.ngrok.io
and port number 19263
), your values will differ.
Connect PowerSync (GUI)
- Configure your PowerSync instance using the hostname and port number you noted previously. The default postgres password is “postgres”, you may want to change this. NOTE: make sure that the
Host
field does not contain thetcp://
URI Scheme outputted by ngrok

- Set the SSL Mode to
verify-ca
and click Download certificate

- Click “Test Connection”

- Click “Save” to provision your instance