Add it when you need it

Connectors

Connects an organisation’s own Microsoft 365 to your app: an admin grants consent once, and its directory and calendars sync in. It holds the rows, routes and schedules; a provider plugin (today, m365) does the talking.

Installing it

zsh — your app
pnpm plugin add https://github.com/rocketflare-dev/rocketflare-plugins.git@connectors-v3.16.0 --subdir plugins/connectorspnpm plugin add https://github.com/rocketflare-dev/rocketflare-plugins.git@connectors-v3.16.0 --subdir plugins/connectors --apply
The first prints the plan and stops; the second writes it.

Then generate and run its migration — pnpm db:generate --name plugin-connectors-3.16.0 and pnpm db:migrate — and do the handful of steps the plan lists that a plugin may not do for you.

What it adds

  • A connection per organisation — Settings → Connections: pick a provider, send the organisation’s admin through consent, and watch the sync. Disconnecting deletes everything that was synced.
  • The directory and calendars — people, groups and memberships, plus the calendars of people who are members of your app, matched to them by email. Members see only their own events; admins see everyone’s.
  • Delta sync on a schedule — hourly, each resource resumes from where the provider’s own change feed left off, with a claim row so two runs never sync the same thing at once.
  • Seven tables — installations, connections, sync cursors, users, groups, memberships and events, each with the same row-level-security policy as everything else. Secrets are encrypted at rest and never sent back.
  • Commands — rocketflare connectors status for counts and sync progress, and rocketflare connectors sync to run one now.
  • An agent skill — connectors registers the Entra app for you with the Azure CLI, stores the secret without printing it, walks a customer’s admin through consent, and turns an AADSTS error into the fix.

