Broadcast, Presence, and Postgres Changes via WebSockets
  • Elixir 91.2%
  • PLpgSQL 3.5%
  • TypeScript 3.3%
  • HTML 0.9%
  • JavaScript 0.4%
  • Other 0.6%
Find a file
2026-08-07 16:42:19 +00:00
.github fix: nicer rebalance logs (#2068) 2026-08-04 14:24:22 +12:00
assets chore: update @supabase/supabase-js to v2.111.0 (#2053) 2026-07-29 09:22:47 +12:00
bench feat: add jwks support (#807) 2024-04-02 15:49:14 +02:00
config feat: update Erlang OTP and Elixir (#2057) 2026-08-03 11:08:01 -04:00
deploy/fly fix: update config for prod fly v2 (#629) 2023-08-14 14:02:31 -07:00
dev/postgres fix: restrict the realtime schema (#1993) 2026-07-07 13:39:08 -04:00
forum fix: nicer rebalance logs (#2068) 2026-08-04 14:24:22 +12:00
lib fix: improve naming on controller for postgres changes pool configuration (#2075) 2026-08-07 12:56:12 +01:00
priv fix: add missing role on tenant db dump (#2033) 2026-07-17 18:13:14 -04:00
rel fix: reduce map heap size (#1781) 2026-04-01 10:35:35 +13:00
test fix: improve naming on controller for postgres changes pool configuration (#2075) 2026-08-07 12:56:12 +01:00
.credo.exs fix: apply formatting and style fixes; enable in CI (#1291) 2025-01-31 16:58:50 -07:00
.dialyzer_ignore.exs fix: cache subscription insert query statement (#2041) 2026-07-23 10:56:01 +12:00
.dockerignore feat: update Dockerfile OTP and Debian versions 2022-10-19 14:12:40 -04:00
.formatter.exs fix: add extra label to metrics push (#1738) 2026-03-04 22:40:51 +00:00
.gitignore feat: add back pg filters (#1985) 2026-06-26 15:58:56 +01:00
.releaserc chore: automatically bump mix.exs version with a new release (#1687) 2026-02-02 10:09:02 +13:00
.sobelow-conf fix: improve CI security checks (#1299) 2025-02-13 18:23:32 +00:00
compose.dbs.yml feat: setup supabase_realtime_admin (#1852) 2026-06-08 17:29:51 -04:00
compose.tests.yml fix: restrict the realtime schema (#1993) 2026-07-07 13:39:08 -04:00
compose.yml fix: restrict the realtime schema (#1993) 2026-07-07 13:39:08 -04:00
CONTRIBUTING.md chore: local dev setup (#1823) 2026-04-21 12:38:36 -04:00
coveralls.json fix: expose authorization metrics (#1334) 2025-03-28 18:44:56 +00:00
DEVELOPERS.md feat(observability): per-tenant subscription metrics (#1928) 2026-06-02 11:05:42 -04:00
Dockerfile feat: update Erlang OTP and Elixir (#2057) 2026-08-03 11:08:01 -04:00
ENVS.md feat: use Muster.join under a feature flag (#2027) 2026-07-22 17:09:40 +12:00
ERROR_CODES.md fix: resilient connect pool (#2072) 2026-08-06 09:40:57 +12:00
LICENSE Create LICENSE 2022-12-22 16:41:56 -08:00
mise.lock feat: update Erlang OTP and Elixir (#2057) 2026-08-03 11:08:01 -04:00
mise.toml feat: update Erlang OTP and Elixir (#2057) 2026-08-03 11:08:01 -04:00
mix.exs chore(release): 2.124.2 [skip ci] 2026-08-07 16:42:19 +00:00
mix.lock fix: update postgrex to v0.22.4 (#2078) 2026-08-07 12:41:53 -04:00
OBSERVABILITY_METRICS.md feat(observability): per-tenant subscription metrics (#1928) 2026-06-02 11:05:42 -04:00
phx_join.schema.json fix: improve join payload handling (#1501) 2025-08-29 13:16:23 +01:00
README.md fix: restrict the realtime schema (#1993) 2026-07-07 13:39:08 -04:00
run.sh chore: actionlint & shellcheck added (#1873) 2026-05-18 14:41:13 +01:00


Supabase Logo

Supabase Realtime

Send ephemeral messages, track and synchronize shared state, and listen to Postgres changes all over WebSockets.
Examples · Request Features · Report Bugs

Status

GitHub License Coverage Status

Features v1 v2 Status
Postgres Changes GA
Broadcast GA
Presence GA

This repository focuses on version 2 but you can still access the previous version's code and Docker image. For the latest Docker images go to https://hub.docker.com/r/supabase/realtime.

The codebase is under heavy development and the documentation is constantly evolving. Give it a try and let us know what you think by creating an issue. Watch releases of this repo to get notified of updates. And give us a star if you like it!

Overview

What is this?

This is a server built with Elixir using the Phoenix Framework that enables the following functionality:

  • Broadcast: Send ephemeral messages from client to clients with low latency.
  • Presence: Track and synchronize shared state between clients.
  • Postgres Changes: Listen to Postgres database changes and send them to authorized clients.

For a more detailed overview head over to Realtime guides.

Does this server guarantee message delivery?

The server does not guarantee that every message will be delivered to your clients so keep that in mind as you're using Realtime.

Quick start

You can check out the Supabase UI Library Realtime components and the repository of the multiplayer.dev demo app.

Developers

Start with DEVELOPERS.md for local setup, mise tasks, and example workflows.

Once your environment is up and running, check out the following docs to customize the server and troubleshooting:

Postgres compatibility

supabase/postgres version Role Status
< 14 - Not officially supported.
14.x supabase_admin Requires superuser: log_min_messages can only be set by a superuser; supautils doesn't expose per-parameter delegation on this version. On <= 14.5, realtime.broadcast_changes(...) called from a trigger via PERFORM is unsupported.
15.x < 15.14.1.018 supabase_admin Requires superuser: supautils.policy_grants on realtime.subscription is missing until supabase/postgres@1b916920.
15.x >= 15.14.1.018, 16.x, 17.x supabase_admin Requires superuser to run migrations, no superuser needed for tenant grants. Policies are managed by supautils.

Contributing

See CONTRIBUTING.md

Code of Conduct

See supabase/CODE_OF_CONDUCT.md

License

This repo is licensed under Apache 2.0.

Credits