@mastra/temporal
Run Mastra workflows on Temporal with a workflow authoring API that stays close to standard Mastra workflows.
Experimental: @mastra/temporal is under active development and is not ready for production use yet.
Installation
npm install @mastra/temporal
Usage
import { NativeConnection, Worker } from '@temporalio/worker';
import { MastraPlugin } from '@mastra/temporal/worker';
const connection = await NativeConnection.connect({
address: 'localhost:7233',
});
const plugin = new MastraPlugin(import.meta.resolve('./mastra/index.ts'));
const worker = await Worker.create({
connection,
namespace: 'default',
taskQueue: 'mastra',
plugins: [plugin],
});
await worker.run();
Documentation
Changelog
See the package changelog for version history and release notes.
Support
We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.