# strapi-webhook-reciever-plugin

> It's a plugin for strapi4 that allows you be informed of any other strapi entity update.

Latest version **0.0.2** (published 2022-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install strapi-webhook-reciever-plugin
pnpm add strapi-webhook-reciever-plugin
yarn add strapi-webhook-reciever-plugin
bun add strapi-webhook-reciever-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-08-07 |
| First published | 2022-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.19.1 <=16.x.x |
| Dependencies | 0 |
| Unpacked size | 328.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Eric Mora |
| Maintainers | ericmora |

## Links

- npm: https://www.npmjs.com/package/strapi-webhook-reciever-plugin
- npm.io page: https://npm.io/package/strapi-webhook-reciever-plugin

## Recent versions

- 0.0.2 (latest) — 2022-08-07
- 0.0.1 — 2022-08-07

## README

# strapi-webhook-reciever-plugin
It's a plugin for strapi4 that allows you be informed of any other strapi entity update.
You can use this plugin to split a monolith with strapi in some micro-headless and having all of them syncronized and unacopled.
Or, simply if you need syncronize 2 strapis, using this connector you will get all the information sync with webhooks.

## How to install using npm?
Simply write:
```
npm i strapi-webhook-reciever-plugin
```

## Configuration of Strapi webhooks
You can go to /admin/settings/webhooks and create a new webhook

![Webhook Creation](https://github.com/ericmora/strapi-webhook-reciever-plugin/blob/main/_docs/new-webhook.png?raw=true)

* *Headers:* you must add *strapiname* header. The value of the name is the same that you will use in your integration service plugin.
* *URL:* [[API-URL]]/webhook-reciever/from-other-strapi (first *webhook-receiver* is related with plugin.js file configuration key and second one *from-other-strapi* is related with routes file)

## Integration Service
On the reciever strapi you need create a plugin with methods of each entity action that you want to react.

## How to install manually?
1. Copy files all files of this project to ./src/plugins/webhook-reciever
2. Create file ./config/plugins.js (if not exist) and copy next:

```
module.exports = {
    webhook-reciever: {
      enabled: true,
      resolve: './src/plugins/webhook-reciever',
    }
  };
```

## Tested with
* Strapi 4.3.2 (node v18.7.0)

---
_Source: https://npm.io/package/strapi-webhook-reciever-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
