Skip to content
PluginStats

@hilbras/sdk weekly downloads statistics

By hilbras · npm · AI SDKs

Provider-agnostic LLM client SDK — streaming, tool calling, embeddings, image generation, speech synthesis, transcription, reranking, circuit breaker, retry, reasoning normalization, cost enforcement, structured output with schema validation, type-safe to

View on npm Outdated · Oct 28, 2026

@hilbras/sdk has 1,322 recorded weekly downloads on npm, an increase of 721% over the past 30 days, ranking #1998 of 3,247 tracked listings.

Weekly downloads
1,322
Official API · Dec 5, 2026
7-day growth
+165%
+824 weekly downloads
30-day growth
+721%
+1.2K weekly downloads
90-day growth
+5648%
+1.3K weekly downloads
Rank
#1998
▲ 164 in 7 days

About @hilbras/sdk

<p align="center"> <img src="https://img.shields.io/badge/version-3.7.0-blue" alt="version"> <img src="https://img.shields.io/badge/license-MIT-green" alt="license"> <img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="node"> <img src="https://img.shields.io/badge/types-strict-blueviolet" alt="types"> <img src="https://img.shields.io/badge/tests-1939%20passing-brightgreen" alt="tests"> <img src="https://img.shields.io/badge/runtime%20deps-zero-brightgreen" alt="zero deps"> </p> <h1 align="center">@hilbras/sdk</h1> <p align="center"> <strong>Provider-agnostic AI execution engine for TypeScript.</strong><br> Streaming, tool calling, structured output, circuit breaker, retry, reasoning normalization, cost enforcement, plugin system, RBAC, SLA monitoring, A/B testing, and SSRF-safe provider registration — for OpenAI, Anthropic, Gemini, Azure, Groq, Ollama, Bedrock, Vertex AI, HuggingFace, Deepgram, ElevenLabs, Voyage AI, and Cohere Rerank. Zero runtime dependencies. </p>

Why @hilbras/sdk?

Most LLM SDKs just wrap one provider's API. @hilbras/sdk is an AI Execution Engine that optimizes, controls, validates, and observes every request, even when you use only one provider.

Application
     │
     ▼
┌───────────────────────────────────────────────┐
│              @hilbras/sdk                     │
│                                               │
│  Model Router          Execution Policies     │
│  Structured Output     Observability Hooks    │
│  Provider Abstraction  SSRF-safe Registration │
│  Streaming & Tools     Reasoning Normalizer   │
│  Circuit Breaker       Retry & Backoff        │
│  Token Counting        Cost Enforcement       │
│  Prompt Caching        Auto-Repair Output     │
│  Middleware Pipeline   Typed Errors           │
│  Plugin System         RBAC Access Control    │
│  SLA Monitoring        A/B Prompt Testing     │
│  Cost Alerts           Audit Logging          │
└──────────────────────┬────────────────────────┘
                       │
          ┌────────────┼────────────┐
          ▼            ▼            ▼
       OpenAI      Anthropic      Gemini
          │            │            │
        Groq         Ollama       Azure

Zero runtime dependencies. Runs everywhere: Node 18+, Bun, Deno, browsers, VS Code extensions, CLIs, edge runtimes.


Install

npm install @hilbras/sdk
React (optional)
npm install @hilbras/sdk

Quick start

npm install @hilbras/sdk
import { HilbrasClient } from "@hilbras/sdk";

const client = new HilbrasClient();

// One-line setup using built-in catalog (OpenAI, Anthropic, Gemini, Groq, etc.)
client.addProviderFromCatalog("openai", "gpt-4o", process.env.OPENAI_API_KEY!);

// Streaming
for await (const chunk of client.stream({
  provider: "OpenAI",
  model: "gpt-4o",
  messages: [{ role: "user", content: "Hello!" }],
})) {
  if (chunk.type === "text") process.stdout.write(chunk.text);
}

// Non-streaming
const reply = await client.complete({
  provider: "OpenAI",
  model: "gpt-4o",
  messages: [{ role: "user", content: "Hello!" }],
});

Configuration

Per-client tokenizer

By default, token counting uses a heuristic word-based estimator. Pass a custom tokenizer to scope it to a single client instance:

