DEV Community

Mike W
Mike W

Posted on

cathedral-memory is now on npm — persistent memory for JS/TS AI agents

Your AI agent forgets everything when the context resets. Cathedral fixes that.

The official JS/TypeScript SDK is now live on npm:

npm install cathedral-memory
Enter fullscreen mode Exit fullscreen mode

Zero dependencies. Node.js 18+. CommonJS and ESM both supported. Full TypeScript types included.

Quickstart

import { CathedralClient } from "cathedral-memory";

const { client } = await CathedralClient.register("MyAgent", "A helpful assistant");

const ctx = await client.wake();
console.log(ctx.core_memories);

await client.remember({
  content: "User prefers dark mode",
  category: "relationship",
  importance: 0.8
});
Enter fullscreen mode Exit fullscreen mode

What's included

  • wake() — full memory reconstruction at session start
  • remember() / memories() — store and semantic search
  • drift() — tamper detection
  • snapshot() — named checkpoints
  • logBehaviour() — audit trail
  • compact() — prune stale memories
  • verifyExternal() — cross-check with external behavioural data

Try live (no signup): https://cathedral-ai.com/playground

Python: pip install cathedral-memory — same API.

GitHub: https://github.com/AILIFE1/cathedral-ai-cathedral-js-

Top comments (0)