ContactBook a call

Operations & Internal Tools

Connect Retool and Supabase

Screens in Retool, data in a Postgres database you own and can expose safely.

Connects
Retool and Supabase
Data flows
4 automated, two-way where safe
Built with
Retool, Supabase Postgres, Supabase Row Level Security
Timeline
Live in 2 to 8 weeks from scope
Owned by
You, with accounts, credentials and code in your name.

Connecting Retool to Supabase puts your operational data in a Postgres database you own, with Retool as the screens on top. SBD uses Supabase to publish only what outside services need, as in a WhatsApp catalogue build, and as the landing point when a system outgrows Retool and moves to custom code.

What runs between Retool and Supabase

Each line is one automated workflow, with the same checks, logs and alerts on all of them.

Retool
  1. Public catalogue without exposing internal data

  2. WhatsApp catalogue kept current

  3. Copy the Retool data before moving

  4. A cut-over with the old app kept read-only

Supabase

Where the simple setup breaks down

A one-step Zap connects Retool and Supabase in an afternoon. This is what goes wrong once volume grows.

  • The direct connection string does not reach Retool

    Supabase direct connections map to an IPv6 address, and Supabase lists Retool among services that only accept IPv4. The shared pooler is IPv4, so the connection has to go through it, in the right mode, or the resource never connects.

  • Poolers and prepared statements collide

    Retool turns Postgres queries into prepared statements by default. Retool advises disabling that only for setups such as a transaction-mode pooler, and doing so removes its SQL injection protection. Retool also warns that a pooler can break access policy enforcement. Choosing the mode is a design decision.

  • The secret key ignores your row rules

    A Supabase secret key, or the legacy service_role key, bypasses Row Level Security. Pasting it into a Retool resource gives every app on that resource full access. Publishable keys follow RLS, which Supabase says should be on for every table before you deploy.

  • Outside services should never see the internal tables

    In the WhatsApp product promotion build, the Meta catalogue reads from a Supabase database so the internal Retool database is never exposed. Pointing an outside service at the working tables leaks fields that were never meant to leave.

The problem, from both sides

In the team

  • Outside services need data the team does not want exposed
  • Business rules live in queries nobody can review
  • A workflow stopped and nobody was told
  • Per-user cost climbs as more people need access
  • Fear of losing data blocks any move

Under the hood

  • IPv6 direct connections versus IPv4-only Retool
  • Prepared statements and pooler modes
  • Secret keys bypass Row Level Security
  • Default 1,000-row cap on Data API reads
  • Keys written into queries in plain text

Used for

  • Public catalogue without exposing internal data
  • WhatsApp catalogue kept current
  • Copy the Retool data before moving
  • A cut-over with the old app kept read-only
  • Retool on a database you own
  • Supabase as a Retool resource
  • Moving off Retool to custom code
  • Row Level Security for outside access
  • Audit log on every table
  • Demo database seeded for reviewers

Built with

  • Retool
  • SPSupabase Postgres
  • SRSupabase Row Level Security
  • RWRetool Workflows
  • MCMeta commerce catalogue

Which fields map to which

Agreed in the blueprint and written into the runbook. Two-way rows carry loop protection, so a write from the sync never sets it off again.

  • Products, categories and prices in Retool one-way→ Supabase catalogue table, public fields only Product ID
  • Recipient lists in Retool one-way→ Kept internal, not published List ID
  • Retool database tables one-way→ Supabase schema with keys and RLS Primary key per table
  • Retool app actions after cut-over two-way⇄ Supabase tables with an audit log Row ID

Standards on every build

Validation, retries, reconciliation, audit logs and alerts come as standard, with credentials and accounts in your name. Read the integration standards

Where we have done this

What people ask about this pair

Can we keep using Retool Database instead?

Yes. Retool Database is Postgres, and Retool gives admins a connection string to reach it from outside. We still put anything outside services read into a separate Supabase database, so the working data and the published data never share credentials.

Why Supabase rather than any Postgres host?

Any Postgres works for Retool. Supabase adds Row Level Security tied to its keys, an API for outside services, scheduled jobs and storage, which is what the catalogue and migration builds needed. The data stays in standard Postgres either way.

Does moving to Supabase mean leaving Retool?

No. Plenty of teams should stay on Retool. Putting the data in Supabase first means a later move is a rebuild of screens rather than a data rescue, which is what made our three moves off Retool in 2026 practical. Internal tools start from $3,000.

Do Supabase reads have a row limit?

The Supabase Data API returns at most 1,000 rows per request by default, and the limit is set in project settings. Anything that reads a whole table, such as a catalogue sync, pages through it rather than trusting one read.

Related pairs

Retool screens on a Supabase database you own

Retool connected to Supabase with the right pooler settings, safe publishing to outside services, and a path off Retool when the system outgrows it, live in 2 to 8 weeks.

Start with a discovery call
Retool and Supabase logos joined by a plus sign
Retool and Supabase, connected by SBD.

Cookie preferences

Choose what this site may use on your device. You can change this at any time from “Cookie settings” in the footer.

Strictly necessary

Keep the site working and remember the choices you make here. These cannot be switched off, and none of them track you.

Always on
What this includes (4)
NameProvider PurposeDuration
sbd-consentThis site Remembers your cookie choices12 months
Vercel Web AnalyticsVercel Inc. Counts page views in aggregate. Sets no cookie and stores nothing on your deviceNone
ticker-dismissed, sbd-note-offThis site Remembers that you closed a notice or language tipUntil the tab closes
sbd-voice-resume, sbd-voice-prefillThis site Carries a voice conversation across pages, only if you start oneUntil the tab closes

Analytics

Tell us which pages are read and where visitors leave, so we can improve them. IP addresses are anonymised and nothing is used for advertising.

What this includes (2)
NameProvider PurposeDuration
_gaGoogle Analytics (Google LLC) Distinguishes visitors with a random ID13 months
_ga_FPXDMQPRV1Google Analytics (Google LLC) Keeps the session state for this site13 months

Functional

Embedded services that set their own cookies. Without them the site still works; you get a link to open the service instead.

What this includes (1)
NameProvider PurposeDuration
Booking calendarCal.com Inc. Shows live availability and books the call on the booking pageSet by Cal.com

Advertising

Not used. This site has no advertising, retargeting or social media tracking, and we never sell data.

Not used

Questions about your data: hello@smallbaydigital.com