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

@hippo-core/core

v0.6.2

Published

Drop-in persistent memory for any AI agent framework

Readme

🦛 Hippo Core

Persistent memory for AI agents. Drop-in. Zero infrastructure.

Named for the hippocampus — the brain's memory center.

npm install @hippo-core/core

Hippo Core gives your agents a memory. Every session they know who they're talking to, what was said before, and what the user cares about. Works with OpenClaw, Paperclip, Hermes, or any custom agent. Memory is stored locally in a single SQLite file — no database, no Docker, no cloud account required.


How it works

User message
  → retrieve relevant memories from .hippo-core/memory.db
  → inject context into system prompt
  → agent responds with full user context
  → store interaction
  → repeat

Agents that were stateless become stateful. No changes to your agent logic.


Quick start

import { createMemory } from '@hippo-core/core';

const memory = createMemory({
  apiKey: process.env.OPENAI_API_KEY,
  // SQLite file created automatically at .hippo-core/memory.db
});

// Before your agent runs
const { systemPrompt } = await memory.before(userId, userMessage, 'You are a helpful assistant.');

// Run your agent with the enriched prompt
const response = await yourAgent(systemPrompt, userMessage);

// After your agent responds — store it
await memory.after(userId, userMessage, response);

Framework adapters

OpenClaw

import { Agent } from 'openclaw';
import { withMemory, memoryTools } from '@hippo-core/core/adapters/openclaw';

// Option A: Automatic memory — wrap your agent
const agent = withMemory(new Agent({
  model: 'gpt-4o',
  systemPrompt: 'You are a mortgage advisor.',
}));

const result = await agent.run('user_123', 'What should I know about fixed rates?');

// Option B: Explicit memory tools — agent decides when to remember/recall
const agent = new Agent({
  model: 'gpt-4o',
  tools: [...myTools, ...memoryTools()],
});

Paperclip

import { createAgent } from 'paperclip-ai';
import { memoryPlugin } from '@hippo-core/core/adapters/paperclip';

const agent = createAgent({ model: 'gpt-4o' });
agent.use(memoryPlugin());

const result = await agent.run({ userId: 'user_123', message: 'What mortgage fits my budget?' });

Any other framework

import { createMemory } from '@hippo-core/core';
const memory = createMemory({ apiKey: process.env.OPENAI_API_KEY });

async function run(userId, userMessage) {
  const { systemPrompt } = await memory.before(userId, userMessage, baseSystemPrompt);
  const response = await yourAgent.run(systemPrompt, userMessage);
  await memory.after(userId, userMessage, response);
  return response;
}

Importance scoring

retrieval_rank = (similarity × 0.7) + (importance × 0.3)
importance     = (recency × 0.3) + (access_frequency × 0.4) + (feedback × 0.3)

Memories used often and marked helpful rank higher over time.


Configuration

const memory = createMemory({
  apiKey:         process.env.OPENAI_API_KEY,
  baseURL:        'https://api.openai.com/v1',   // or OpenRouter, Ollama
  model:          'gpt-4o-mini',
  embeddingModel: 'text-embedding-3-small',
  dbPath:         './.hippo-core/memory.db',
  memoryLimit:    5,
});

Local models (Ollama):

{ apiKey: 'ollama', baseURL: 'http://localhost:11434/v1', model: 'llama3.2', embeddingModel: 'nomic-embed-text' }

What's stored

Everything lives in .hippo-core/memory.db — a single file in your project directory. No data leaves your machine except LLM API calls.


Run the demo

git clone https://github.com/your-org/hippo-core
cd hippo-core && npm install
OPENAI_API_KEY=sk-... npm run demo

Contributing

Adding a new framework adapter is a single file in packages/core/src/adapters/. See openclaw.js as a template. PRs welcome.


MIT License