Try the new CLI tool instead

npx create-jiobase generates a full-featured proxy with WebSocket support, service filtering, and auto-deployment — all in one command.

Learn more
Free Tool

Deploy Your Own
Supabase Proxy

Generate a ready-to-deploy Cloudflare Worker that proxies your Supabase traffic. Free and open-source. For a full-featured proxy with WebSocket support, try npx create-jiobase instead.

Generate Your Worker

Paste your Supabase project URL and we'll generate the Worker code for you.

Deployment Guide

Deploy manually

Follow these steps to deploy your Supabase proxy worker on Cloudflare.

1

Create a Cloudflare account

Go to dash.cloudflare.com and create a free account. No credit card required.

Cloudflare Workers free tier includes 100,000 requests per day - more than enough for most projects.

2

Create a new Worker

In your Cloudflare dashboard:

  • Navigate to Workers & Pages in the sidebar
  • Click Create applicationCreate Worker
  • Name it something like supabase-proxy
  • Click Deploy to create the placeholder worker
3

Paste the generated code

After deployment, click Edit code on the worker page. Select all the existing code and replace it with the generated code from the tool above.

Click Save and Deploy. Your proxy is now live!

Enter your Supabase URL in the generator above to get the code.

4

Test the proxy

Your worker will be available at a URL like:

https://supabase-proxy.your-subdomain.workers.dev

Test it with a curl command:

terminal
curl https://supabase-proxy.your-subdomain.workers.dev/rest/v1/

If you get a response from Supabase (even a 401 Unauthorized), the proxy is working correctly.

5

Update your app code

Replace your Supabase URL in your application with your Worker URL:

supabaseClient.ts
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(
//'https://xyz.supabase.co'
'https://supabase-proxy.your-subdomain.workers.dev',
'your-anon-key'
)

Optional: Add a custom domain under Worker settings → Triggers → Custom Domains. Cloudflare handles SSL automatically.

Compare

Self-host vs Managed

The DIY worker works great for simple setups. For production apps, JioBase adds features you'll need.

DIY / Self-Host

Deploy the worker yourself

  • Full control over your worker
  • Free (Cloudflare free tier)
  • No third-party dependency
  • No WebSocket / Realtime support
  • No analytics dashboard
  • Manual setup & maintenance
  • One project per worker

JioBase Managed

Recommended

We handle everything for you

  • One-click setup, no code needed
  • Full WebSocket / Realtime support
  • Built-in analytics dashboard
  • CORS configuration UI
  • Rate limiting built-in
  • Multiple apps from one account
  • Automatic updates & improvements

FAQ

Frequently Asked Questions

Is this proxy free to deploy?
Yes, completely free. Cloudflare Workers free tier includes 100,000 requests per day, which is more than enough for most projects. You do not need a paid Cloudflare plan.
Does this worker support WebSockets / Supabase Realtime?
No. This basic worker handles HTTP requests only (REST API, Auth, Storage, Edge Functions). WebSocket/Realtime support requires additional code. For full WebSocket support out of the box, consider using JioBase managed proxy.
Do I need to change my Supabase anon key?
No. Your anon key, service role key, and all other credentials stay exactly the same. The Supabase client library sends them as headers, and the proxy forwards everything unchanged to your Supabase project.
Can I add a custom domain to my worker?
Yes. In your Cloudflare dashboard, go to your Worker's settings, then Triggers, and add a Custom Domain. Cloudflare handles SSL automatically. This lets you use something like api.yourdomain.com instead of the default *.workers.dev URL.
Does this store or cache my data?
No. The worker is a transparent pass-through proxy. It forwards requests to Supabase and returns responses without storing, caching, or modifying any data. Your data flows directly between your client and Supabase.
What about latency?
Cloudflare Workers run at the edge closest to your users across 300+ global locations. The proxy adds 1-5ms of latency, which is negligible compared to VPN overhead (50-200ms+) or DNS workarounds.

Want a managed proxy instead?

Skip the setup. JioBase gives you WebSocket support, analytics, rate limiting, and a dashboard - all for free.