nixperts

n8n webhooks

by nixperts
Jobs & automation
v3
^3.60.0
MIT

Overview

Summary generated from the README

Adds two collections to Payload for registering n8n webhooks and the authentication credentials they use. It exports a function to send requests to n8n webhook endpoints from your code, and webhooks can be tested from the admin detail view. Configured with the n8n base URL and an option for the test instance endpoint. Requires Payload 3.60 or newer.

Features

  • Webhooks collection for registering n8n webhook endpoints
  • Auth Credentials collection for webhook authentication
  • makeN8nWebhookRequest function to call webhooks from code
  • Test webhooks from the collection detail view in the admin
  • Switch between production and test n8n webhook URLs
  • Relationship fields can reference webhooks in other collections

Use cases

  • Trigger n8n automation flows when content changes in Payload
  • Give admins a way to run n8n workflows from the admin panel by linking webhooks to documents

From the author

A plugin for PayloadCMS to add webhooks for n8n

Installation

npm i @nixperts/n8n-webhooks

3

Stars

0

Forks

0

Open Issues

1 years ago

Last Updated

18

Weekly Downloads

v0.0.5

npm Version

62.6 KB

Unpacked Size

0

Dependencies

GitHub stars

30 since Sep 6

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 20263
Dec 4, 20263
Dec 3, 20263
Dec 2, 20263
Dec 1, 20263
Nov 30, 20263
Nov 29, 20263
Nov 28, 20263
Nov 27, 20263
Nov 26, 20263
Nov 25, 20263
Nov 24, 20263
Nov 23, 20263
Nov 22, 20263
Nov 21, 20263
Nov 20, 20263
Nov 19, 20263
Nov 18, 20263
Nov 17, 20263
Nov 16, 20263
Nov 15, 20263
Nov 14, 20263
Nov 13, 20263
Nov 12, 20263
Nov 11, 20263
Nov 10, 20263
Nov 9, 20263
Nov 8, 20263
Nov 7, 20263
Nov 6, 20263
Nov 5, 20263
Nov 4, 20263
Nov 3, 20263
Nov 2, 20263
Nov 1, 20263
Oct 31, 20263
Oct 30, 20263
Oct 29, 20263
Oct 28, 20263
Oct 27, 20263
Oct 26, 20263
Oct 25, 20263
Oct 24, 20263
Oct 23, 20263
Oct 22, 20263
Oct 21, 20263
Oct 20, 20263
Oct 19, 20263
Oct 18, 20263
Oct 17, 20263
Oct 16, 20263
Oct 15, 20263
Oct 14, 20263
Oct 13, 20263
Oct 12, 20263
Oct 11, 20263
Oct 10, 20263
Oct 9, 20263
Oct 8, 20263
Oct 7, 20263
Oct 6, 20263
Oct 5, 20263
Oct 4, 20263
Oct 3, 20263
Oct 2, 20263
Oct 1, 20263
Sep 30, 20263
Sep 29, 20263
Sep 28, 20263
Sep 27, 20263
Sep 26, 20263
Sep 25, 20263
Sep 24, 20263
Sep 23, 20263
Sep 22, 20263
Sep 21, 20263
Sep 20, 20263
Sep 19, 20263
Sep 18, 20263
Sep 17, 20263
Sep 16, 20263
Sep 15, 20263
Sep 14, 20263
Sep 13, 20263
Sep 12, 20263
Sep 11, 20263
Sep 10, 20263
Sep 9, 20263
Sep 8, 20263
Sep 7, 20263
Sep 6, 20263
npm weekly downloads

