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

@mastra/spanner

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

@mastra/spanner

Google Cloud Spanner provider for Mastra - db storage capabilities (GoogleSQL dialect)

alpha
Source
npmnpm
Version
1.8.0-alpha.0
Version published
Weekly downloads
714
-46.32%
Maintainers
7
Weekly downloads
 
Created
Source

@mastra/spanner

Persist Mastra data in Google Cloud Spanner with strong consistency, GoogleSQL schemas, emulator support, initialization, and direct database access.

Installation

npm install @mastra/spanner

Usage

Connecting to a managed Cloud Spanner database

import { SpannerStore } from '@mastra/spanner';

const store = new SpannerStore({
  id: 'spanner-storage',
  projectId: 'my-gcp-project',
  instanceId: 'my-instance',
  databaseId: 'mastra',
});

Documentation

  • Google Cloud Spanner

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 17 Sep 2026

Related posts