Skip to content
View in the app

A better way to browse. Learn more.

ernestdefoe.online

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
ernestdefoe.online

Extensions, themes & support for Flarum and Invision Community

Vibe coding for the community web. Report a bug, request a feature, or dig into the source — this is where the tools you use get built, in the open.

We do custom Bespoke Invision Community apps. If you have an idea for something you want then use the contact form to get in touch with us.

Connect for Flarum 2 — support and discussion

Featured Replies

  • Administrators
  • Community Expert

Connect for Flarum 2

Automation for your forum. Connect gives Flarum 2 outgoing webhooks, a

scoped REST API, and an in-app if-this-then-that Rules engine. Wire your

community up to Zapier, Make, IFTTT, n8n — or automate things right on the

forum with no external service at all.

Free and MIT-licensed.

Flarum

License

PHP


What it does

Connect covers both directions of automation:

  • Out of your forum → anywhere. When a discussion is started, a reply is

    posted, or a user registers, Connect fires a signed webhook to whatever URL

    you (or a Zap) subscribed. Perfect for Zapier/Make/IFTTT/n8n triggers.

  • Anywhere → into your forum. A scoped API key lets an external service

    create discussions and replies as a real user, through Flarum's own API — so

    every permission and validation rule still applies.

  • Inside your forum. The built-in Rules engine runs trigger → conditions

    → actions entirely on your server. No third-party account, no per-task billing,

    no data leaving the box.

The Connect admin page — automation rules, API keys, triggers and live subscriptions


Set it all up without leaving your forum

Connect embeds Zapier's official experience right in your admin panel. Browse

6,000+ apps, pick a recipe — Share new discussions to a Facebook Page, *Post to

Slack, Add members to Mailchimp* — and build or manage Zaps in place. No tab

switching, no developer knowledge required.

The in-admin Zapier experience — curated recipes plus the full Zap builder

Paste your Zapier integration's Client ID once (Admin → Connect) and the full

experience appears, themed to match your forum. Prefer Make, n8n, or IFTTT?

They all work off the same REST API and webhooks.


Automation rules (no external service needed)

Pick a trigger, add optional conditions, and choose one or more

actions. Rules run on a queue, off the request path, so they never slow down

the person who triggered them.

The rule builder — when a new discussion's title contains “help”, post a reply

Triggers

| Event | Fires when |

| --- | --- |

| discussion.created | someone starts a new discussion |

| post.created | someone posts a reply |

| user.registered | a new member signs up |

Conditions — match all or any of a list. Each condition compares a

payload field (e.g. title, content, tagList) using one of:

is, is not, contains, does not contain, starts with, is greater than,

is less than, is empty, is not empty, matches (regex).

Actions

| Action | What it does |

| --- | --- |

| Post a reply | replies to the discussion the event is about |

| Add / remove a tag | requires flarum/tags |

| Add / remove from a group | changes the involved user's groups |

| Call a webhook | POSTs the event payload to a URL you choose |

Actions are isolated — if one fails, the rest of the rule still runs — and each

rule tracks how many times it has run.


Connecting Zapier / Make / IFTTT / n8n

  1. In Admin → Connect, create an API key. Give it a label (e.g. Zapier) and

    the scopes it needs — Read for triggers, Write for actions.

  2. Copy the token (ck_…) and secret (cs_…).

  3. In your automation tool, add a webhook that authenticates with

    Authorization: Bearer ck_….

    • To receive forum events, subscribe your tool's catch-hook URL (Zapier

      does this automatically via REST Hooks — see the API below).

    • To act on the forum, POST to the action endpoints.

Every outgoing delivery is HMAC-signed so you can verify it really came from

your forum:



valid  ⇔  signature == 'sha256=' + hmac_sha256(rawRequestBody, keySecret)```

---

## REST API

All routes are under your forum's API root (`/api`). Authenticate with

`Authorization: Bearer ck_…`.

| Method | Endpoint | Purpose |

| --- | --- | --- |

| `GET` | `/connect/me` | Who this key acts as (auth test) |

| `POST` | `/connect/hooks` | Subscribe: `{ event, targetUrl }` → REST Hook, returns `{ id }` |

| `DELETE` | `/connect/hooks/{id}` | Unsubscribe |

| `GET` | `/connect/samples/{event}` | Recent real items shaped like the payload (Zap setup) |

| `POST` | `/connect/actions/discussions` | Create a discussion `{ title, content }` |

| `POST` | `/connect/actions/posts` | Reply to a discussion `{ discussionId, content }` |

A `410 Gone` from a subscribed target auto-prunes the subscription — so a Zap you

turn off cleans itself up.

### Example

```# What does this key act as?
curl https://your-forum.example/api/connect/me \
  -H "Authorization: Bearer ck_live_xxx"

