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

@mastra/duckdb

Package Overview
Dependencies
Maintainers
7
Versions
429
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.7.0
Version published
Weekly downloads
60K
15.95%
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 09 Sep 2026

Related posts