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

@mastra/duckdb

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

@mastra/duckdb

DuckDB vector store provider for Mastra - embedded high-performance vector storage with HNSW indexing

Source
npmnpm
Version
1.13.0
Version published
Weekly downloads
104K
-15.97%
Maintainers
7
Weekly downloads
 
Created
Source

@mastra/duckdb

DuckDB vector store implementation for Mastra, providing high-performance embedded vector similarity search with HNSW indexing. No external server required - runs entirely in-process.

Installation

npm install @mastra/duckdb

Usage

Configure the database credentials required by your provider.

import { Mastra } from '@mastra/core';
import { DuckDBVector } from '@mastra/duckdb';

const vectorStore = new DuckDBVector({
  id: 'rag-store',
  path: './rag-vectors.duckdb',
});

// Use with Mastra's RAG system
const mastra = new Mastra({
  vectors: {
    ragStore: vectorStore,
  },
});

Documentation

  • DuckDB integration guide
  • DuckDB vector reference

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

Related posts