@mnemehq/protocol
v0.1.1
Published
The Mneme Protocol — canonical types and schemas for the open, user-sovereign memory layer for AI.
Maintainers
Readme
@mnemehq/protocol
The canonical types and runtime schemas for the Mneme Protocol — the open, versioned spec for user-sovereign AI memory.
This package is intentionally tiny and dependency-light. It contains:
- The
MemoryRecordschema and supporting types (MemoryKind,Payload,MemoryMetadata,MemoryLifecycle) - The
MnemeStoreverb interface that every Protocol implementation must satisfy - Branded ID types (
MemoryId,OwnerId,DeviceId) with Zod validators - The protocol version constant
- The
MnemeErrorclass and its closed set of error codes
You almost never import this package directly. Use @mnemehq/sdk for the developer-facing API. Import @mnemehq/protocol only when you are:
- Building an alternative implementation of the Mneme Protocol
- Validating a
MemoryRecordreceived over the wire - Writing tools that need the canonical types (eval harnesses, codegen, etc.)
Reading the spec
The wire-level, vendor-neutral specification lives at docs/protocol/. This package is the TypeScript reflection of that spec — they MUST be kept in lockstep.
License
Apache-2.0.
