New:Socket for Asana Is Now Available.Learn more
Get Started

@mastra/braintrust

Package Overview
Dependencies
Maintainers
7
Versions
653
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:

1.1.4
View campaign page

@mastra/braintrust

Braintrust observability provider for Mastra - includes tracing and future observability features

latest
Source
npmnpm
Version
1.3.10
Version published
Weekly downloads
43K
-13.51%
Maintainers
7
Weekly downloads
 
Created
Source

@mastra/braintrust

Export Mastra traces to Braintrust for LLM evaluation and monitoring with zero-config environment variables or explicit project configuration.

Installation

npm install @mastra/braintrust

Usage

import { Mastra } from '@mastra/core/mastra';
import { Observability } from '@mastra/observability';
import { BraintrustExporter } from '@mastra/braintrust';

export const mastra = new Mastra({
  observability: new Observability({
    configs: {
      braintrust: {
        serviceName: 'my-service',
        exporters: [new BraintrustExporter()],
      },
    },
  }),
});

Documentation

  • Braintrust

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