10+4 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202610
Dec 4, 20269
Dec 3, 20268
Dec 2, 20264
Dec 1, 20263
Nov 30, 20264
Nov 29, 20266
Nov 28, 20266
Nov 27, 20266
Nov 26, 20265
Nov 25, 20265
Nov 24, 20266
Nov 23, 20265
Nov 22, 20263
Nov 21, 20263
Nov 20, 20266
Nov 19, 20266
Nov 18, 20266
Nov 17, 20265
Nov 16, 20265
Nov 15, 20264
Nov 14, 20264
Nov 13, 20261
Nov 12, 20261
Nov 11, 20263
Nov 10, 20265
Nov 9, 20265
Nov 8, 202611
Nov 7, 202611
Nov 6, 202611
Nov 5, 202612
Nov 4, 202613
Nov 3, 202611
Nov 2, 202611
Nov 1, 20264
Oct 31, 20265
Oct 30, 20265
Oct 29, 20264
Oct 28, 20261
Oct 27, 20262
Oct 26, 20262
Oct 25, 20265
Oct 24, 20264
Oct 23, 20264
Oct 22, 20265
Oct 21, 20265
Oct 20, 20268
Oct 19, 20268
Oct 18, 20267
Oct 17, 20267
Oct 16, 20267
Oct 15, 20267
Oct 14, 20267
Oct 13, 20263
Oct 12, 20263
Oct 11, 20262
Oct 10, 20262
Oct 9, 20262
Oct 8, 20261
Oct 7, 20261
Oct 6, 20261
Oct 5, 20261
Oct 4, 20260
Oct 3, 20260
Oct 2, 20260
Oct 1, 20260
Sep 30, 20260
Sep 29, 20260
Sep 28, 20260
Sep 27, 20260
Sep 26, 20263
Sep 25, 20264
Sep 24, 20264
Sep 23, 20265
Sep 22, 20265
Sep 21, 202610
Sep 20, 202610
Sep 19, 20267
Sep 18, 20267
Sep 17, 20267
Sep 16, 20267
Sep 15, 20268
Sep 14, 20263
Sep 13, 20263
Sep 12, 20264
Sep 11, 20263
Sep 10, 20264
Sep 9, 20264
Sep 8, 20266
Sep 7, 20266
Sep 6, 20266

Each point is npm's rolling 7-day download count.

Health Score

36/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1079091970-root.svg)](https://payloaddirectory.dev/plugins/1079091970-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1079091970-root"><img src="https://payloaddirectory.dev/badge/1079091970-root.svg" alt="Payload Directory"></a>
Updated Oct 19, 2025Created Oct 19, 2025Published Oct 19, 2025

README

About

N8n allows users to create intricate flows and make powerful connections between apps and automation.

PayloadCMS is a NextJS-based framework for creating content management systems and other enterprise-grade web applications.

This plugin bridges the gap, so that PayloadCMS can easily trigger flows in n8n.

WARNING: Early work in progress

  • Don't expect this plugin to cover everything. It is still very early. High-quality issues and PRs are appreciated.
  • Things will break, before a stable 1.0.0 is published

Installation

Depending on your package manager:

npm install @nixperts/n8n-webhooks
pnpm add @nixperts/n8n-webhooks
bun add @nixperts/n8n-webhooks
yarn add @nixperts/n8n-webhooks

Plugin Configuration

  • In your payload.config.ts register the plugin under the plugins section
import { n8nWebhooks } from '@nixperts/n8n-webhooks'

export default buildConfig({
    // ... your payload config
    plugins: [
        // ... other plugins
        n8nWebhooks({
            // pass the base URL to your n8n instance. It will be used to construct the webhook endpoint
            baseUrl: process.env.N8N_BASE_URL ?? 'http://localhost:5678',
            // set to true to enable the plugin
            enabled: true,
            // if you are testing things out set this to true. It slightly alters the webhook endpoint of n8n
            useTestInstance: true,
        })
    ],
})

Plugin Collections

The plugin installs two new collections in your PayloadCMS instance:

  1. Webhooks: Register different webhooks from your n8n instance here
  2. Auth Credentials: Configure authentication credentials used by your webhooks for n8n

Example of a configured webhook

💡 In the detail view of the Webhooks collection, you can test the webhooks

Usage

  • The plugin exports the function makeN8nWebhookRequest():
    • import it with import {makeN8nWebhookRequest} from "@nixperts/n8n-webhooks"
    • use in your code to make request to the n8n webhook endpoints
  • You can create relationship fields in other collections of your PayloadCMS instance which refer to webhooks. This way you can simply provide powerful functionality to your admins.

Roadmap

  • What does the plugin do
  • Installation
  • Configuration
  • Usage
  • Getting started

Similar plugins