@neighborbook/biz-sdk
v0.1.1
Published
Typed client and price sheet for the Neighbor.Biz /v1 plugin API.
Readme
@neighborbook/biz-sdk
The typed client for the Neighbor.Biz /v1 plugin API. Zero dependencies, esm and cjs,
types included.
pnpm add @neighborbook/biz-sdkimport { NeighborBizClient, PRICE_SHEET } from '@neighborbook/biz-sdk';
const biz = new NeighborBizClient({ hostKey: process.env.NEIGHBORBIZ_HOST_KEY! });
const { cards } = await biz.feed({
viewerToken,
lat,
lng,
radiusMiles: 5,
limit: 3,
});Call it from your server. The host key never belongs in a browser bundle, and no viewer identity crosses the boundary: you send a rotating token, not a user id.
PRICE_SHEET is the one source of prices. Views, dwell and skips are free and always
will be.
The full host contract, including the event kinds you are expected to report and what each one costs, is in docs/hosts.md.
MIT.
