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

@totalreclaw/core

v2.7.0

Published

TotalReclaw core — E2EE crypto, reranker, wallet, UserOp, store/search pipelines. Single source of truth for all clients.

Readme

@totalreclaw/core

The shared TotalReclaw core library, compiled from Rust to WebAssembly. It holds the encryption, blind indexing, reranking, key and wallet derivation, and on-chain encoding code that every TotalReclaw client uses, so the OpenClaw plugin, the MCP server, the NanoClaw skill and the Python client all produce byte-identical results.

The same crate also ships as totalreclaw-core on crates.io (Rust) and totalreclaw-core on PyPI (Python bindings).

Should you install this?

Probably not directly. If you want encrypted memory for an AI agent, install the integration for your agent instead. Each one pulls in @totalreclaw/core for you:

| Agent | Package | Guide | |-------|---------|-------| | OpenClaw | @totalreclaw/totalreclaw | OpenClaw setup | | Claude Code, Claude Desktop, Cursor, other MCP hosts | @totalreclaw/mcp-server | Claude Code setup | | Hermes | totalreclaw on PyPI | Hermes setup | | NanoClaw | @totalreclaw/skill-nanoclaw | NanoClaw guide |

Install @totalreclaw/core yourself only if you are building a TotalReclaw client or tool and need the same primitives.

Install

npm install @totalreclaw/core

Entry points

| Import | Build | Use it from | |--------|-------|-------------| | @totalreclaw/core | wasm-bindgen nodejs target (CommonJS; loads the .wasm file synchronously) | Node.js | | @totalreclaw/core/web | wasm-bindgen web target (ES module; call the default init() export once before anything else) | Browsers and bundlers |

Both builds come from the same crate and version and expose the same functions. TypeScript declarations ship with each build.

Usage

Node.js:

const { randomBytes } = require('node:crypto');
const core = require('@totalreclaw/core');

// XChaCha20-Poly1305. Keys are 32 bytes, passed as 64 hex characters.
const key = randomBytes(32).toString('hex');
const blob = core.encrypt('prefers dark mode', key); // base64: nonce || tag || ciphertext
console.log(core.decrypt(blob, key));                 // 'prefers dark mode'

// Blind indices: hex SHA-256 hashes of the normalized tokens and their stems.
// The server matches on these and never sees the words.
console.log(core.generateBlindIndices('prefers dark mode'));

Browser:

import init, { encrypt, decrypt } from '@totalreclaw/core/web';

await init(); // fetches totalreclaw_core_bg.wasm from next to the module

What's included

Function names below are the JavaScript exports. Most functions take and return plain strings (hex keys, base64 blobs, JSON); see totalreclaw_core.d.ts for exact signatures.

  • Encryption and indexing: encrypt, decrypt, generateBlindIndices, generateContentFingerprint, normalizeText, computeAuthKeyHash.
  • Key derivation: deriveKeysFromMnemonic, deriveLshSeed, deriveBundleFromMnemonic, plus parseBundleV1 / validateBundleV1 for credential bundles.
  • Store and search: prepareFact, prepareTombstone, encodeFactProtobuf, canonicalizeClaim, generateSearchTrapdoors, parseSearchResponse, rerank, rerankWithConfig, decryptAndRerank, cosineSimilarity.
  • Wallet and ERC-4337: deriveEoa, deriveEoaAddress, encodeSingleCall, encodeBatchCall, hashUserOp, signUserOp.
  • Dedup, contradictions and pins: detectContradictions, resolvePair, resolveWithCandidates, classifyPinIntent, isPinnedClaim, decision-log helpers.
  • Extraction prompts: getExtractionSystemPrompt, getCompactionSystemPrompt, getDebriefSystemPrompt.

Apart from the web build's init() loading the .wasm file, the library does no network I/O. All key material stays in your process. Functions that take a recovery phrase exist for client implementations that already hold the user's phrase; never log a phrase, put it in a prompt, or send it to an LLM.

Links

License

MIT