An open API service indexing awesome lists of open source software.

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

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]
}
```