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

@gitloomhq/sdk

v0.8.2

Published

Agentic memory for LLM apps — drop in beside the OpenAI or Anthropic SDK

Readme

@gitloomhq/sdk

TypeScript SDK for GitLoom — a drop-in beside the OpenAI and Anthropic SDKs. Wrap the client you already use; your call sites stay exactly as they are, one field richer, and the conversation manages itself: rolling context window, memory retrieval, storage, compaction, titles.

npm install @gitloomhq/sdk

Drop-in

import OpenAI from 'openai'
import { Gitloom, withMemory } from '@gitloomhq/sdk'

const memory = new Gitloom()                 // reads GITLOOM_API_KEY
const openai = withMemory(new OpenAI(), { memory })   // ← the only setup

const res = await openai.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: 'What camera do I own?' }],
  conversation: 'chat-42',                   // ← the only change per call
})

That's the whole loop. Behind that one call: the stored conversation supplies the earlier turns (you pass only the new message — never append anything), memory is retrieved and injected as background, both turns are stored with the response's real token usage, compaction runs on cadence (default every 5 exchanges) or window pressure — and every compaction feeds the summarized turns to memory ingestion. Untitled conversations get a title automatically.

Anthropic clients (client.messages.create) wrap identically, with system content moved to the system field. Calls without conversation: pass through completely untouched.

const openai = withMemory(new OpenAI(), {
  memory,
  conversations: {
    summarize: 'server',        // GitLoom's model compacts…
    // summarize: myFunction,   // …or yours, locally
    compactEvery: 5,
    namespace: userId,
  },
})

Added features, on the same client

const conv = await openai.gitloom.conversation('chat-42')

await conv.rewind(6)                                              // fork after seq 6
await conv.edit(4, { role: 'user', content: 'ask differently' })  // fork at same seq
await conv.editInPlace(4, { content: '[redacted]' })              // destroy the original (PII)
await conv.setTitle('Camera shopping')
await conv.branches()

These act on the same managed conversation the completions flow through. Direct memory: openai.gitloom.memory.recall(...) / .remember(...) — every hit carries per-arm scores, git history with the last diff, and relation snippets.

Multimodal

import { textPart, imageData } from '@gitloomhq/sdk'

await openai.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: [
    textPart("what's in this photo?"),
    imageData(b64, 'image/png'),   // uploaded transparently; stored by reference
  ] }],
  conversation: 'chat-42',
})

Docs

https://docs.gitloom.cloud/documentation/typescript