# Activity feed

> An activity_entries feed that activitySink() fills from outbox events, filtered by can_subject and joined with the subject's audit entries, notification deliveries and workflow runs when subjects, audit, notifications and workflows are installed.

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

## Install

```bash
npx better-supabase add timeline
```

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

## Configure

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

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

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

## Client

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

## Related blocks

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

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