@supermemory/tools on npm
Check out the NPM page for more details
Installation
Quick Comparison
| Approach | Use Case | Setup |
|---|---|---|
| User Profiles | Personalized LLM responses with automatic user context | Simple middleware |
| Memory Tools | AI agents that need explicit memory control | Tool definitions |
User Profiles with Middleware
Automatically inject user profiles into every LLM call for instant personalization.Memory saving is disabled by default. The middleware only retrieves existing memories. To automatically save new memories:
Memory Search Modes
Profile Mode (Default) - Retrieves the user’s complete profile:Custom Prompt Templates
Customize how memories are formatted. The template receivesuserMemories, generalSearchMemories, and searchResults (raw array for filtering by metadata):