🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@mastra/fastembed

Package Overview
Dependencies
Maintainers
11
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mastra/fastembed

This package provides a FastEmbed embedding model integration for use with Mastra Memory.

0.10.0
alpha
latest
npm
Version published
Weekly downloads
5.8K
142.79%
Maintainers
11
Weekly downloads
 
Created
Source

@mastra/fastembed

This package provides a FastEmbed embedding model integration for use with Mastra Memory.

Note: This functionality was previously included directly within @mastra/core. It has been moved to this separate package because fastembed-js relies on large native dependencies (like onnxruntime-node). Separating it keeps @mastra/core lightweight for users who may not need FastEmbed.

Installation

pnpm add @mastra/fastembed

Usage

import { Memory } from '@mastra/memory';
import { fastembed } from '@mastra/fastembed';

const memory = new Memory({
  // ... other memory options
  embedder: fastembed,
});

// Now you can use this memory instance with an Agent
// const agent = new Agent({ memory, ... });

This package wraps the fastembed-js library to provide an embedding model compatible with the AI SDK and Mastra.

FAQs

Package last updated on 21 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts