Mneme Graph is here. π§ β‘οΈ
The era of graph-native memory starts now.
mneme-cli@0.4.0 is live. Welcome to Mneme Graph.π
βΈ what just shipped
every Mneme project now has TWO new default tables, auto-provisioned at signup:
entities (id, kind, name, properties jsonb, embedding vector(1536))
relations (id, src_id, dst_id, kind, weight, properties jsonb)
indexes auto-added: btree on kind / src_kind / dst_kind, GIN on properties.
graph-structured memory, lives in the same Postgres schema as your pgvector tables. no separate graph db. no extra service.
βΈ try it in 30 seconds
$ npm i -g mneme-cli@latest
$ mneme
βΊ /entity add person βvitalikβ {βwalletβ:β0xd8da6β¦β}
β entity #1 person:vitalik
βΊ /entity add token βMNEMEβ
β entity #2 token:MNEME
βΊ /relate person:vitalik holds token:MNEME {βsinceβ:β2026-05-30β}
β edge #1 person:vitalik β[holds]β token:MNEME
βΊ /entity add person βjesseβ
βΊ /relate person:jesse created token:MNEME
βΊ /neighbors 2 hops=2
ββββββ¬βββββββββ¬ββββββββββ¬βββββββ
β id β kind β name β hops β
ββββββΌβββββββββΌββββββββββΌβββββββ€
β 1 β person β vitalik β 1 β
β 3 β person β jesse β 1 β
ββββββ΄βββββββββ΄ββββββββββ΄βββββββ
βΊ /path 1 3 max=3
β path found Β· 2 hop(s)
person:vitalik β token:MNEME β person:jesse
shortest path = recursive CTE with array-based cycle detection. undirected traversal follows edges in both directions. cycle-safe.
βΈ the killer move: hybrid retrieval
pure vector search misses entities that ARE related but donβt embed similarly to your query.
pure graph traversal misses fuzzy semantic matches.
solution: do both, then rank by sim Γ decay^hops.
await m.graph.semanticNeighbors({
embedding: queryEmbedding,
seed_k: 10,
hops: 2,
decay: 0.5,
});
one SQL roundtrip.
βΈ SDK surface
m.graph.addEntity({ kind, name, properties, embedding })
m.graph.addRelation({ src, dst, kind, weight, properties })
m.graph.neighbors(id, { hops, edge_kinds })
m.graph.path(srcId, dstId, { max_hops })
m.graph.semanticNeighbors({ embedding, seed_k, hops, decay })
m.graph.listEntities({ kind, name_like, limit })
βΈ what Mneme schemas look like now
memory β memories, documents, kvs, events (pgvector)
graph β entities relations hybrid retrieval (NEW)
streams β live Base events auto-INSERT
chat β schema-aware claude that knows ALL of the above
four primitives. one schema. one wallet. one prompt.
βΈ whatβs next
actions (write the chain β send / swap / vote / mint) lands next sprint.
mneme keeps shipping. every 72 hours.
CA:
0x3FcDbEBD5e7BaB79477cFDcA2CDCF6e904C27b07