npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mnemoai/core

v1.1.9

Published

Cognitive science-based AI memory framework — Weibull decay, triple-path retrieval, multi-backend storage

Downloads

975

Readme


Why Mnemo?

Every AI memory solution stores memories. Mnemo forgets intelligently.

Humans don't remember everything equally — important memories consolidate, trivial ones fade, frequently recalled knowledge strengthens. Mnemo models this with:

  • Weibull decay — stretched-exponential forgetting: exp(-(t/λ)^β) with tier-specific β
  • Triple-path retrieval — Vector + BM25 + Knowledge Graph fused with RRF
  • Three-layer contradiction detection — regex signal → LLM 5-class → dedup pipeline
  • 10-stage retrieval pipeline — from preprocessing to context injection

The result: your AI agent's memory stays relevant instead of drowning in noise.

Feature Highlights

| Capability | Core (Free) | Pro | |:---|:---:|:---:| | Vector + BM25 + Knowledge Graph | ✅ | ✅ | | Weibull forgetting model | ✅ | ✅ | | Memory tiers (Core/Working/Peripheral) | ✅ | ✅ | | Cross-encoder rerank | ✅ | ✅ | | Contradiction detection | ✅ | ✅ | | Multi-backend (LanceDB, Qdrant, Chroma, PGVector) | ✅ | ✅ | | Scope isolation (multi-agent) | ✅ | ✅ | | $0 local deployment (Ollama) | ✅ | ✅ | | WAL crash recovery | — | ✅ | | Session reflection | — | ✅ | | Access reinforcement (spaced repetition) | — | ✅ | | Self-improvement | — | ✅ | | Observability & audit log | — | ✅ |


Architecture

┌─────────────── Write Layer (6 channels) ───────────────┐
│  ① Hook realtime       ④ Daily archive extractor       │
│  ② Plugin SmartExtract ⑤ File watcher (fs.watch)       │
│  ③ L1 Distiller (cron) ⑥ Manual memory_store           │
└────────────────────────┬───────────────────────────────┘
                         ▼
              store.ts (dedup + contradiction L1)
                    ┌────┴────┐
                    ▼         ▼
                LanceDB    Graphiti/Neo4j
              (Vec + BM25)  (Knowledge Graph + WAL)

┌─────────────── Retrieval Layer (10 stages) ─────────────┐
│  S0  Preprocessing         S5  Min-score filter         │
│  S1  Resonance gate        S6  Cross-encoder rerank     │
│  S2  Multi-hop detection   S7  Weibull decay            │
│  S3  Triple-path parallel  S8  Hard cutoff + normalize  │
│      (Vector‖BM25‖Graph)   S9  MMR deduplication        │
│  S4  RRF fusion            S10 Session dedup + inject   │
└────────────────────────┬────────────────────────────────┘
                         ▼
                   Top-K → Agent Context

┌─────────────── Lifecycle Layer ─────────────────────────┐
│  Tier classification: Core (β=0.8) → Working (β=1.0)   │
│                        → Peripheral (β=1.3)             │
│  Weibull decay: exp(-(t/λ)^β)                          │
│  Access reinforcement (spaced repetition)               │
│  Emotional salience modulation (up to 1.5×)             │
│  Session reflection + overnight consolidation           │
└─────────────────────────────────────────────────────────┘

Quick Start

Option 1: npm (simplest)

npm install @mnemoai/core
import { createMnemo } from '@mnemoai/core';

// Auto-detect: uses OPENAI_API_KEY from env
const mnemo = await createMnemo({ dbPath: './memory-db' });

// Or use a preset for Ollama ($0, fully local)
// const mnemo = await createMnemo({ preset: 'ollama', dbPath: './memory-db' });

// Store a memory
await mnemo.store({
  text: 'User prefers dark mode and minimal UI',
  category: 'preference',
  importance: 0.8,
});

// Recall — automatically applies decay, rerank, MMR
const results = await mnemo.recall('UI preferences', { limit: 5 });

Available presets: openai, ollama, voyage, jinasee docs

Option 2: Python

pip install mnemo-memory
npx @mnemoai/server   # start the REST API
from mnemo import MnemoClient

client = MnemoClient()
client.store("User prefers dark mode", category="preference")
results = client.recall("UI preferences")

Option 3: 100% Local ($0, no external API)

ollama pull bge-m3               # embedding
ollama pull qwen3:8b             # smart extraction LLM
ollama pull bge-reranker-v2-m3   # cross-encoder rerank
const mnemo = await createMnemo({ preset: 'ollama', dbPath: './memory-db' });

Full Core functionality — embedding, extraction, rerank — all running locally. Zero API cost.

Option 4: Docker (full stack)

