@mastra/valkey-streams 0.5.1-alpha.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @mastra/valkey-streams
|
|
2
|
+
|
|
3
|
+
`ValkeyStreamsPubSub` implements Mastra's PubSub and lease-provider contracts with Valkey Streams through Valkey GLIDE. Use it for durable event delivery and distributed workflow coordination when your infrastructure is built on Valkey.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mastra/valkey-streams
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
15
|
+
import { ValkeyStreamsPubSub } from '@mastra/valkey-streams';
|
|
16
|
+
|
|
17
|
+
export const mastra = new Mastra({
|
|
18
|
+
pubsub: new ValkeyStreamsPubSub({
|
|
19
|
+
url: process.env.VALKEY_URL!,
|
|
20
|
+
keyPrefix: 'mastra:my-app',
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Documentation
|
|
26
|
+
|
|
27
|
+
- [Reference: ValkeyStreamsPubSub](https://mastra.ai/reference/pubsub/valkey-streams)
|
|
28
|
+
|
|
29
|
+
## Changelog
|
|
30
|
+
|
|
31
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/pubsub/valkey-streams/CHANGELOG.md) for version history and release notes.
|
|
32
|
+
|
|
33
|
+
## Support
|
|
34
|
+
|
|
35
|
+
We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/valkey-streams",
|
|
3
|
-
"version": "0.5.1
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Mastra Valkey Streams PubSub integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"typescript": "^7.0.2",
|
|
37
37
|
"vitest": "4.1.10",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
|
-
"@internal/
|
|
40
|
-
"@internal/
|
|
41
|
-
"@mastra/deployer": "1.64.0
|
|
42
|
-
"@mastra/libsql": "1.22.3
|
|
43
|
-
"@mastra/core": "1.64.0
|
|
44
|
-
"@internal/lint": "0.0.
|
|
39
|
+
"@internal/ai-sdk-v5": "0.0.77",
|
|
40
|
+
"@internal/types-builder": "0.0.105",
|
|
41
|
+
"@mastra/deployer": "1.64.0",
|
|
42
|
+
"@mastra/libsql": "1.22.3",
|
|
43
|
+
"@mastra/core": "1.64.0",
|
|
44
|
+
"@internal/lint": "0.0.130"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|