
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@monoes/memory
Advanced tools
Memory module - JSON pattern store, SQLite + embeddings backend, and a standalone pure-JS HNSW index; not a single unified backend
Persistent memory backends for Monomind agents — SQLite in WAL journal mode (PRAGMA journal_mode = WAL, schema v3.0.0) key-value storage with dense ONNX ModernBERT 768d + Okapi BM25 RRF hybrid search, surface query routing, Open Knowledge Format (OKF) transfer, Cognee-style knowledge graph triplets, and EWC pattern consolidation.
Part of the Monomind ecosystem. The embedded storage layer uses
better-sqlite3withsql.js(WASM zero-compile fallback).
npm install @monoes/memory
# optional: native SQLite (faster than the sql.js WASM fallback)
npm install better-sqlite3
PRAGMA journal_mode = WAL) using better-sqlite3 with a WASM sql.js fallback.@monoes/memory core schema (packages/@monomind/memory/src/sql-schema.ts:28): SCHEMA_VERSION = 2 managing 4 tables (memory_entries, memory_embeddings, memory_entry_tags, agent_reads).packages/@monomind/cli/src/memory/memory-schema.ts:15): Schema version 3.0.0 managing 9 tables (memory_entries, patterns, pattern_history, trajectories, trajectory_steps, migration_state, sessions, vector_indexes, metadata).Retrieval uses a dual-arm hybrid search architecture combined with Reciprocal Rank Fusion (RRF):
Alibaba-NLP/gte-modernbert-base (768 dimensions).@xenova/transformers ONNX feature extraction.HNSWIndex (dimensions=768, M=16, efConstruction=200, metric='cosine').text-tokens.ts).LIVE_CHUNK_WARN_THRESHOLD) and persistent review at 1,000,000 chunks (SCALING_REVIEW_CHUNKS).The QueryRouter (query-router.ts) evaluates queries across 4 target surfaces: chunks (prior 0.5), kg (wt 2), rules (wt 2), and memory (wt 2):
NEGATION_RE) to bypass negated query phrases..monomind/metrics/route-overrides.json.Supports document and memory export/import via Open Knowledge Format (OKF) Markdown files with YAML frontmatter headers:
exportToOKF() with frontmatter (type: Document, title, description, resource, tags, timestamp, contentHash, chunkCount) and an index.md manifest.monomind memory export and import export/restore key-value memory entries across namespace directory trees.ewc-consolidation.ts): Applies Elastic Weight Consolidation using an EMA-updated Fisher information matrix (computeFisherMatrix) persisted in .swarm/ewc-fisher.json to prevent catastrophic forgetting during pattern updates.sona-optimizer.ts): Extracts routing patterns from hooksTrajectoryEnd events into .swarm/sona-patterns.json.| Export | What it does |
|---|---|
UnifiedMemoryService | High-level store/get/search facade backed by SQLiteBackend |
SQLiteBackend / SqlJsBackend | Structured key-value storage in SQLite WAL mode |
HNSWIndex | Standalone pure-JS approximate nearest-neighbor index (768d) |
EpisodicStore | JSON-lines episodic memory store |
chunkDocument, KnowledgeStore, KnowledgeRetriever | Document chunking + retrieval pipeline |
QueryBuilder / query() | Fluent query construction |
CacheManager, TieredCacheManager | LRU caching with size/TTL limits |
createDatabase, getPlatformInfo | Platform-aware provider selection (better-sqlite3 native → sql.js WASM) |
SwarmCheckpointer | Persist/restore swarm agent state snapshots |
MemoryMigrator | Import from SQLite, JSON, or Markdown sources |
PromptVersionStore, ControllerRegistry | Prompt version history & controller registry |
createDatabase() picks the best available provider per platform:
better-sqlite3 (native, fastest) → sql.js (WASM, zero compilation, works
everywhere including Windows without a toolchain) → JSON file fallback. See
docs/CROSS_PLATFORM.md and docs/WINDOWS_SUPPORT.md.
MIT
FAQs
Memory module - JSON pattern store and a SQLite + embeddings backend with a size-gated HNSW ANN fast path built in
The npm package @monoes/memory receives a total of 857 weekly downloads. As such, @monoes/memory popularity was classified as not popular.
We found that @monoes/memory demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.