@herd-labs/sdk
v0.10.0
Published
The public SDK exports `makeHerdClient` for listing, saving, relabeling, and deleting bookmarks.
Readme
Herd SDK
The public SDK exports makeHerdClient for listing, saving, relabeling, and deleting bookmarks.
makeHerdClient does not read environment variables or credentials. The caller supplies RpcClient.layerProtocolHttp, JSON RPC serialization, an HTTP client, and Scope, then calls the RPC method directly:
const program = Effect.gen(function* () {
const client = yield* makeHerdClient;
return yield* client["bookmarks.List"]({ objectTypes: ["action", "collection"] });
});Pass {} to list every category.
The package build first runs apps/rpc build:client, then bundles that prebuilt client artifact in place of the source @herd-labs/rpc/client. The artifact carries generated copies of the Drizzle-derived schemas, so the SDK ships no Drizzle code or table definitions. The emitted JavaScript and declarations exclude Domain handlers, repositories, services, and server startup code.
bun run --cwd packages/sdk build
bun run --cwd packages/sdk test