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

@neottia/memory-core

v0.3.2

Published

Standalone agent memory: filesystem-canonical records with SQLite FTS5 index, Postgres-ready backend interface

Readme

@neottia/memory-core

Typed Memory library with filesystem-canonical YAML or PostgreSQL storage.

Requirements and installation

Filesystem Memory requires Node.js 22.16 or newer on a supported Linux local filesystem. PostgreSQL Memory requires Node.js 22.16 or newer and deployment-owned credentials and scope. See the requirements guide.

pnpm add @neottia/memory-core

Quick start

This example enables Memory with an explicit override, stores a fact, supersedes it, deletes the replacement with a tombstone, and closes the backend:

import { MemoryStore, loadMemoryConfig } from "@neottia/memory-core";

const cwd = process.cwd();
const config = loadMemoryConfig(cwd, {
  enabled: true,
  namespace: { organization_id: "acme", project_id: "website" },
});
const store = MemoryStore.fromConfig(config, cwd);
try {
  const fact = {
    memory_type: "semantic" as const,
    record_type: "fact" as const,
    summary: "The site is deployed with pnpm, never npm",
    details: null,
    topic: "tooling",
    source: { kind: "user-confirmed" as const, ref: null, revision: null },
    created_by: "agent:pi",
    confidence: "confirmed" as const,
    tags: ["packaging"],
  };
  const record = await store.store(fact);
  const replacement = await store.supersede(record.id, {
    ...fact,
    summary: "The site is deployed with pnpm; npm is blocked via packageManager",
  });
  await store.delete(replacement.id, "No longer applicable", replacement.source, "agent:pi");
} finally {
  await store.close();
}

The filesystem result is canonical YAML below .neottia/memory/. Its index.db, WAL, and SHM files are disposable.

Configuration and public API

export type LoadMemoryConfigOptions = Partial<MemoryConfigInput> & {
  env?: NodeJS.ProcessEnv;
};

export function loadMemoryConfig(cwd: string, options?: LoadMemoryConfigOptions): MemoryConfig;

Memory contributes the canonical modules.memory shard to @neottia/config. The shared resolver applies defaults, global and project files, the selected profile, environment bindings, and explicit overrides in that order. loadMemoryConfig keeps the deprecated skills.memory path and historical file selectors for standalone compatibility. Environment variables override only the leaves listed in the configuration reference. security.secret_patterns and every security.limits leaf remain file/code-only.

The package exports memoryConfigContribution, MemoryStore, FilesystemBackend, PostgresBackend, StorageBackend, configuration and record schemas, errors, security helpers, ULID helpers, report types, and the nine-tool registry. Hosts can resolve one shared snapshot and pass snapshot.get(memoryConfigContribution) to MemoryStore.fromConfig. Read the unified configuration guide, library and backend API, tool contracts, record lifecycle, backend guide, and operations guide.

Scope

The filesystem backend ignores namespace.scope. Separate worktrees stay isolated through separate configured roots. Namespace scope separates PostgreSQL rows within one organization and project. Filesystem and PostgreSQL authorities require an explicit export, preview, and import migration.

License

MIT. See LICENSE.