# Create a discussion as the key's user
curl -X POST https://your-forum.example/api/connect/actions/discussions \
  -H "Authorization: Bearer ck_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"title":"Posted from Zapier","content":"Hello from an automation!"}'```

---

## Installation

```composer require ernestdefoe/connect```

Then enable **Connect** in **Admin → Extensions**. Make sure a queue worker is

running (`php flarum queue:work`) so webhooks and rule actions are delivered.

The tag actions light up automatically if [flarum/tags](https://github.com/flarum/tags) is installed; everything

else works on a stock forum.

## Minting a key from the CLI

```php flarum connect:key "My key" --scopes=read,write```

---

## Requirements

* Flarum `^2.0`
* PHP `^8.3`
* A running queue worker (recommended — webhooks and rule actions are queued)

## License

[MIT](https://github.com/ernestdefoe/connect/blob/main/LICENSE) © Ernest Defoe
  • Replies 3
  • Views 59
  • Created
  • Last Reply

Top Posters In This Topic

  • Administrators
  • Community Expert

connect v1.0.0

Connect brings automation to Flarum 2 — outgoing webhooks, a scoped REST API, an in-app Rules engine, and an embedded Zapier experience. Free and MIT-licensed.

Highlights

  • Set up automations without leaving your forum. Connect embeds Zapier's official experience in your admin panel — browse 6,000+ apps and wire up "share new discussions to a Facebook Page", Slack, Discord, Mailchimp and more, with curated one-click recipes.
  • In-app Rules engine. Trigger → conditions → actions, running entirely on your server (no external service). Auto-reply, add/remove tags, add/remove groups, or call a webhook — with 10 condition operators and match-all/any.
  • Outgoing webhooks. HMAC-signed deliveries, REST Hooks (subscribe/unsubscribe), and automatic pruning of dead subscriptions.
  • Scoped REST API + Zapier CLI app. Keys that act as a real user (read/write scopes); triggers for new discussions, replies, and users; actions to create discussions and replies. Works with Zapier, Make, IFTTT, and n8n.

Fully translatable. Requires Flarum ^2.0 and PHP ^8.3, plus a running queue worker for webhooks and rule actions.

View release on GitHub

  • Administrators
  • Community Expert

connect v1.0.1

Zapier is now usable on day one — no developer account, no setup, nothing to register.

Connect your forum to Zapier in three steps

Admin → Connect now shows a short guide and an Open Connect on Zapier button. Create an API key, accept the invite, and build your first Zap — "share new discussions to a Facebook Page", post to Slack or Discord, add members to a mailing list, whatever you need.

Connect ships one shared Zapier integration that every forum uses. Because it authenticates per-site (your forum URL + your own API key), a single integration serves everyone — you don't register anything with Zapier, and there's no per-site configuration.

Pick things by name, not by ID

Zapier actions now use real dropdowns:

  • Create Reply lets you choose a discussion by title instead of typing a numeric ID
  • Create Discussion offers your actual tag names

These are powered by two new endpoints, GET /connect/discussions and GET /connect/tags. Both are scoped to what the API key's user is allowed to see, and return 401 without a valid key.

Also in this release

  • Clearer guidance in the admin panel about what Zapier needs and what's optional
  • Friendlier error if a forum URL is entered without https://
  • The bundled Zapier integration moved to platform version 19

Upgrade with composer update ernestdefoe/connect and clear your cache. Requires Flarum ^2.0, PHP ^8.3, and a running queue worker for webhooks and rule actions.

View release on GitHub

  • Author
  • Administrators
  • Community Expert

Connect for Flarum 2

Connect for Flarum 2

Automation for your forum. Connect gives Flarum 2 outgoing webhooks, a scoped REST API, and an in-app if-this-then-that Rules engine. Wire your community up to Zapier, Make, IFTTT, n8n — or automate things right on the forum with no external service at all.

Free and MIT-licensed.

Flarum License PHP


What it does

Connect covers both directions of automation:

  • Out of your forum → anywhere. When a discussion is started, a reply is posted, or a user registers, Connect fires a signed webhook to whatever URL you (or a Zap) subscribed. Perfect for Zapier/Make/IFTTT/n8n triggers.

  • Anywhere → into your forum. A scoped API key lets an external service create discussions and replies as a real user, through Flarum's own API — so every permission and validation rule still applies.

  • Inside your forum. The built-in Rules engine runs trigger → conditions → actions entirely on your server. No third-party account, no per-task billing, no data leaving the box.

The Connect admin page — automation rules, API keys, triggers and live subscriptions


Set it all up without leaving your forum

Connect embeds Zapier's official experience right in your admin panel. Browse 6,000+ apps, pick a recipe — Share new discussions to a Facebook Page, Post to Slack, Add members to Mailchimp — and build or manage Zaps in place. No tab switching, no developer knowledge required.

The in-admin Zapier experience — curated recipes plus the full Zap builder

Connecting takes one API key — there's nothing to register with Zapier and no developer account needed. Connect ships its own Zapier integration that every forum shares; because it authenticates per-site (your forum URL + your key), one integration serves everyone. Admin → Connect has an Open Connect on Zapier button that takes you straight there.

The in-page Zap builder shown above switches itself on once that integration is listed publicly in Zapier's directory — until then you build Zaps in Zapier itself, with everything else working exactly the same.

Prefer Make, n8n, or IFTTT? They all work off the same REST API and webhooks — no Zapier account involved.


Automation rules (no external service needed)

Pick a trigger, add optional conditions, and choose one or more actions. Rules run on a queue, off the request path, so they never slow down the person who triggered them.

The rule builder — when a new discussion's title contains “help”, post a reply

Triggers

Event

Fires when

discussion.created

someone starts a new discussion

post.created

someone posts a reply

user.registered

a new member signs up

Conditions — match all or any of a list. Each condition compares a payload field (e.g. title, content, tagList) using one of: is, is not, contains, does not contain, starts with, is greater than, is less than, is empty, is not empty, matches (regex).

Actions

Action

What it does

Post a reply

replies to the discussion the event is about

Add / remove a tag

requires flarum/tags

Add / remove from a group

changes the involved user's groups

Call a webhook

POSTs the event payload to a URL you choose

Actions are isolated — if one fails, the rest of the rule still runs — and each rule tracks how many times it has run.


Connecting Zapier / Make / IFTTT / n8n

  1. In Admin → Connect, create an API key. Give it a label (e.g. Zapier) and the scopes it needs — Read for triggers, Write for actions.

  2. Copy the token (ck_…) and secret (cs_…).

  3. In your automation tool, add a webhook that authenticates with Authorization: Bearer ck_….

    • To receive forum events, subscribe your tool's catch-hook URL (Zapier does this automatically via REST Hooks — see the API below).

    • To act on the forum, POST to the action endpoints.

Every outgoing delivery is HMAC-signed so you can verify it really came from your forum:

X-Connect-Signature: sha256=<hex>

valid  ⇔  signature == 'sha256=' + hmac_sha256(rawRequestBody, keySecret)

REST API

All routes are under your forum's API root (/api). Authenticate with Authorization: Bearer ck_….

Method

Endpoint

Purpose

GET

/connect/me

Who this key acts as (auth test)

POST

/connect/hooks

Subscribe: { event, targetUrl } → REST Hook, returns { id }

DELETE

/connect/hooks/{id}

Unsubscribe

GET

/connect/samples/{event}

Recent real items shaped like the payload (Zap setup)

POST

/connect/actions/discussions

Create a discussion { title, content }

POST

/connect/actions/posts

Reply to a discussion { discussionId, content }

A 410 Gone from a subscribed target auto-prunes the subscription — so a Zap you turn off cleans itself up.

Example

# What does this key act as?
curl https://your-forum.example/api/connect/me \
  -H "Authorization: Bearer ck_live_xxx"

# Create a discussion as the key's user
curl -X POST https://your-forum.example/api/connect/actions/discussions \
  -H "Authorization: Bearer ck_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"title":"Posted from Zapier","content":"Hello from an automation!"}'

Installation

composer require ernestdefoe/connect

Then enable Connect in Admin → Extensions. Make sure a queue worker is running (php flarum queue:work) so webhooks and rule actions are delivered.

The tag actions light up automatically if flarum/tags is installed; everything else works on a stock forum.

Minting a key from the CLI

php flarum connect:key "My key" --scopes=read,write

Requirements

  • Flarum ^2.0

  • PHP ^8.3

  • A running queue worker (recommended — webhooks and rule actions are queued)

License

MIT © Ernest Defoe

File Information

Submitter Ernest Defoe

Submitted 07/25/26

Category Flarum

View File

Guest
Reply to this topic...

Want to reply?

Ask a question about any of these applications and it will be answered by the person who wrote them. It takes about thirty seconds, and you keep what you have already typed.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.