@lynq/store-sqlite 0.1.0 → 0.1.1

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 +44 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @lynq/store-sqlite
2
+
3
+ SQLite-backed Store implementation for [lynq](https://www.npmjs.com/package/@lynq/lynq) MCP framework.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @lynq/store-sqlite @lynq/lynq better-sqlite3
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import Database from "better-sqlite3";
15
+ import { createMCPServer } from "@lynq/lynq";
16
+ import { sqliteStore } from "@lynq/store-sqlite";
17
+
18
+ const db = new Database("store.db");
19
+
20
+ const server = createMCPServer({
21
+ name: "my-server",
22
+ version: "1.0.0",
23
+ store: sqliteStore({ db }),
24
+ });
25
+
26
+ // In tool handlers: c.store.get(key), c.store.set(key, value, ttl?)
27
+ ```
28
+
29
+ The table is created automatically on first use.
30
+
31
+ ## Options
32
+
33
+ | Option | Type | Default | Description |
34
+ |---|---|---|---|
35
+ | `db` | `Database` | required | better-sqlite3 Database instance |
36
+ | `table` | `string` | `"lynq_store"` | Table name |
37
+
38
+ ## Documentation
39
+
40
+ [https://hogekai.github.io/lynq/](https://hogekai.github.io/lynq/)
41
+
42
+ ## License
43
+
44
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynq/store-sqlite",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "SQLite Store implementation for lynq MCP framework.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "@lynq/lynq": "^0.8.0"
17
+ "@lynq/lynq": "^0.8.4"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "better-sqlite3": "^11.0.0"