Docs · SDK
Installation
Node 18 or newer. No runtime dependencies beyond the platform’s own crypto and fetch.
Install
sh
npm install liorith-registry-sdkThe package ships ESM and TypeScript declarations. Signing uses node:crypto, so it runs on the Node runtime - on Next.js, set export const runtime = 'nodejs' on any route that signs.
Next.js and Turbopack
If you consume the SDK through a local path or a symlink, Turbopack needs to be told that following it out of the app directory is intended. Otherwise the build fails to resolve the package.
next.config.tsts
import path from 'path';
export default {
turbopack: { root: path.resolve(__dirname, '..') },
};Verify the install
A lookup needs no configuration at all, which makes it the quickest way to confirm the package resolves and the API is reachable.
sh
npx liorith-verify check --domain demo.liorith.netIf this prints a JSON object, the package works. Setting up signing is the next step and needs a key pair and a site id.