memryapi-sdk
v1.0.0
Published
Official TypeScript SDK for MemryAPI — Memory-as-a-Service for AI Applications.
Maintainers
Readme
MemryAPI SDK
The Sovereign Persistence Layer for AI Agents.
Installation
npm install memryapi-sdkBasic Usage
import { MemryAPI } from 'memryapi-sdk';
const memory = new MemryAPI(process.env.MEMRY_API_KEY);
// Remember a fact
await memory.remember('user-123', 'I prefer dark chocolate over milk chocolate.');
// Recall based on context
const { results } = await memory.recall('user-123', 'What kind of chocolate do I like?');
console.log(results[0].content);Production & Privacy
PII Masking (Paranoid Mode)
Mask sensitive information before it touches any cloud provider.
const memory = new MemryAPI(process.env.MEMRY_API_KEY, {
privacyLevel: 'paranoid'
});Context Steering
Influence agent behavior with persistent rules.
// Get a system prompt with relevant memories and steering
const { system_prompt } = await memory.recall('user-123', 'Next steps?', {
format: 'prompt'
});License
MIT
