@sesame-kit/core
v0.7.0
Published
SESAME smart-lock library: BLE + cloud transport, auth, crypto, device management. The library core of sesame-kit (CLI/serve/SDK live in the sesame-kit package). Unofficial.
Maintainers
Readme
@sesame-kit/core
SESAME smart-lock library — BLE + cloud transport, auth, crypto, device management.
This is the library core of sesame-kit.
For the full documentation, CLI reference, and design notes see the
root README.
Install
npm install @sesame-kit/coreRequires Node.js 20+.
Minimal example
import { SesameHub3 } from "@sesame-kit/core";
const hub = await SesameHub3.fromConfig();
await hub.connect();
try {
await hub.unlock("front-door");
} finally {
await hub.close();
}BLE direct control (no cloud):
import { SesameBle } from "@sesame-kit/core";
await SesameBle.use({ deviceUUID, secretKey }, async (lock) => {
await lock.unlock();
});License
MIT — see LICENSE. Portions from CANDY-HOUSE/biz3 (MIT) — see LICENSE.biz3.
