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

@mastra/apple-container

Package Overview
Dependencies
Maintainers
7
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mastra/apple-container

Apple container CLI sandbox provider for Mastra workspaces

latest
Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
539
11.36%
Maintainers
7
Weekly downloads
 
Created
Source

@mastra/apple-container

Apple container CLI sandbox provider for Mastra workspaces.

Implements the WorkspaceSandbox interface with Apple's container CLI. The provider starts a long-lived OCI Linux container and runs workspace commands through container exec.

Installation

npm install @mastra/apple-container

Usage

import { Workspace } from '@mastra/core/workspace';
import { AppleContainerSandbox } from '@mastra/apple-container';

const sandbox = new AppleContainerSandbox({
  image: 'node:22-slim',
  volumes: {
    '/Users/me/project': '/workspace',
  },
  workingDir: '/workspace',
});

const workspace = new Workspace({ sandbox });
await workspace.init();

const result = await workspace.sandbox?.executeCommand?.('node', ['--version']);
console.log(result?.stdout);

await workspace.destroy();

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.

FAQs

Package last updated on 03 Sep 2026

Related posts