@mastra/elysia 0.1.4-alpha.5 → 0.1.4-alpha.7
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 +33 -0
- package/package.json +8 -8
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @mastra/elysia
|
|
2
|
+
|
|
3
|
+
`@mastra/elysia` mounts Mastra's agent, workflow, tool, memory, and streaming APIs on an Elysia application. Use it when Elysia is already your HTTP server and you want Mastra endpoints in the same process.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mastra/elysia
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Elysia } from 'elysia';
|
|
15
|
+
import { MastraServer } from '@mastra/elysia';
|
|
16
|
+
import { mastra } from './mastra';
|
|
17
|
+
|
|
18
|
+
const app = new Elysia();
|
|
19
|
+
const server = new MastraServer({ app, mastra });
|
|
20
|
+
await server.init();
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
- [Reference: Elysia adapter](https://mastra.ai/reference/server/elysia-adapter)
|
|
26
|
+
|
|
27
|
+
## Changelog
|
|
28
|
+
|
|
29
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/server-adapters/elysia/CHANGELOG.md) for version history and release notes.
|
|
30
|
+
|
|
31
|
+
## Support
|
|
32
|
+
|
|
33
|
+
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/elysia",
|
|
3
|
-
"version": "0.1.4-alpha.
|
|
3
|
+
"version": "0.1.4-alpha.7",
|
|
4
4
|
"description": "Mastra Elysia adapter for the server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"fetch-to-node": "^2.1.0",
|
|
24
|
-
"@mastra/server": "1.64.0-alpha.
|
|
24
|
+
"@mastra/server": "1.64.0-alpha.7"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@ai-sdk/openai": "^2.0.62",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"typescript": "^7.0.2",
|
|
38
38
|
"vitest": "4.1.10",
|
|
39
39
|
"zod": "^4.4.3",
|
|
40
|
-
"@internal/lint": "0.0.129",
|
|
41
40
|
"@internal/server-adapter-test-utils": "0.0.29",
|
|
42
|
-
"@internal/
|
|
43
|
-
"@mastra/core": "1.64.0-alpha.5",
|
|
44
|
-
"@mastra/libsql": "1.22.3-alpha.1",
|
|
41
|
+
"@internal/lint": "0.0.129",
|
|
45
42
|
"@internal/types-builder": "0.0.104",
|
|
46
|
-
"@
|
|
47
|
-
"@mastra/
|
|
43
|
+
"@internal/storage-test-utils": "0.0.125",
|
|
44
|
+
"@mastra/libsql": "1.22.3-alpha.3",
|
|
45
|
+
"@mastra/memory": "1.28.2-alpha.2",
|
|
46
|
+
"@mastra/observability": "1.17.5-alpha.1",
|
|
47
|
+
"@mastra/core": "1.64.0-alpha.7"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@mastra/core": ">=1.50.0-0 <2.0.0-0",
|