๐Ÿšง ย  This page is coming soon
โœ“ ย  Copied to clipboard
NEWv0.4.2 is live โ€” The latest performance and feature updates are now available.
Menu
Memory Layer for AI Applications

AI memory thatlives on your database.

ManasDB Core is the Node.js-native SDK for AI memory โ€” local embeddings, hybrid retrieval, polyglot storage, and MCP-native integration. No cloud lock-in. No API key to start.

โ—v0.4.2 Core stableApache 2.0 + Commons ClauseNode.js โ‰ฅ 18MongoDB ยท PostgreSQL
29ร—
Faster repeated queries with Redis cache
50%
API cost reduction via deduplication
+9.7%
Better recall accuracy vs raw stack
2
Production-stable npm packages

Permanent memory in 10 seconds.

Plug your own database, choose your embedding model, and start memorizing everything. No complex setup, no cloud lock-in.

index.js
1
2
3
4
5
6
7
8
9
10
11
12
import { ManasDB } from '@manasdb/core';
const memory = new ManasDB({
uri: process.env.MONGODB_URI,
modelConfig: { source: 'transformers' },
});
await memory.init();
await memory.absorb('ManasDB Core is the Node.js memory layer for AI.');
const results = await memory.recall('What is ManasDB Core?');
console.log(results[0].metadata.matchedChunk);
outputโ— live
result[0]
contentId"cnt_7f3a9b2cโ€ฆ"
score0.9381
metadata
"Primary mirror: 6.5m,
18 beryllium segments."
_trace
cacheHitfalse
rrfMerged14
finalScore0.9381
tokens12
costUSD$0.00024
Libraries

Two packages.
Everything you need.

Start with @manasdb/core and bring your own database. Add the MCP server to give any AI assistant persistent memory โ€” no custom integration needed.

โšก
@manasdb/core
Core SDK
STABLE

The foundation. absorb(), recall(), reasoningRecall(). Polyglot broadcasting to MongoDB and PostgreSQL, hybrid RRF+MMR retrieval, two-tier Redis caching, PII Shield, and full cost telemetry.

absorb()recall()reasoningRecall()PII ShieldTelemetry
๐Ÿ”Œ
@manasdb/mcp-server
MCP Server
STABLE

Give Claude Desktop and Cursor permanent memory in 60 seconds. An interactive setup wizard generates your config. Exposes memorize, recall, and forget as native MCP tools.

memorizerecallforgetClaude DesktopCursor
ManasDB Core vs Traditional Stack

Built for Node.js.
Built for privacy.

A traditional RAG stack requires complex glue code and vendor-locked cloud APIs. ManasDB Core is Node.js-native โ€” your memory layer stays on your infrastructure.

Integration
Development runtime
Traditional Stack
Manual Glue Code
ManasDB Core
Node.js native โœ“
Data Privacy
Where your data goes
Traditional Stack
Vendor Lock-in
ManasDB Core
Stays on your server โœ“
Local Embeddings
No API key needed
Traditional Stack
Requires Cloud APIs
ManasDB Core
Ollama / Transformers โœ“
Hybrid Search
Dense + sparse + RRF
Traditional Stack
DIY Implementation
ManasDB Core
RRF + MMR built-in โœ“
Redis Caching
29x faster repeated queries
Traditional Stack
Complex Setup
ManasDB Core
Tier 1 + Tier 2 โœ“
Tree Reasoning
Hierarchical recall
Traditional Stack
Manual Logic
ManasDB Core
reasoningRecall() โœ“
PII Protection
Before data leaves server
Traditional Stack
Pre-processor DIY
ManasDB Core
Built-in per-field โœ“
MCP Integration
Claude ยท Cursor
Traditional Stack
Partial
ManasDB Core
Working today โœ“
Trace Debugging
Full pipeline audit
Traditional Stack
Log parsing
ManasDB Core
Every recall() โœ“
On LangChain & LlamaIndex: ManasDB Core operates at the storage layer. These frameworks are excellent for chaining LLM calls โ€” ManasDB Core is the memory backend that plugs into them. Complementary, not competing.
Capabilities

Everything ManasDB Core
does for your memory layer.

Everything you'd bolt on manually โ€” reranking, caching, deduplication, PII filtering, cost tracking โ€” built directly into the SDK.

โšก
Polyglot Broadcasting
Write once, sync to MongoDB and PostgreSQL simultaneously. Migration, cross-region replication, or disaster recovery.
absorb() โ†’ all providers
๐Ÿ”€
Hybrid Retrieval
Dense ANN vector search fused with sparse keyword search via Reciprocal Rank Fusion, diversified with Maximal Marginal Relevance.
RRF + MMR
๐ŸŒฒ
Tree Reasoning
Maps chunks into Document โ†’ Section โ†’ Leaf hierarchy. Returns the highest-scoring section's leaves for deep structured answers.
reasoningRecall()
โšก
Two-Tier Cache
Tier 1 shared Redis across servers. Tier 2 in-memory LRU. Both short-circuit the DB when cosine similarity โ‰ฅ 0.95.
29x faster
๐Ÿ›ก๏ธ
PII Shield
Regex-based redaction of emails, phone numbers, SSNs, and custom patterns before any text hits your database.
Before storage
๐Ÿ”
Trace Debugging
Every recall() emits a _trace: cache hit status, PII tokens scrubbed, candidate counts, fallback triggers, final score.
_trace on every call
๐Ÿ“Š
Cost Telemetry
Tracks tokens, API cost, and latency savings in _manas_telemetry on your own database. Never leaves your server.
npx manas stats
๐Ÿ“Š
Sentinel Micro-Index
Dual-layer storage: chunk-level vectors for broad recall, sentence-level for QA. Boosts short-form precision ~30%.
mode: 'qa'
๐Ÿ”Œ
Custom Drivers
Plug any air-gapped or corporate embedding model. ManasDB becomes your standard interface over the entire embedding stack.
source: 'custom'
Performance

ManasDB Core Benchmarks

Run npx manas benchmark against your own URIs. These are real numbers from a free Atlas M0 cluster.

29ร—
Faster repeated queries
Redis Tier 1: complex QA 120ms โ†’ 4ms
-97%
Latency reduction
310ms raw stack โ†’ 9ms (MongoDB)
-50%
API cost reduction
SHA256 dedup + float16 compression
Metric
Raw
ManasDB
Delta
Latency avg310ms9ms-97%
Absorb time1200ms673ms-44%
API cost / 10k$0.024$0.012-50%
Recall accuracy82.4%92.1%+9.7%
Dedup / CacheNoneSHA256โœ“
Get started today

Own your memory.
Start with ManasDB Core today.

Free MongoDB Atlas cluster + local embeddings. Your data never leaves your server.