@b4run/memory
v0.14.0
Published
Long-term memory storage, ranking, recall, and distillation primitives for B4.run agents.
Maintainers
Readme
@b4run/memory
Supported long-term memory storage, ranking, browsing, namespace, and reconciliation primitives. Most route authors should declare memory with defineMemory() and use this package when they need direct store access.
Use this when: You need to access memory stores or ranking primitives directly instead of using only defineMemory().
Install
pnpm add @b4run/memoryExample
import { sqliteMemoryStore } from "@b4run/memory"
const store = sqliteMemoryStore({ path: ".b4/memory.sqlite" })Supported focused entry points are @b4run/memory/browse, @b4run/memory/namespace, and @b4run/memory/reconcile.
Runtime and stability
@b4run/memoryis a supported node-only application surface because it includes SQLite.@b4run/memory/browseis a supported, dependency-free edge-safe integration surface.@b4run/memory/namespaceis a supported edge-safe integration surface.@b4run/memory/reconcileis a supported edge-safe integration surface.
SQLite rows contain plaintext content, data, sources, and tags. Treat the database as sensitive application data and enforce tenant scope at the caller boundary.
Related
- Memory API reference — exact store, query, and subpath contracts.
- Long-term Memory — application configuration.
- Recall and Retrieval and Browse and Manage Memory — retrieval and administration workflows.
@b4run/memory-pgvector— shared Postgres-backed vector memory.
Maturity and support
B4.run is pre-1.0, and its public surface can change. All publishable B4.run packages release together as a fixed group; review the @b4run/memory changelog and upgrading guide before upgrading. For support, use GitHub Discussions; report defects in GitHub Issues.
License
MIT. See the repository license.
