@jackice/pi-memory-rust

Rust memory extension for Pi: Turso storage + Tantivy FTS + turbovec vectors + local ONNX embedding

Packages

Package details

extension

Install @jackice/pi-memory-rust from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@jackice/pi-memory-rust
Package
@jackice/pi-memory-rust
Version
0.1.18
Published
Nov 24, 2026
Downloads
448/mo · 21/wk
Author
jackice
License
MIT
Types
extension
Size
57 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@jackice/pi-memory-rust

A Rust memory extension for Pi: Turso storage + Tantivy FTS + turbovec vectors + local ONNX embedding.

See the repository root README.md for full documentation (this package is the npm distribution entry).

Layout

  • index.ts — Pi extension entry (event bindings + /memory commands + LLM proxy)
  • src/client.ts — JSON-RPC client + persistent process lifecycle management
  • The native binary ships in per-platform leaf packages: @jackice/pi-memory-rust-<platform>-<arch> (declared in optionalDependencies)

The 0.1.18 npm release currently supports macOS arm64 only. npm will reject installation on other OS/CPU combinations; publish platform-matched leaf binaries before expanding this range.

Environment variables

Variable Description
PI_MEMORY_RUST_BINARY Explicit path to the Rust binary (overrides leaf package / bundled binary)
PI_MEMORY_DATA_DIR Data directory (default ~/.local/share/pi-memory-rust)
PI_MEMORY_MODEL_PATH Embedding model directory (default ~/.cache/pi-memory-rust/model)
PI_MEMORY_MAX_OPEN_PROJECTS Soft limit for idle project runtimes (default 16; only unshared runtimes are evicted, so active projects can temporarily exceed the limit)

Long maintenance commands (prepare-model, migrate, rebuild, rebuild-embeddings, clear, and purge) start a server job and poll its status. If the command wait expires, /memory job <id> resumes polling while that server process is still running. Clearing every stored project still requires /memory clear all confirm; its per-project outcomes are retained in the job details.

Install

pi install npm:@jackice/pi-memory-rust