
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@betterdb/memory
Advanced tools
BetterDB Memory for Claude Code — Valkey-powered persistent memory across sessions
Persistent, semantic memory for Claude Code sessions — powered by Valkey.
Every time you start a new Claude Code session, context is lost. BetterDB Memory automatically captures what you did, embeds it as vectors in Valkey, and retrieves relevant history at the start of each new session.
bunx @betterdb/memory install
This will:
~/.betterdb/bin/| Hook | What it does |
|---|---|
| SessionStart | Retrieves relevant memories via vector search, injects as context |
| PostToolUse | Records every tool call to a temp JSONL file |
| Stop | Summarizes the session, embeds it, stores in Valkey |
| PreToolUse | Surfaces file-specific history when accessing known files |
Claude can use these mid-conversation:
search_context — Semantic search over past sessionsstore_insight — Save a decision, pattern, or warninglist_open_threads — Show unresolved itemsforget — Delete a specific memorybunx @betterdb/memory install # Set up hooks + MCP server
bunx @betterdb/memory status # Check health
bunx @betterdb/memory uninstall # Remove everything
bunx @betterdb/memory maintain # Run aging/compression manually
Via environment variables or ~/.betterdb/memory.json:
| Variable | Default | Description |
|---|---|---|
BETTERDB_VALKEY_URL | redis://localhost:6379 | Valkey connection URL |
BETTERDB_EMBED_MODEL | auto-detect | Embedding provider |
BETTERDB_SUMMARIZE_MODEL | auto-detect | Summarization provider |
BETTERDB_EMBED_DIM | 1024 | Embedding dimensions |
BETTERDB_MAX_CONTEXT_MEMORIES | 5 | Memories injected per session |
BETTERDB_CONTEXT_FILE | .betterdb_context.md | Context injection file |
MIT
FAQs
BetterDB Memory for Claude Code — Valkey-powered persistent memory across sessions
The npm package @betterdb/memory receives a total of 15 weekly downloads. As such, @betterdb/memory popularity was classified as not popular.
We found that @betterdb/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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.