You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Implement your plugin logic following the template structure
19
+
3. Publish your plugin to NPM
20
+
21
+
## Using Your Plugin
22
+
23
+
Once published, you can use your plugin in any curate.fun project:
24
+
25
+
1. Install the package:
26
+
27
+
```bash
28
+
npm install @your-org/your-plugin
29
+
```
30
+
31
+
2. Configure it in your `curate.config.json`:
32
+
33
+
```json
34
+
{
35
+
"plugins": {
36
+
"@your-org/your-plugin": {
37
+
"type": "distributor", // or "transformer"
38
+
"url": "@your-org/your-plugin"// Use the package name as the url
39
+
}
40
+
}
41
+
}
42
+
```
43
+
44
+
## Plugin Types
45
+
46
+
You can create two types of plugins:
47
+
48
+
-**Distributors**: Send content to external platforms (e.g., Telegram, Discord, RSS)
49
+
-**Transformers**: Modify content before distribution (e.g., AI enhancement, formatting)
50
+
51
+
## Future Improvements
52
+
53
+
:::note
54
+
Currently, plugins need to be installed at build time. We are exploring dynamic plugin loading at runtime using [module federation](https://module-federation.io/) to make the system even more flexible.
0 commit comments