
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@mastra/pg
Advanced tools
Affected versions:
Postgres provider for Mastra - includes both vector and db storage capabilities
PostgreSQL implementation for Mastra, providing both vector similarity search (using pgvector) and general storage capabilities with connection pooling and transaction support.
npm install @mastra/pg
PgVector supports multiple connection methods:
1. Connection String (Recommended)
import { PgVector } from '@mastra/pg';
const vectorStore = new PgVector({
connectionString: 'postgresql://user:pass@localhost:5432/db',
});
See the package changelog for version history and release notes.
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
Postgres provider for Mastra - includes both vector and db storage capabilities
The npm package @mastra/pg receives a total of 527,599 weekly downloads. As such, @mastra/pg popularity was classified as popular.
We found that @mastra/pg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.