All blocks

Platform

Durable streams

Ordered text chunks a writer appends and any reader resumes from an index: idempotent batches, a cancel flag the writer reads on its next append, owner reads through RLS, a payload-free Realtime ping on a private topic per stream, and a purge for expired streams.

DocsModes:managedcustom
terminal
npx better-supabase sql add streams
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Modes: "managed", "custom". The default is "managed".
      streams: { mode: "managed" },
    },
  },
});