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

@fractaal/pi-cross-agent-memory

v0.2.0

Published

Portable Pi extension that injects Claude Code and Codex memory indexes for the active project.

Readme

@fractaal/pi-cross-agent-memory

Portable Pi extension that injects local Claude Code and Codex memory indexes for the active cwd.

This package is also the reference implementation for how fractaal Pi extensions are published — see Publishing a Pi extension properly.

What it loads

  • Claude Code project memory:
    • ~/.claude/projects/<project-slug>/memory/MEMORY.md
    • legacy ~/.claude/projects/<project-slug>/MEMORY.md
  • Codex project memory, if present:
    • ~/.codex/projects/<project-slug>/memory/MEMORY.md
    • ~/.Codex/projects/<project-slug>/memory/MEMORY.md
  • Codex global memory, if present:
    • ~/.codex/memories/MEMORY.md
    • ~/.Codex/memories/MEMORY.md

It also considers the git common worktree root, so a task worktree can still pick up memory saved against the main checkout root.

Pi usage

From npm:

pi install npm:@fractaal/pi-cross-agent-memory

Or by git ref:

pi install git:github.com/fractaal/pi-cross-agent-memory@<commit-or-tag>

Local dogfood while developing:

pi install /path/to/pi-cross-agent-memory

Pi loads the extension through the pi.extensions manifest entry, which points at ./src/index.ts — Pi's loader compiles TypeScript itself, so no build output is involved on this path.

Commands

  • /cross-agent-memory shows which memory files are currently injected.
  • /claude-memory is kept as a compatibility alias for Ben's old personal extension command.

Embedding

ALR or another host can import the factory directly:

import { createCrossAgentMemoryExtension } from '@fractaal/pi-cross-agent-memory';

const extensionFactory = createCrossAgentMemoryExtension({ notifyOnSessionStart: false });

This import resolves to compiled JS in dist/ via the package exports map — plain Node can load it, no TypeScript loader required. The default export is a ready-to-load Pi extension for ordinary Pi package use.

Publishing a Pi extension properly

The pattern this package follows, and every fractaal Pi extension should copy:

  1. Two entry doors, one implementation.
    • pi.extensions in package.json points at the TypeScript source (./src/index.ts). Pi's own loader consumes this — it compiles TS itself. This is the standard Pi-ecosystem door.
    • exports / main / types point at compiled JS in dist/. Ordinary Node consumers (ALR embedding Pi as a library, tests, scripts) import through this door. Node deliberately refuses to type-strip .ts files inside node_modules (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING), so this door must be compiled JS.
  2. dist/ is never committed. It is gitignored. The build runs automatically at publish time via prepack, so the npm tarball always contains fresh compiled output matching the source it ships with.
  3. files ships both doors: dist (compiled JS + types) and src (the .ts the Pi loader reads).
  4. Published to npm under @fractaal, publishConfig.access: public. Consumers pin ordinary semver versions. No git-SHA tarball URLs, no vendored build artifacts, no path-resolving .ts files out of node_modules at runtime.
  5. Runtime imports stay lean. The Pi API is imported type-only (import type { ExtensionAPI } from '@earendil-works/pi-coding-agent'), so the compiled output has no hard runtime dependency on the harness — it is declared as a peer.

Release flow:

npm run typecheck && npm test
npm version minor        # or patch/major
npm publish              # prepack builds dist/ automatically
git push --follow-tags