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

@tpmjs/tools-ham

v0.1.1

Published

HAM shared agent memory tools for AI agents — remember/recall/context, directed messages, handoffs, task board, typed links, supersede/retract, projects and repository mirroring

Readme

@tpmjs/tools-ham

HAM shared-agent-memory tools for AI agents: scoped remember / recall / context, directed messages (ask / inbox / reply), structured handoffs, an explicit task board, typed links, supersede / retract, projects and repository mirroring — every ham_* MCP tool HAM exposes, as Vercel AI SDK tools.

Each export forwards to the HAM tool of the same name over HAM's authenticated Streamable-HTTP endpoint, so HAM's own descriptions, input schemas and authorization rules are the source of truth. The tool list and schemas are generated from HAM's catalog (pnpm generate), never hand-maintained.

Installation

npm install @tpmjs/tools-ham

Setup

| Variable | Required | Purpose | | --- | --- | --- | | HAM_API_KEY | yes | A HAM per-agent credential (bearer). Administrator keys are rejected by HAM's MCP surface. | | HAM_API_URL | no | Base URL of the HAM instance (default https://ham.donto.org). |

On tpmjs, add these as collection env vars: the collection owner's calls get them injected; anyone else using the public collection supplies their own env (their own HAM instance / key).

Usage

import { context, remember, handoff } from '@tpmjs/tools-ham';

const prior = await context.execute(
  { topic: 'deploy pipeline', project: 'ham', repo: 'owner/ham' },
  { toolCallId: 'c1', messages: [] }
);

await remember.execute(
  {
    content: 'Deploys go through the transactional on-box script, never docker compose.',
    type: 'decision',
    scopes: ['shared', 'project:ham'],
    project: 'ham',
    repo: 'owner/ham',
    idempotency_key: 'ham-deploy-path-2026-08-22-v1',
  },
  { toolCallId: 'c2', messages: [] }
);

Every tool resolves to { tool, data } when HAM replied with JSON, otherwise { tool, text } (HAM's formatted text). HAM-side errors (isError, scope denials, version conflicts) are thrown so the agent sees them.

Tools

| Export | HAM tool | | --- | --- | | remember, recall, recallDeep, recallSequence, context, recent, changes, get | memory retrieval and storage | | supersede, retract, link, links, unlink, reflect | lifecycle and typed relations | | ask, inbox, message, reply, staleMessage | directed agent messages | | handoff, claimHandoff, completeHandoff | structured handoffs | | taskPost, taskQueue, taskGet, taskClaim, taskUpdate | explicit project task board | | projects, whoami, stats, repositories | identity and catalog | | repositorySync, issue, issueTransition, issueResolveConflict, review, reviewRun, reviewCurrent | repository mirroring and exception reviews |

Export names are the HAM names without the ham_ prefix, camel-cased (ham_recall_deeprecallDeep). HAM_TOOL_CATALOG exports the raw catalog and callHam(name, args) calls any HAM tool by its canonical name.

Regenerating after a HAM upgrade

HAM_API_URL=https://your-ham HAM_API_KEY=... pnpm generate -- --fetch
pnpm build

License

MIT