Skip to content

Mastra

Mastra is a TypeScript framework for workflows and model-assisted features with configurable storage.

Visit Mastra

When should a workflow pause?

Pause when the next action needs a decision or missing information. Mastra supports tool approvals and separate pauses for input. Show the pending action in your app and continue only with the matching decision.

What lets a suspended run survive a restart?

Configure persistent storage for runs that need to survive a restart. Mastra’s in-memory storage loses its snapshots when the process exits. Keep the app’s final review decision and saved business record in the appropriate app storage.

What do you pay for outside the framework?

Budget for the model, the process running the workflow and its storage. Mastra’s core license is Apache 2.0. Enterprise code has separate terms, so check the feature you plan to deploy.

What should a reviewer see after reopening a paused workflow?

Sketch a fictional catalog description awaiting review. Draw what a reviewer should see when returning after the original process has ended.

  1. Name the saved pieces
    Keep the pending text, intended action and review status. Mark which storage would preserve the workflow snapshot.
  2. Decline the draft
    Return the record to editing on paper. No catalog change should appear from the declined step.