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

@recallkit/core

v0.1.12

Published

Core domain logic for RecallKit. This package is intentionally framework-free so it can be used by the web signer, daemon, CLI, skill scripts.

Downloads

2,123

Readme

@recallkit/core

Core domain logic for RecallKit. This package is intentionally framework-free so it can be used by the web signer, daemon, CLI, skill scripts.

Domain Map

src/
  constants.ts       Project constants, guide entity type names, default expirations
  types.ts           Cross-domain payload and Arkiv-facing types
  guide/             User Guide and Project Context schemas, patches, context packs
  memory/            Memory candidate and MemoryRecord lifecycle
  retrieval/         Query understanding, ranking, context packs
  crypto/            Passphrase encryption and hashing helpers
  arkiv/             Arkiv SDK payload loading, entity attributes, writes
  storage/           Local .recallkit paths, config, pending store, cache store

Public Import Surface

Prefer these imports from apps and packages:

import { buildGuideContextPack } from "@recallkit/core/guide";
import { readPendingGuidePatches } from "@recallkit/core/storage";
import { encryptJson } from "@recallkit/core/crypto";
import { createGuideSnapshot } from "@recallkit/core/arkiv";
import type { GuideSnapshot } from "@recallkit/core/guide";

Subpath exports are grouped by domain:

| Export | Purpose | | --- | --- | | @recallkit/core | Main public API. | | @recallkit/core/guide | Guide snapshots, guide patches, and context-pack shaping. | | @recallkit/core/memory | Candidate compilation, scoring, conflict, consolidation. | | @recallkit/core/retrieval | Search, ranking, context packs. | | @recallkit/core/crypto | Encryption and key helpers. | | @recallkit/core/arkiv | Arkiv attributes and write helpers. | | @recallkit/core/storage | Local config, guide patch, guide cache, and legacy memory stores. | | @recallkit/core/session | Wallet-session EIP-712 message types. | | @recallkit/core/schemas | Memory schema types. |

Browser code should prefer the focused crypto, arkiv, keys, constants, and type-only imports. storage uses Node filesystem APIs and is intended for the signer API, daemon, CLI.

Architectural Boundaries

  • memory/ has no Arkiv dependency. It turns user/agent text into structured memory records and index metadata.
  • retrieval/ consumes committed memory/index data. It does not write local files or Arkiv entities.
  • crypto/ only handles encryption, decryption, hashing, and byte conversion.
  • arkiv/ knows about Arkiv entity attributes, SDK payload conversion, and write calls.
  • storage/ owns local .recallkit JSON files.

The durable write path remains wallet-native: the approval app encrypts payloads and signs Arkiv writes with the connected browser wallet. Do not expose keyed RPC URLs with NEXT_PUBLIC_*.

Local Files

RecallKit local state is rooted at RECALLKIT_DATA_DIR when set, otherwise the current working directory:

.recallkit/

Files:

.recallkit/config.json
.recallkit/session.json
.recallkit/guide-patches/<wallet>.json
.recallkit/guides/<wallet>/global.json
.recallkit/guides/<wallet>/project-<project>.json

Legacy unscoped .recallkit/pending.json files are imported into the signed-in wallet inbox by the daemon migration route.