https://github.com/streamr-dev/client-streamr
Streamr SDK wrapper for ElizaOS
https://github.com/streamr-dev/client-streamr
Last synced: 16 days ago
JSON representation
Streamr SDK wrapper for ElizaOS
- Host: GitHub
- URL: https://github.com/streamr-dev/client-streamr
- Owner: streamr-dev
- Created: 2025-02-11T09:12:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-02-13T09:10:47.000Z (11 months ago)
- Last Synced: 2025-10-20T15:03:03.233Z (3 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @elizaos-plugins/client-streamr Streamr Client for ElizaOS
The Streamr client provides ElizaOS with capabilities to connect to Streamr P2P network and publish and subscribe messages in real-time to the network.
**Key Features**
- Initialize Streamr client
- Publish messages to a Streamr stream
- Subscribe to a Streamr stream
- Handle incoming messages from a Streamr stream
## Installation
Add streamr client plugin to your package.json
```
{
"dependencies": {
"@elizaos-plugins/client-streamr": "github:streamr-dev/client-streamr"
}
}
```
## Configuration
Add Env parameters to your .env file:
```
STREAMR_WALLET=0x1234567890123456789012345678901234567890 //your wallet private key that has access to the stream
```
## Usage
Add stream client to your plugins definition.
```typescript
import { StreamrElizaClient } from "@elizaos-plugins/client-streamr";
export const streamrPlugin: Plugin = {
name: "my-awesome-plugin",
description: "My Awesome Plugin",
providers: [],
evaluators: [],
services: [],
actions: [],
clients: [StreamrElizaClient]
}
```