@vdecentralised/plugin-discourse
v0.0.6
Published
Discourse plugin for Eliza OS that adds a provider which will fetch data from a target Discourse instance, such as posts. Discourse is used widely in the web3 DAO and governance community. Giving agents access to a DAO's Discourse data will enhance collab
Downloads
18
Readme
@vdecentralised/plugin-discourse
Discourse plugin for Eliza OS that adds a provider which will fetch data from a target Discourse instance, such as posts. Discourse is used widely in the web3 DAO and governance community. Giving agents access to a DAO's Discourse data will enhance collaboration and decision-making within the DAO. Of course, this plugin is not limited to DAOs, it can be used outside of the web3 ecosystem.
Overview
This plugin provides functionality to:
- Export data from a Discourse instance in the form of a provider
Installation
npm install @vdecentralised/plugin-discourse
# or
yarn add @vdecentralised/plugin-discourse
# or
pnpm add @vdecentralised/plugin-discourseConfiguration
The plugin requires the following environment variables:
DISCOURSE_INSTANCE_URL=your_discourse_instance_urlExample:
DISCOURSE_INSTANCE_URL=https://gov.uniswap.orgUsage
Import and register the plugin in your Eliza configuration:
import { discoursePlugin } from "@vdecentralised/plugin-discourse";
export default {
plugins: [discoursePlugin],
// ... other configuration
};Features
Fetch posts and summarize
Asking for a summary of the latest DAO governance activity on Discourse:
// Example conversation
User: "What's the latest governance action?";
Assistant: "I'll check the Discourse forum and provide a summary of the latest governance activity.";API Reference
Providers
discoursePostsProvider: Manages interactions with the Discourse API, fetching the latest posts.
Development
Testing
pnpm run testDependencies
- axios: For making HTTP requests to the Discourse API.
- Other standard dependencies listed in package.json
Future Enhancements
We welcome community feedback and contributions to help prioritize enhancements.
Contributing
Contributions are welcome! Please see the CONTRIBUTING.md file for more information.
Credits
Special thanks to:
- The Eliza community
For more information about Discourse capabilities:
License
MIT
