@wjmwjmwb/memme 0.1.1 → 0.1.2

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 +49 -16
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,28 +1,48 @@
1
1
  # MemMe Node.js SDK
2
2
 
3
- MemMe stores memory data in one SQLite file and uses the VexDB-Lite SQLite
4
- extension for vector search.
3
+ Local long-term memory for AI pets. MemMe keeps owner-global memory, per-pet
4
+ relationship memory, and fresh events in one SQLite file.
5
5
 
6
- ## Supported platforms
6
+ ```bash
7
+ npm install @wjmwjmwb/memme
8
+ ```
7
9
 
8
- Published packages currently support macOS and Linux on x64 and arm64. Windows
9
- publication is disabled because VexDB-Lite v0.0.17 does not provide a Windows
10
- SQLite extension asset.
11
-
12
- The extension is not bundled in the npm package. Download the matching trusted
13
- VexDB-Lite SQLite extension and pass its absolute path to the constructor:
10
+ ## AI-pet scope
14
11
 
15
12
  ```js
16
13
  const { MemoryStore } = require("@wjmwjmwb/memme");
17
14
 
18
- const store = MemoryStore.newMock(
19
- "memory.db",
20
- 384,
21
- "/opt/vexdb-lite/vexdb_lite.so",
15
+ const store = MemoryStore.newOpenai(
16
+ process.env.OPENAI_API_KEY,
17
+ "momo-memory.db",
18
+ );
19
+
20
+ // Shared owner memory.
21
+ await store.add("The owner has a severe peanut allergy.", "owner-001");
22
+
23
+ // Only Momo's relationship can retrieve this memory.
24
+ await store.add(
25
+ "Momo and the owner first met under the ginkgo tree.",
26
+ "owner-001",
27
+ "momo",
28
+ );
29
+
30
+ const memories = await store.search(
31
+ "What should I remember for Momo's birthday snack?",
32
+ "owner-001",
33
+ "momo",
34
+ null,
35
+ 5,
22
36
  );
23
37
  ```
24
38
 
25
- Existing applications can continue to use the environment variable:
39
+ ## Supported platforms
40
+
41
+ The published package supports macOS and Linux on x64 and arm64. Windows is not
42
+ published because VexDB-Lite v0.0.17 does not provide a Windows SQLite extension.
43
+
44
+ The extension is not bundled in the npm package. Download the matching trusted
45
+ VexDB-Lite SQLite extension and provide its absolute path:
26
46
 
27
47
  ```bash
28
48
  export MEMME_VEXDB_LITE_EXTENSION=/opt/vexdb-lite/vexdb_lite.so
@@ -32,5 +52,18 @@ export MEMME_VEXDB_LITE_EXTENSION=/opt/vexdb-lite/vexdb_lite.so
32
52
  const store = MemoryStore.newMock("memory.db", 384);
33
53
  ```
34
54
 
35
- Mobile and WASM publication remains paused until VexDB-Lite static registration
36
- uses the same SQLite instance as MemMe.
55
+ Or pass the extension path directly as the last constructor argument:
56
+
57
+ ```js
58
+ const store = MemoryStore.newMock(
59
+ "memory.db",
60
+ 384,
61
+ "/opt/vexdb-lite/vexdb_lite.so",
62
+ );
63
+ ```
64
+
65
+ Mobile and WASM publication remains paused until VexDB-Lite uses the same SQLite
66
+ instance as MemMe.
67
+
68
+ See the [main project README](https://github.com/vibeinging/MemMe) for the
69
+ architecture, PetMemBench results, privacy boundary, and roadmap.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wjmwjmwb/memme",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Edge-first AI memory engine powered by SQLite — vector search, knowledge graph, BM25, and forgetting curve in a single file",
5
5
  "keywords": ["ai", "memory", "embedding", "sqlite", "edge", "offline", "vector-database", "knowledge-graph", "rag", "llm"],
6
6
  "license": "Apache-2.0",
@@ -35,10 +35,10 @@
35
35
  "package.json"
36
36
  ],
37
37
  "optionalDependencies": {
38
- "memme-darwin-arm64": "0.1.1",
39
- "memme-darwin-x64": "0.1.1",
40
- "memme-linux-arm64-gnu": "0.1.1",
41
- "memme-linux-x64-gnu": "0.1.1"
38
+ "memme-darwin-arm64": "0.1.2",
39
+ "memme-darwin-x64": "0.1.2",
40
+ "memme-linux-arm64-gnu": "0.1.2",
41
+ "memme-linux-x64-gnu": "0.1.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@napi-rs/cli": "^2.18.0",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "scripts": {
48
48
  "artifacts": "napi artifacts",
49
- "build": "napi build --platform --release --cargo-cwd .",
50
- "build:debug": "napi build --platform --cargo-cwd .",
49
+ "build": "napi build --platform --release --cargo-cwd . --js-package-name memme",
50
+ "build:debug": "napi build --platform --cargo-cwd . --js-package-name memme",
51
51
  "prepublishOnly": "napi prepublish -t npm",
52
52
  "version": "napi version"
53
53
  }