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

@oppiai/hoppi-memory

v0.1.1

Published

OPPi-owned local memory backend and dashboard, forked from Hippo Memory.

Downloads

215

Readme

Hoppi Memory

Hoppi is OPPi's local-first memory backend and dashboard. It was forked from Hippo and reshaped to be a safe library package: no postinstall automation, no hidden agent windows, no hook/scheduler setup by default, and no Codex/OpenClaw/MCP integration surfaces in the public API.

What Hoppi provides

  • side-effect-free TypeScript API for OPPi
  • project-scoped local memory storage
  • recall, list, update, pin, forget, supersede, consolidate primitives
  • OPPi-themed local dashboard with CRUD, project scope, sync setup, manual sync actions, and conflict resolution
  • portable sync snapshots for private GitHub repositories
  • tombstones for delete convergence across devices
  • optional passphrase encryption for sync payloads
  • local embedding rebuild support after pulls/imports

Safety model

Installing or importing Hoppi must not:

  • install shell hooks
  • register schedulers
  • start background workers
  • spawn Claude/Codex/OpenCode/OpenClaw windows
  • wrap CLIs
  • mutate agent config files

OPPi owns orchestration and timing. Hoppi exposes explicit storage/dashboard/sync functions only.

Installation

npm install @oppiai/hoppi-memory

OPPi can also install this package on demand into its managed package directory when the user accepts the first-start prompt or chooses the install action from /settings:oppi → Memory.

Library usage

import { createHoppiBackend } from "@oppiai/hoppi-memory";

const hoppi = createHoppiBackend();
await hoppi.init();

const project = { cwd: process.cwd(), displayName: "my-project" };
await hoppi.remember({ project, content: "Durable thing to remember.", tags: ["decision"] });

const recall = await hoppi.recall({ project, query: "durable thing", budget: 1200 });
console.log(recall.contextMarkdown);

Dashboard

const handle = await hoppi.startDashboard({ project, port: 0 });
console.log(handle.url); // http://hoppi.localhost:<port>?projectId=...

The dashboard exposes local APIs for memories, projects, settings, sync status, explicit manual sync, and conflict resolution. Its Sync settings tab includes a private-GitHub setup guide, safe-default checklist, copyable bootstrap commands, optional passphrase settings, and manual pull/push/sync buttons. It also has a built-in demo fallback when opened without a live API.

Sync

Sync stores portable memory records and tombstones, not raw SQLite databases:

import { syncGitRepository, rebuildEmbeddings } from "@oppiai/hoppi-memory";

const result = syncGitRepository(root, repoPath, {
  direction: "both",
  conflictMode: "keep-both",
  passphrase,
});

if (result.embeddingsRebuildRecommended) {
  await rebuildEmbeddings(root);
}

The conservative default is keep-both: conflicting edits are preserved and marked for dashboard resolution rather than silently overwritten. The dashboard Operations panel shows conflict previews and keeps delete-vs-edit conflicts explicit: keep the local edit, accept the remote delete, promote a remote edit, or keep both as separate memories.

Development

npm run build
npm test
npm run build:ui
npm run smoke:pack

The legacy Hippo CLI/source remains in the repository during the fork transition for regression coverage and diagnostics, but the public package entrypoint is intentionally narrow and side-effect-free.