Skip to content
IT glossary
BackendUpdated December 3, 2026

Supabase

Supabase provides ready-made backend services for apps, including a PostgreSQL database, user sign-in, file storage, and an API for working with data.

What Supabase is

Imagine building a web app for tracking personal expenses. You need somewhere to store transactions, a way for people to sign in, and rules that keep one person's records private from everyone else. Supabase supplies the backend components for those jobs. You still design the schema and decide who can do what, but you don't have to write a sign-in system or a custom endpoint for every basic data operation.

This approach is called backend as a service (BaaS). You can use Supabase's managed cloud service or run the stack yourself. Self-hosting gives you control over the deployment, but it also puts upgrades, monitoring, and backups on your team.

What happens when an app reads data?

PostgreSQL is the database, and the Data API exposes selected database objects, such as tables and views, over HTTP. A browser or mobile app can make requests through a Supabase SDK without opening a database connection. When a signed-in user makes a request, the SDK can send the access token issued by Supabase Auth. The database checks the permissions of the request's role and, on tables with row-level security (RLS) enabled, applies policies that restrict which rows the role can access.

Other components handle different jobs: Storage keeps files such as receipts, Realtime delivers events to connected clients, and Edge Functions run custom server-side code, for example to receive a webhook from an external service.

Example: show each user their own expenses

Suppose an expenses table has id, amount, and owner_id columns. With a signed-in session, the client can request the columns needed for the screen:

const { data, error } = await supabase
  .from('expenses')
  .select('id, amount');

There's no owner filter in this query. If the authenticated role has SELECT permission, RLS is enabled, and the only applicable read policy requires owner_id = auth.uid(), PostgreSQL returns only rows owned by the current user. The read policy doesn't authorize inserts or updates; those operations need their own access rules.

Where it fits and what to watch for

Supabase is useful for prototypes, internal tools, and apps with straightforward data access. You can also use it alongside a custom backend. For example, the expense screen might read through the Data API, while a server-side service imports bank transactions using credentials that must never reach the browser.

A publishable project key is meant for client code; it doesn't grant unrestricted access to the database. Secret keys and the legacy service_role key belong only in trusted server-side environments because privileged requests can bypass RLS. Likewise, filtering records in the UI is not authorization: it only changes what the interface displays.

Interview angle

If asked whether it's safe for a browser to query Supabase directly, explain what makes it safe: the browser talks to an API using a public key, and database grants and RLS policies enforce access. To verify the design, test with two ordinary accounts and confirm that neither can read or change records belonging to the other.