# Reminders

> Recurrence rules and reminders. Expansion follows RFC 5545 in TypeScript. Delivery is a job that records reminder.sent once per occurrence.

- Category: Scheduling
- Module: `reminders`
- Modes: `managed`, `custom`
- Docs: https://bettersupabase.com/docs/blocks/reminders
- Page: https://bettersupabase.com/blocks/reminders

## Install

```bash
npx better-supabase add reminders
```

The command also installs `updated-at`, `memberships`, `queue`, `permissions`, `housekeeping`.

## Configure

Add the block to `better-supabase.config.ts`:

```ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  blocks: {
    // Required by reminders; add installs them too.
    "updated-at": {},
    memberships: {},
    queue: {},
    permissions: {},
    housekeeping: {},
    // Modes: "managed", "custom". The default is "managed".
    reminders: { mode: "managed" },
  },
});
```

## Client

The block has no React entry yet. Its server-side TypeScript is in `better-supabase/blocks/reminders`.

## Events

- `reminder.sent`

## Related blocks

Requires: [memberships](https://bettersupabase.com/blocks/memberships.md), [permissions](https://bettersupabase.com/blocks/permissions.md), [queue](https://bettersupabase.com/blocks/queue.md)

Works with: [notifications](https://bettersupabase.com/blocks/notifications.md), [outbox](https://bettersupabase.com/blocks/outbox.md), [subjects](https://bettersupabase.com/blocks/subjects.md)

## Recipes

- [My work](https://bettersupabase.com/recipes/my-work.md): What waits on the caller across the installed blocks, from `getMyWork`: assigned work, approvals, due reminders, mentions and SLA warnings, each linked to its record.
- [Reminders list](https://bettersupabase.com/recipes/reminders-list.md): The next events with the caller's reminders on each, to add a reminder at an offset before an event or remove one.
