SDKs

The Shoof AI SDKs

Official clients for JavaScript and TypeScript, Python and PHP. Search, stream AI answers and show recommendations in a few lines, and index your records from your server.

Every plan, Free included.

// npm install @shoof/js-clientimport { ShoofClient } from "@shoof/js-client"; const client = new ShoofClient({  appId: "my-store",  apiKey: "shf_pub_…",}); const res = await client.search({  q: "waterproof jacket under 500",  facets: ["brand", "price"],});

What the SDKs do

  • JavaScript and TypeScript

    @shoof/js-client, for browsers and Node, with types for every request and response.

  • Python

    shoofai, for Python 3.9 and later, with only the standard library.

  • PHP

    shoofai/shoofai, for PHP 8.1 and later with curl.

  • Search, answers and recommendations

    Search, autocomplete, streamed AI answers with sources, related and trending items, and events.

  • An admin client

    Index records in batches, replace every record, and change settings, synonyms and rules, on your server.

  • Retries built in

    Rate-limited and failed requests are retried, and writes carry an idempotency key so a retry runs once.

FAQ

Questions, answered.

More in the docs
Which key goes in which client?

The search client takes a search key (shf_pub_…) or a secured key, which are safe in a browser. The admin client takes the admin key (shf_adm_…), which stays on your server. See API keys.

My language has no SDK. What now?

Call the REST API directly. It is described by an OpenAPI 3.1 spec, so you can generate a client from it.

See the difference for yourself

Free plan, no card needed.