@cruxy/sdk
v0.2.0
Published
cruxy's own provider-agnostic LLM client — built over fetch, no vendor SDKs
Readme
@cruxy/sdk
cruxy's own provider-agnostic LLM client. No third-party vendor SDKs — the
HTTP transport, SSE streaming, and tool-call assembly are all first-party, built
over the platform fetch (Node 20+). zod validates wire input. One normalized
streaming event model means providers are interchangeable.
npm install @cruxy/sdkimport { createProvider } from "@cruxy/sdk";
const provider = createProvider({
provider: "cruxy",
apiKey, // passed in by the caller — the SDK never reads process.env
model: "auto",
});
for await (const event of provider.stream({
system: "You are helpful.",
messages: [{ role: "user", content: "Hello!" }],
})) {
if (event.type === "text_delta") process.stdout.write(event.text);
}The SDK takes config + apiKey as arguments; it never reads process.env
or touches config files. It is independently publishable.
License
MIT
