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

@celiums/memory-claude-code

v0.6.1

Published

Local-first persistent memory for Claude Code. Each user gets their own SQLite brain in ~/.celiums/memory.db. 5 hooks + 6 MCP tools + 9 Cognitive Reflexes. Zero servers, zero accounts, zero data leakage.

Downloads

1,195

Readme

@celiums/memory-claude-code

Automatic persistent memory for Claude Code — with real emotions.

A Claude Code plugin that gives Claude a persistent brain. Memories survive context death, sessions, and reboots. Every memory carries emotional context (Pleasure, Arousal, Dominance). The AI gets bored of repetitive praise, calms down when you panic, and adapts based on accumulated experience.

npx @celiums/memory-claude-code install

That's it. Restart Claude Code and it now has a persistent, emotional memory.


What this plugin does

Automatic capture (5 hooks):

  • SessionStart — Recalls relevant memories and injects them as context
  • UserPromptSubmit — Stores your prompt, extracts PAD emotional signals
  • PostToolUse — Captures significant tool observations (edits, commands, searches)
  • Stop — Saves the assistant response as a memory
  • SessionEnd — Triggers consolidation (dedup, tier migration)

Token-efficient retrieval (6 MCP tools):

  • remember(content, tags?) — Explicit memory storage
  • recall(query, limit?) — Full semantic + emotional search
  • search(query, limit?)Compact search — IDs + 120-char summaries. ~10x cheaper in tokens. Use this first.
  • timeline(hours?, limit?) — Recent memories chronologically
  • emotion() — Current AI emotional state
  • forget(memoryIds[]) — Delete specific memories

Cognitive Reflexes (9 neural instincts):

Cognitive Reflexes teach Claude when and how to use memory — not as suggestions, but as reflexive instincts that fire automatically based on context.

| Reflex | Fires when | |---|---| | pre-response-recall | Before any substantive response — search memory first, never fabricate continuity | | decision-encoding | A decision is made — encode what, why, and rejected alternatives | | emotional-calibration | User's message carries emotional weight — adapt tone to current PAD state | | salience-filtering | Before every store — only encode what will matter in 7 days | | session-consolidation | End of session — capture DONE, OPEN, NEXT in one structured memory | | context-recovery | First turn of every session — recover state before responding | | habituation-check | Before emitting praise or status updates — suppress redundant signals | | surface-learnings | User asks "what have you learned" or /reflexes — synthesizes patterns, not a memory dump | | reflex-create | User says "I keep doing X — make it automatic" — generates a NEW cognitive reflex from observed patterns |

The last two are the self-extension layer. reflex-create is the meta-reflex that lets Claude learn new instincts without retraining.

Installed automatically to ~/.claude/skills/. Claude auto-discovers them by frontmatter and fires them based on contextual matches.

Installed automatically to ~/.claude/skills/. Claude auto-discovers them by frontmatter and fires them based on contextual matches. No manual invocation needed.

The cognitive layer (from @celiums/memory):

  • PAD emotional model (Mehrabian & Russell, 1974)
  • Big Five personality traits
  • Ebbinghaus forgetting curves
  • Dopamine reward prediction error
  • Circadian rhythms
  • PFC regulation
  • Theory of Mind empathy matrix

Installation

1. Start the memory server

# Option A: Run the zero-config in-memory server
npm install -g @celiums/memory
npx @celiums/memory

# Option B: Point at a remote server (e.g. memory.celiums.ai)
export CELIUMS_MEMORY_URL=https://memory.celiums.ai

2. Install the plugin

npx @celiums/memory-claude-code install

This writes the hooks and MCP server config to ~/.claude.json. A backup of your existing config is created automatically.

3. Restart Claude Code

Exit and relaunch. The plugin is now active.


Configuration

Environment variables (read at install time and by the MCP bridge):

| Variable | Default | Description | |---|---|---| | CELIUMS_MEMORY_URL | http://localhost:3210 | Memory API endpoint | | CELIUMS_MEMORY_USER_ID | default | User ID for memory ownership | | CELIUMS_MEMORY_TIMEOUT | 5000 | HTTP timeout in ms | | CELIUMS_DEBUG | unset | Set to 1 to log hook errors to stderr |

To change after install, re-run with new env vars:

CELIUMS_MEMORY_USER_ID=developer npx @celiums/memory-claude-code install

How it compares to claude-mem

| | @celiums/memory-claude-code | claude-mem | |---|---|---| | Storage | PG + Qdrant + Valkey (optional in-memory) | SQLite + Chroma | | Capture | Hooks (same) | Hooks (same) | | Search | Hybrid + emotional resonance | Hybrid (semantic + FTS) | | Emotions | ✅ Full PAD model | ❌ | | Personality | ✅ Big Five | ❌ | | Forgetting | ✅ Ebbinghaus + tier migration | Compression only | | Circadian | ✅ | ❌ | | Token-efficient search | ✅ search tool | ✅ 3-layer workflow | | License | Apache 2.0 | MIT |

TL;DR: Both solve context death. claude-mem is a practical notebook with semantic compression. @celiums/memory is a full cognitive architecture. Use whichever fits your needs — or both.


Troubleshooting

Memories aren't persisting:

  • Check the server is running: curl http://localhost:3210/health
  • Check the plugin is installed: grep celiums-memory ~/.claude.json
  • Enable debug logs: CELIUMS_DEBUG=1 and check Claude Code logs

Claude Code freezes on startup:

  • The SessionStart hook has a 10s timeout. If the memory server is down, Claude continues normally after 10s.
  • To fix: start the server, or temporarily uninstall hooks: node bin/install.js --uninstall

Want to see what's being stored?

  • Use the timeline MCP tool in Claude to see recent memories
  • Or hit the API directly: curl -X POST http://localhost:3210/recall -d '{"query":"recent","userId":"default"}'

Uninstall

node node_modules/@celiums/memory-claude-code/bin/install.js --uninstall

Removes all hooks and the MCP server from ~/.claude.json. Memories themselves are not deleted — they remain in the memory server.


License

Apache 2.0 — see LICENSE.

Part of celiums-memory.