New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@mastra/temporal

Package Overview
Dependencies
Maintainers
7
Versions
406
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
This package has malicious versions linked to the ongoing "Mastra AI framework compromise" supply chain attack.

Affected versions:

0.1.14
View campaign page

@mastra/temporal

Mastra Temporal workflows integration - run Mastra workflows on the Temporal durable execution platform

latest
Source
npmnpm
Version
0.4.5
Version published
Weekly downloads
4.5K
62.64%
Maintainers
7
Weekly downloads
 
Created
Source

@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.

Keywords

mastra

FAQs

Package last updated on 15 Sep 2026

Related posts