import { HilbrasClient } from "@hilbras/sdk";

// Your BPE / tiktoken / ollama tokenizer
const tokenizer = {
  count(text: string): number {
    return yourTokenizer.encode(text).length;
  },
};

const client = new HilbrasClient({ tokenizer });

// Every request on this client uses your tokenizer
const reply = await client.complete({
  provider: "openai",
  model: "gpt-4o",
  messages: [{ role: "user", content: "Hello!" }],
});

v2.5.0+: The global setTokenizer() / getTokenizer() singletons are deprecated. Use the per-client tokenizer config instead to avoid cross-client interference.

Middleware

Wrap the transport with middleware for auth, logging, or custom transforms. Middleware runs on every request (including retries) for the client:

import { HilbrasClient } from "@hilbras/sdk";
import { authMiddleware, loggingMiddleware, composeMiddlewares } from "@hilbras/sdk";

const client = new HilbrasClient({
  middleware: composeMiddlewares(
    authMiddleware(() => process.env.API_KEY!),
    loggingMiddleware(console),
  ),
});

// All requests go through both middleware layers
const reply = await client.complete({
  provider: "openai",
  model: "gpt-4o",
  messages: [{ role: "user", content: "Hello!" }],
});

You can also use MiddlewareTransport directly to wrap any transport:

import { MiddlewareTransport, FetchTransport } from "@hilbras/sdk";

const transport = new MiddlewareTransport(
  new FetchTransport(),
  composeMiddlewares(authMiddleware(() => "my-key")),
);

Configuration

v3.3 adds a typed configuration resolver with explicit precedence and secret-safe diagnostics:

import { HilbrasClient, createRuntimeSource } from "@hilbras/sdk";

const client = new HilbrasClient({
  configSources: [
    createRuntimeSource({ temperature: 0.3, maxRetries: 2 }),
  ],
});

console.log(client.getConfigDiagnostics());

See Configuration and the v3.2 migration guide.


Features at a glance…

Description from the npm listing.

  • llm
  • ai-sdk
  • provider-agnostic
  • openai
  • anthropic
  • claude
  • gemini
  • azure-openai
  • groq
  • ollama
  • streaming
  • tool-calling
  • function-calling
  • circuit-breaker
  • retry
  • cost-tracking
  • budget-enforcement
  • observability
  • structured-output
  • typescript

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@hilbras/sdk weekly downloads on npm, last 90 days: 1,322 weekly downloads as of Dec 5, 2026, +5648% over 90 days.@hilbras/sdkWeekly downloads on npm · Last 90 days1,322downloads / week+5648% over 90 days01K2K3K4K5K6K7K8KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@hilbras/sdk weekly downloads on npm, last 90 days: 1,322 weekly downloads as of Dec 5, 2026, +5648% over 90 days.

7/30/90-day growth

@hilbras/sdk weekly downloads growth on npm: +165% over 7 days, +721% over 30 days, +5648% over 90 days.@hilbras/sdkWeekly downloads growth on npm1,322downloads / week now7-day growth+824 weekly downloads+165%30-day growth+1,161 weekly downloads+721%90-day growth+1,299 weekly downloads+5648%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@hilbras/sdk weekly downloads growth on npm: +165% over 7 days, +721% over 30 days, +5648% over 90 days.

Ranking history

@hilbras/sdk npm ranking history: currently #1998 (by weekly downloads).@hilbras/sdknpm ranking · by weekly downloads · Last 90 days#1998current rank#600#800#1000#1200#1400#1600#1800#2000#2200#2400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 23 observations · Updated Dec 5, 2026pluginstats.com
@hilbras/sdk npm ranking history: currently #1998 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 100, #18 (overall #1,998)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 11, #6 (overall #206)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for @hilbras/sdk
Date (UTC)Weekly downloadsChange vs. previous
1,322-355
1,677-7
1,684+301
1,383+31
1,352+48
1,304+46
1,258+760
498+330
168+52
1160
116-19
135+18
117-117
234—

Similar npm AI SDKs plugins

All 20 @hilbras/sdk alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@hilbras/sdk. First seen Oct 16, 2026; last successful collection Oct 28, 2026. See the methodology.