Skip to content

@cratebase/extras

@cratebase/client now has this surface built in — client.vector, client.llm, client.mcp, client.queue, and client.presence — so projects on the first-party SDK need nothing extra. @cratebase/extras is for projects staying on the official pocketbase SDK that still want these features.

@cratebase/extras is a small companion npm package, versioned independently of the server, wrapping the AI endpoints above in ergonomic client calls: nearestTo(pb, collection, field, vector, opts) for vector search, chat(pb, messages, { onDelta }) for the LLM gateway (handling the llm_chunk realtime subscription for you), getToolSchema(s) for function-calling setups, enqueue(pb, queue, payload, opts) for the Queue plugin, and trackPresence for the kind of presence-collection pattern the kanban example implements by hand.