git clone https://github.com/Methux/mnemo.git
cd mnemo
cp .env.example .env     # add your API keys
docker compose up -d     # starts Neo4j + Graphiti + Dashboard

Packages

| Package | Platform | Install | |:---|:---|:---| | @mnemoai/core | npm | npm install @mnemoai/core | | @mnemoai/server | npm | npx @mnemoai/server | | @mnemoai/vercel-ai | npm | npm install @mnemoai/vercel-ai | | mnemo-memory | PyPI | pip install mnemo-memory |


Core vs Pro

Mnemo Core — Free, MIT License

The open-source foundation. Full retrieval engine, no restrictions.

| Feature | Details | |:---|:---| | Storage | Pluggable backend — LanceDB (default), Qdrant, Chroma, PGVector | | Retrieval | Triple-path (Vector + BM25 + Graphiti) with RRF fusion | | Rerank | Cross-encoder (configurable provider) | | Decay | Weibull stretched-exponential, tier-specific β | | Tiers | Core (β=0.8) / Working (β=1.0) / Peripheral (β=1.3) | | Contradiction | Three-layer detection (regex + LLM + dedup) | | Extraction | Smart extraction (configurable LLM) | | Graph | Graphiti/Neo4j knowledge graph | | Scopes | Multi-agent isolation | | Noise filtering | Embedding-based noise bank + regex |

Mnemo Pro — From $69/mo

Everything in Core, plus production features:

| Feature | Details | |:---|:---| | WAL | Write-ahead log for crash recovery | | Session reflection | Deep summary at session boundaries | | Self-improvement | Learning from interaction patterns | | Memory tools | memory_store / search / delete for agents | | MCP Server | Model Context Protocol integration | | Observability | Query tracking, latency monitoring, health checks | | Access tracking | Spaced repetition with reinforcement | | Audit log | GDPR-compliant append-only JSONL |

# Activate Pro
export MNEMO_PRO_KEY="your_license_key"

Pricing

| Plan | Price | Devices | Support | |:---|:---|:---:|:---| | Core | Free forever | Unlimited | GitHub Issues | | Indie | $69/mo · $690/yr | 1 | Email | | Team | $199/mo · $1,990/yr | 5 | Priority + Slack | | Enterprise | Custom | Unlimited | Dedicated + SLA |

Get Mnemo Pro →

API Configuration Guide

Mnemo is a framework — you bring your own models. Choose a setup that fits your budget:

| Setup | Embedding | LLM Extraction | Rerank | Est. API Cost | |:---|:---|:---|:---|:---:| | Local | Ollama bge-m3 | Ollama qwen3:8b | Ollama bge-reranker | $0/mo | | Hybrid | OpenAI text-embedding-3-small | GPT-4.1-mini | Jina reranker | ~$5/mo | | Cloud | Voyage voyage-3-large | GPT-4.1 | Voyage rerank-2 | ~$45/mo |

These are your own API costs, not Mnemo subscription fees. All setups use the same Core/Pro features — the difference is model quality.


Cognitive Science

Mnemo's design maps directly to established memory research:

| Human Memory | Mnemo Implementation | |:---|:---| | Ebbinghaus forgetting curve | Weibull decay: exp(-(t/λ)^β) | | Spaced repetition effect | Access reinforcement extends half-life | | Memory consolidation (sleep) | Session reflection + overnight cron | | Core vs peripheral memory | Tier system with differential β | | Spreading activation | Graphiti 1-hop neighborhood traversal | | Amygdala emotional tagging | emotionalSalience modulates half-life (up to 1.5×) | | Interference / false memories | MMR deduplication + noise bank | | Selective attention | Resonance gating (adaptive threshold) | | Metamemory | mnemo-doctor + Web Dashboard |


Documentation

Full documentation at docs.m-nemo.ai


Tools

| Tool | Description | Run | |:---|:---|:---| | mnemo init | Interactive config wizard | npm run init | | mnemo-doctor | One-command health check | npm run doctor | | validate-config | Config validation gate | npm run validate | | Dashboard | Web UI for browsing, debugging, monitoring | http://localhost:18800 |


License

This project uses a dual-license model:

  • MIT — Files marked SPDX-License-Identifier: MIT (Core features)
  • Commercial — Files marked SPDX-License-Identifier: LicenseRef-Mnemo-Pro (Pro features)

See LICENSE and packages/pro/LICENSE for details.


Contributing

We welcome contributions to Mnemo Core (MIT-licensed files). See CONTRIBUTING.md.

Areas where we'd love help:

  • Benchmark evaluation (LOCOMO, MemBench)
  • New storage adapters and embedding providers
  • Retrieval pipeline optimizations
  • Documentation and examples