# 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: `activity`
- Modes: `managed`, `custom`
- Docs: https://bettersupabase.com/docs/blocks/activity
- Page: https://bettersupabase.com/blocks/activity

## Install

```bash
npx better-supabase add activity
```

The command also installs `updated-at`, `tenant`, `access`.

## Configure

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

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

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

## Client

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

## Related blocks

Requires: [tenant](https://bettersupabase.com/blocks/tenant.md), [access](https://bettersupabase.com/blocks/access.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)
