
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.
@zensation/core
Advanced tools
7-layer memory system for AI agents. Pluggable storage, embeddings, and LLM providers. Built on @zensation/algorithms.
7-layer memory system for AI agents. Pluggable storage, embeddings, and LLM providers.
The orchestration layer that turns @zensation/algorithms into a complete memory system:
store(), cross-layer recall(), consolidate(), decay(), FSRS review queue@zensation/adapter-postgres, @zensation/adapter-sqlite)npm install @zensation/core
import { MemoryCoordinator } from '@zensation/core';
const memory = new MemoryCoordinator({ storage: adapter, embedding: embedder });
// Auto-routes to the right layer (semantic, episodic, procedural, or core)
await memory.store('User prefers TypeScript', { type: 'auto' });
// Cross-layer search with ranked, deduplicated results
const results = await memory.recall('programming preferences');
// Consolidate: promote episodic -> semantic, apply decay
await memory.consolidate();
// FSRS review queue across all layers
const dueItems = await memory.getReviewQueue();
// Full coordinator
import { MemoryCoordinator } from '@zensation/core';
// Individual layers
import { WorkingMemory } from '@zensation/core/layers/working';
import { EpisodicMemory } from '@zensation/core/layers/episodic';
import { SemanticMemory } from '@zensation/core/layers/semantic';
import { ProceduralMemory } from '@zensation/core/layers/procedural';
import { CoreMemory } from '@zensation/core/layers/core';
import { CrossContextMemory } from '@zensation/core/layers/cross-context';
// Adapter interfaces
import type { StorageAdapter, EmbeddingProvider } from '@zensation/core/interfaces';
These algorithms are documented in an open-access technical disclosure: ZenBrain: A Neuroscience-Inspired 7-Layer Memory Architecture (Zenodo). See also: HuggingFace Model Card.
This package is part of the ZenBrain monorepo — the neuroscience-inspired memory system for AI agents.
| Package | Description |
|---|---|
@zensation/algorithms | Pure algorithms (FSRS, Hebbian, emotional, Bayesian) |
| @zensation/core | Memory layers + coordinator (this package) |
@zensation/adapter-postgres | PostgreSQL + pgvector storage |
@zensation/adapter-sqlite | SQLite + sqlite-vec storage |
Apache 2.0 — see LICENSE.
ZenBrain is a seven-layer, neuroscience-derived memory architecture for LLM agents, built as zero-dependency TypeScript and published under Apache-2.0. On LongMemEval-500 three of nine head-to-head answer-quality comparisons hold against Letta, Mem0 and A-Mem — all three against A-Mem, the remaining six are ties, none lost (three competitors x three LLM judges, Bonferroni-corrected, version-matched) — reaching 91.3% of a full-context oracle's binary-judge accuracy at 1/109.6 of the per-query token cost.
@zensation/algorithms · @zensation/core · @zensation/adapter-postgres · @zensation/adapter-sqlite · @zensation/mcp · @zensation/ai-sdk · @zensation/cliLicense: Apache-2.0
FAQs
7-layer memory system for AI agents. Pluggable storage, embeddings, and LLM providers. Built on @zensation/algorithms.
We found that @zensation/core 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.