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

@memfork/core

v0.1.12

Published

Git for AI agent memory — TypeScript SDK for MemForks on Sui

Downloads

2,328

Readme

@memfork/core

TypeScript SDK for MemForks — git for AI agent memory on Sui.

Branch-aware commits, semantic recall via MemWal, merge proposals, and delegate access control — with mainnet defaults and optional gas sponsorship.

Install

npm install @memfork/core

Peer stack (installed automatically):

  • @mysten/sui
  • @mysten-incubation/memwal

Quick start

import { MemForksClient } from "@memfork/core";

// Auto-config from .memfork/config.json + ~/.memfork/credentials.json
const client = await MemForksClient.connect();

// Or explicit config
const client = await MemForksClient.connect({
  treeId: "0x…",
  signer: process.env.MEMFORK_PRIVATE_KEY!,
  network: "mainnet",
});

// Write facts to the current branch
await client.commit({
  branch: "main",
  message: "Chose PostgreSQL over MongoDB",
  facts: ["Database: PostgreSQL", "Reason: ACID + team familiarity"],
});

// Semantic recall
const facts = await client.recall("database decision", { branch: "main", limit: 5 });

Auto-configuration

MemForksClient.connect() with no arguments resolves config from:

  1. Environment variables (MEMFORK_TREE_ID, MEMFORK_PRIVATE_KEY, MEMFORK_NETWORK, …)
  2. .memfork/config.json in the project directory
  3. ~/.memfork/credentials.json for secrets

Run npx @memfork/cli init once to generate these files.

Gas sponsorship (mainnet)

On mainnet, on-chain operations can be gas-sponsored — developers don't need SUI in their wallet:

export MEMFORK_SPONSOR_URL=https://sponsor.memfork.ai

The SDK sends unsigned transactions to the sponsor, receives gas-included bytes, signs, and submits.

API surface

| Export | Purpose | |--------|---------| | MemForksClient | Primary client — commit, recall, branch, proposeMerge, … | | MemoryClient | Alias for MemForksClient | | MemForksIndexer | Event-driven branch head + merge state | | resolvers | Decode on-chain resolver configs | | PERM / perms | Delegate permission bitflags |

Framework adapters

| Package | Use case | |---------|----------| | @memfork/langgraph | LangGraph checkpointer | | @memfork/vercel-ai | Vercel AI SDK middleware |

Mainnet package ID

0xc13cc014fb8084b3468f6e5ffdc272e64ef35b7a912332eba7a0d44dd66b3121

Override with MEMFORK_PACKAGE_ID or packageId in config.

Links

License

Apache-2.0