remembra 0.9.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  TypeScript/JavaScript SDK for [Remembra](https://remembra.dev) - the AI Memory Layer.
4
4
 
5
+ [![npm version](https://badge.fury.io/js/remembra.svg)](https://www.npmjs.com/package/remembra)
6
+ [![PyPI version](https://badge.fury.io/py/remembra.svg)](https://pypi.org/project/remembra/)
7
+
8
+ ## What's New in v0.12.0
9
+
10
+ - **👤 User Profiles** — Profile management with avatars and preferences
11
+ - **🧠 Smart Auto-Forgetting** — Human-like memory that naturally fades
12
+ - **⏰ Event-driven Expiry** — `expires_at` field for precise lifecycle control
13
+ - **🔒 Strict Mode 410 GONE** — Expired memories return proper HTTP 410
14
+ - **🌐 Browser Extension** — Access memories from any webpage
15
+
16
+ > **Note:** The TypeScript SDK is for client-side usage. For AI agent setup (Claude, Codex, Cursor), use the Python package: `pip install remembra && remembra-install --all`
17
+
5
18
  ## Installation
6
19
 
7
20
  ```bash
@@ -94,11 +107,19 @@ Recall relevant memories.
94
107
  const result = await memory.recall('Who is John?', {
95
108
  limit: 10,
96
109
  threshold: 0.5,
110
+ slim: false, // Set true for 90% smaller response (context only)
97
111
  });
98
112
 
99
113
  console.log(result.context); // Synthesized context
100
- console.log(result.memories); // Individual memories
101
- console.log(result.entities); // Related entities
114
+ console.log(result.memories); // Individual memories (omitted if slim=true)
115
+ console.log(result.entities); // Related entities (omitted if slim=true)
116
+ ```
117
+
118
+ **Slim mode** (v0.10.1+): For token-constrained environments, use `slim: true` to get only the context string:
119
+
120
+ ```typescript
121
+ const result = await memory.recall('Who is John?', { slim: true });
122
+ // Returns just: { context: "John is the CEO of Acme Corp." }
102
123
  ```
103
124
 
104
125
  #### `ingestConversation(messages, options?)`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remembra",
3
- "version": "0.9.0",
3
+ "version": "0.12.0",
4
4
  "description": "TypeScript/JavaScript SDK for Remembra - AI Memory Layer",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",