@thingd/native 0.31.0 → 0.32.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.
package/README.md CHANGED
@@ -1,45 +1,7 @@
1
- # thingd-native
1
+ # @thingd/native
2
2
 
3
- [![npm downloads (native)](https://img.shields.io/npm/dm/thingd-native?label=downloads&logo=npm&color=ff6a00)](https://www.npmjs.com/package/thingd-native)
4
- [![npm version (native)](https://img.shields.io/npm/v/thingd-native?label=version&logo=npm&color=ff6a00)](https://www.npmjs.com/package/thingd-native)
3
+ [![npm](https://img.shields.io/npm/v/@thingd/native?label=@thingd/native&logo=npm&color=ff6a00)](https://www.npmjs.com/package/@thingd/native)
5
4
 
6
- Native Node.js binding for `thingd`a fast object-first data engine for applications and AI agents.
5
+ Native Node.js binding for [thingd](https://github.com/sayanmohsin/thingd)wraps `crates/thingd` (published on crates.io as `thingd`).
7
6
 
8
- This package provides the native SQLite persistence layer for the thingd SDK. It is currently private and opt-in, loaded only when `driver: "native"` is requested.
9
-
10
- This package is intentionally private and non-publishable right now. The public package remains `thingd`.
11
-
12
- Current shape:
13
-
14
- ```txt
15
- thingd
16
- TypeScript public API
17
- ThingStore interface
18
- loads this package only for driver: "native"
19
-
20
- thingd-native
21
- napi-rs binding package
22
- wraps crates/thingd-core (published on crates.io)
23
- exposes low-level JSON bridge methods
24
- ```
25
-
26
- Build locally:
27
-
28
- ```bash
29
- pnpm --filter thingd-native build
30
- ```
31
-
32
- Then use it through the public SDK:
33
-
34
- ```ts
35
- import { ThingD } from "thingd";
36
-
37
- const db = await ThingD.open({
38
- path: "./thingd.db",
39
- driver: "native",
40
- });
41
- ```
42
-
43
- The native package should not define a separate app-facing API. It should satisfy the same SDK behavior tested in `packages/thingd/test`.
44
-
45
- Do not publish this package until it has a prebuild strategy, migration story, and CI coverage for supported Node.js/platform combinations.
7
+ This package is an internal dependency of `@thingd/sdk` and provides the native SQLite-backed store via napi-rs. You don't need to install it directly `@thingd/sdk` pulls it in automatically when using `driver: "native"`.
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@thingd/native",
3
- "version": "0.31.0",
3
+ "version": "0.32.2",
4
4
  "description": "Native Node.js binding for thingd — a fast object-first data engine for applications and AI agents.",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
- "access": "public",
8
- "provenance": true
7
+ "access": "public"
9
8
  },
10
9
  "author": "Sayan Mohsin",
11
10
  "license": "Apache-2.0",