JSPM

  • Created
  • Published
  • Downloads 2255
  • Score
    100M100P100Q116398F
  • License Apache-2.0

A fast object-first data engine for applications and AI agents.

Package Exports

  • @thingd/sdk
  • @thingd/sdk/client
  • @thingd/sdk/memory
  • @thingd/sdk/types

Readme

@thingd/sdk

npm

Node.js SDK for thingd — a fast object-first data engine for applications and AI agents.

Install

npm install @thingd/sdk

Quick 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/