Install
The command also installs updated-at, memberships, permissions, enrollments, the modules it needs.
npx better-supabase add onboardingConfigure
The blocks entries in your config, with the default mode.
import { defineConfig } from "better-supabase/config";
export default defineConfig({
blocks: {
// Required by onboarding; add installs them too.
"updated-at": {},
memberships: {},
permissions: {},
enrollments: {},
// Modes: "managed", "custom". The default is "managed".
onboarding: { mode: "managed" },
},
});Migrations
The files
npx better-supabase add onboarding writes into your declarative schema with the default layout.Client
Events
With the outbox installed, the module writes these in the same transaction as the change.
This module writes no outbox events.
Dependencies
Recipes
More in Growth & engagement
- Feature flagsflagsFeature flags with variants, targeting rules over tenant, user, plan, role, custom contexts such as brand and shared segments, overrides, and a scheduled percentage rollout split across weighted variants, bucketed by SHA-256. Every save records a revision you can restore. flag_enabled() goes in policies; createFlagsProvider() evaluates the same way for OpenFeature and the Flags SDK.
- Waitlist and invite codeswaitlistA waitlist with positions and approvals, and hashed invite codes with a use limit, an expiry and an optional organization and role. waitlist_admit() backs a before-user-created hook that only lets approved addresses or valid codes sign up.
- AnnouncementsannouncementsIn-app announcements for everyone, tenants, roles or plans within a time window, with per-user dismissals and a Realtime broadcast when they change. Staff manage them with announcements.manage on the platform.React hooks
- ScoresscoresTenant-editable scoring models: rules (a filter tree over the rules field catalog worth points) and metrics (a number times a weight, or a record's vote score) that write versioned scores with bands to any subject. Lead scoring and health scoring are models.