🛠️ Building Custom Plugins
Want to build your own plugin? Follow this guide to create and publish your custom plugin.
Getting Started
- Use our plugin template to bootstrap your plugin:
git clone https://github.com/PotLock/curatedotfun-plugin-template.git your-plugin-name
cd your-plugin-name
- Implement your plugin logic following the template structure
- Publish your plugin to NPM
Using Your Plugin
Once published, you can use your plugin in any curate.fun project:
- Install the package:
npm install @your-org/your-plugin
- Configure it in your
curate.config.json
:
{
"plugins": {
"@your-org/your-plugin": {
"type": "distributor", // or "transformer"
"url": "@your-org/your-plugin" // Use the package name as the url
}
}
}
Plugin Types
You can create two types of plugins:
- Distributors: Send content to external platforms (e.g., Telegram, Discord, RSS)
- Transformers: Modify content before distribution (e.g., AI enhancement, formatting)
Future Improvements
note
Currently, plugins need to be installed at build time. We are exploring dynamic plugin loading at runtime using module federation to make the system even more flexible.