Licence
Apache-2.0
Version
0.40.3
Deps
2
Size
183 kB
Vulns
0
Weekly
2.3K
@thingd/sdk
Node.js SDK for thingd — a fast object-first data engine for applications and AI agents.
Install
npm install @thingd/sdkQuick start
import { ThingD } from "@thingd/sdk";
const db = await ThingD.open();
await db.put("notes", { id: "hello", text: "Hello world" });
const obj = await db.get("notes", "hello");
console.log(obj); // { id: "hello", text: "Hello world", collection: "notes", version: 1, ... }Subpath imports
// Lightweight HTTP client (browser + Node.js, zero dependencies)
import { ThingD } from "@thingd/sdk/client";
// Pure in-memory store (browser + Node.js, zero dependencies)
import { ThingD } from "@thingd/sdk/memory";
// Types only (for type-safe dependency injection)
import type { ThingDConnection } from "@thingd/sdk/types";API
Full reference: docs/api-spec/