Releases

  1. 3.16.0 2026-11-28

    Connectors stops for an organisation that turned it off (kit 0.48.0's kill switch), and pnpm plugin check no longer warns about it. The plugin needs kit 0.48.0 or later (it declared 0.29.0 before). Porting note.

  2. 3.15.0 2026-11-28

    The sync cron runs hourly, at 17 * * * *, instead of every 15 minutes (*/15 * * * *). Porting note.

  3. 3.14.0 2026-11-22

    No change to connectors: this release carries the analytics, freeagent, guide, inbox and web-knowledge changes, and every plugin in this repository ships at one version. Porting note.

  4. 3.13.3 2026-11-22

    The connectors API test shares the host's api module registry: it drops a // @vitest-isolate marker it did not need. Porting note.

  5. 3.13.2 2026-11-21

    The connectors manifest now carries a one-line description, which the kit's pnpm plugin list --available prints in place of the README's opening line. Porting note.

15 older releases
  1. 3.13.1 2026-11-21

    No change to connectors: this release exists because the repository released analytics and every plugin here ships at the repository's version. Porting note.

  2. 3.13.0 2026-11-20

    No change to connectors: this release exists because the repository released analytics and every plugin here ships at the repository's version. Porting note.

  3. 3.9.0 2026-11-09

    A connection now requires provider-authenticated proof of the external organisation, and one external organisation backs one workspace. Porting note.

  4. 3.8.2 2026-11-08

    No change to connectors. This release exists because freeagent typechecks on kit 0.25.0 and later again, and every plugin here ships at the repository's version. Porting note.

  5. 3.8.1 2026-11-03

    No change to connectors. This release exists because analytics scopes GET /api/analytics/facts/status to the caller's organisation, and every plugin here ships at the repository's version. Porting note.

  6. 3.8.0 2026-11-03

    No change to connectors. This release exists because analytics moves to drizzle-cube 0.12.2 and compiles on React 19 with React Router 7, and every plugin here ships at the repository's version. Porting note.

  7. 3.7.0 2026-10-24

    No change to connectors. This release exists because inbox splits forwarded-as-attachment email into messages of their own, and every plugin here ships at the repository's version. Porting note.

  8. 3.6.0 2026-10-24

    No change to connectors: this release exists because inbox and freeagent ship for the first time, and every plugin here ships at the repository's version. Porting note.

  9. 3.5.1 2026-10-22

    No change to connectors: this release exists because analytics raised its minKit to 0.17.1, and every plugin here ships at the repository's version. Porting note.

  10. 3.5.0 2026-10-22

    No change to connectors: this release exists because issue-reports ships for the first time, and every plugin here ships at the repository's version. Porting note.

  11. 3.4.2 2026-09-30

    No change to connectors: this release exists because analytics fixed a test that failed the kit's tenant-isolation scan, and every plugin here ships at the repository's version. Porting note.

  12. 3.4.1 2026-09-27

    No change to connectors: this release exists because analytics needed a type fix to compile against kit 0.15.0's driver-neutral Database, and every plugin here ships at the repository's version. Porting note.

  13. 3.4.0 2026-09-27

    No change to connectors: this release exists because analytics was made to work with both database drivers the kit may run, and every plugin here ships at the repository's version. Porting note.

  14. 3.3.0 2026-09-27

    Connectors now ships a connectors Claude Code skill that drives Microsoft 365 setup end to end, and Settings → Connections shows each audience only the steps it can act on. Porting note.

  15. 3.2.0 2026-09-26

    The first release: organisation-level connections to Microsoft 365 / Google Workspace (D34, phase 1 — directory and calendar, org-wide, app-only, delta polling). Provider-neutral: a provider plugin (m365) contributes the vendor conversation through extensions; this plugin owns every row, route, cursor and schedule. Porting note.

From the README

Synced from the plugin's README — the plugin's own documentation, kept in step with its repository.

This is not “Sign in with Microsoft” — the kit already does that. A connection is a different grant: an organisation admin consents once for everybody, and the app reads the directory and calendars with app-only access on a schedule. The design (usage models, phases, security) is in the kit’s docs/CONNECTORS.md.

connectors is provider-neutral: it owns every table, route, cursor and schedule, and a provider plugin supplies the vendor conversation. Today that is m365 (Microsoft 365); Google Workspace is next. Install a provider too — on its own, this plugin connects nothing.

What it adds

AreaWhat you get
UISettings → Connections (connect, consent, sync status, sync now, disconnect) and My calendar at /calendar
SyncDirectory people, groups and memberships, and the calendars of directory people who are members of your app (matched by email), via delta queries — hourly by the 17 * * * * cron, or on demand. Cursors resume after every page and a lost cursor restarts a full pass
API/api/connectors (providers, installations, sync, directory, events) and the public consent callback at /api/hooks/connectors/<provider>/callback, which trusts only a signed state
Dataconnectors_installations, connectors_connections, connectors_sync_cursors, connectors_directory_users, connectors_directory_groups, connectors_group_members, connectors_calendar_events — all tenant-scoped with row-level security; disconnecting deletes everything synced
CLIrocketflare connectors status and rocketflare connectors sync [--provider] [--resource]
Agent skillconnectors — explains connections, drives the operator’s app registration end to end, helps an organisation bring its own app, verifies a connection and troubleshoots errors
Feature flagconnectors (on by default)

Requirements

  • Rocketflare kit 0.48.0 or later (the hourly sync is a perTenantTask, so it skips an organisation that turned connectors off).
  • At least one provider plugin (m365).
  • OAUTH_ENCRYPTION_KEY set in the app — tokens and bring-your-own secrets are sealed with it.
  • The provider’s own setup: for Microsoft 365, an app registered in Entra ID (the connectors skill does it with the Azure CLI).

Install

connectors first, then the provider; generate a migration after each:

pnpm plugin add https://github.com/rocketflare-dev/rocketflare-plugins.git@connectors-v3.16.0 --subdir plugins/connectors --apply
pnpm db:generate --name plugin-connectors-3.15.0
pnpm plugin add https://github.com/rocketflare-dev/rocketflare-plugins.git@3.14.0 --subdir plugins/m365 --apply
pnpm db:migrate

Drop --apply to read each plan first. The install also adds the 17 * * * * cron to both wrangler tomls (pnpm provision cloudflare <env> writes it).

First run

  1. Ask your coding agent to set up Microsoft 365 connections — the connectors skill registers the app, sets M365_CLIENT_ID / M365_CLIENT_SECRET without ever printing the secret, and checks your redirect URI. Or follow the steps in m365.
  2. As an organisation admin, open Settings → Connections and press Connect Microsoft 365. A Microsoft Global Administrator (or Privileged Role Administrator) consents.
  3. The directory syncs first; calendars follow for people who are members of your app. rocketflare connectors status shows every cursor; My calendar shows your events.

Who sees what

  • Platform operator (global admin): the deployment-setup panel with the app-registration steps.
  • Organisation owner/admin: connect, consent, sync, disconnect — and every synced calendar in their organisation. On a deployment with no operator app, they are told to ask the operator or to bring their own app.
  • Member: their own calendar, and connection status only.
  • Tokens and secrets are sealed at rest and never returned by the API.

Known gaps (phase 1)

  • Microsoft 365 only; Google Workspace is designed but not built.
  • Polling hourly (a faster cron would keep a Neon compute awake); webhooks (phase 2) are not built. Sync now or pnpm cli connectors sync syncs at once.
  • Directory and calendar only; mail and files (phase 3) and per-user connections (phase 4) are not built.
  • Admins can read every synced calendar in their organisation; there is no per-person opt-out.
  • The directory is matched to your app’s members by email; it does not create users or groups.

More