New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@mastra/google-cloud-pubsub

Package Overview
Dependencies
Maintainers
7
Versions
566
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.0.6
View campaign page

@mastra/google-cloud-pubsub

Mastra Google Cloud PubSub integration

Source
npmnpm
Version
1.1.4
Version published
Maintainers
7
Created
Source

@mastra/google-cloud-pubsub

GoogleCloudPubSub delivers Mastra events through Google Cloud Pub/Sub topics and subscriptions. Use it when multiple Mastra processes need durable, cross-host event delivery instead of the in-process event emitter.

Installation

npm install @mastra/google-cloud-pubsub

Usage

Authenticate with Application Default Credentials or set GOOGLE_APPLICATION_CREDENTIALS before starting Mastra.

import { Mastra } from '@mastra/core/mastra';
import { GoogleCloudPubSub } from '@mastra/google-cloud-pubsub';

export const mastra = new Mastra({
  pubsub: new GoogleCloudPubSub({
    projectId: process.env.GCP_PROJECT_ID!,
  }),
});

Documentation

  • Reference: GoogleCloudPubSub

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 21 Oct 2026

Related posts