build

Three calls to a permanent memory.

Bring your own Solana keypair. Aurpex handles storage, the graph, embeddings, and recall behind a tiny surface.

1 · install

shell
# node / bun / deno
npm i @aurpex/sdk

2 · write

write.ts
import { Aurpex } from "@aurpex/sdk";

const mem = new Aurpex({ keypair });

await mem.write({
  kind: "semantic",
  text: "user prefers terse, metric answers",
  tags: ["preference", "user"],
});

3 · recall

recall.ts
// hybrid vector + keyword, ranked
const hits = await mem.recall("how does the user like answers?");

// → [{ text, score, kind, tags }]
agent.prime(hits); // inject into context

4 · link (optional)

link.ts
await mem.link(a.id, b.id, "caused");
// edges make recall pull whole clusters
sdk surface

Small on purpose.

write()

Commit

Store a typed memory.

recall()

Retrieve

Ranked, hybrid, fast.

link()

Associate

Connect two memories.

forget()

Revoke

Tombstone a memory on-chain.