Skip to content
PluginStats

@browserstack/ai-sdk weekly downloads statistics

By browserstack (6 listings) · npm · AI SDKs

BrowserStack AI SDK for Node.js — LLM observability, evaluation, and tracing

View on npm Fresh · Dec 6, 2026

@browserstack/ai-sdk has 4,895 recorded weekly downloads on npm, an increase of 21.1% over the past 30 days, ranking #1540 of 3,247 tracked listings.

Weekly downloads
4,895
Official API · Dec 5, 2026
7-day growth
-24.4%
-1.6K weekly downloads
30-day growth
+21.1%
+854 weekly downloads
90-day growth
+211%
+3.3K weekly downloads
Rank
#1540
▼ 136 in 7 days

About @browserstack/ai-sdk

@browserstack/ai-sdk

A TypeScript/NodeJS SDK for AI application observability, testing, and evaluation.

Requires Node.js >= 18.

Installation

npm install @browserstack/ai-sdk@beta

Quick Start

import { AISDK } from '@browserstack/ai-sdk';

// Initialize the client
const client = new AISDK({
  publicKey: 'your-public-key',
  secretKey: 'your-secret-key',
});

// Create a trace
const trace = client.trace({
  name: 'user_login_flow',
  metadata: {
    testSuite: 'authentication_tests',
    testFile: 'auth.test.js',
  },
  tags: ['auth', 'critical'],
});

// Create spans
const loginSpan = trace.span({
  name: 'navigate_to_login',
  input: { url: '/login' }
});

loginSpan.end({
  output: { pageLoaded: true, loadTime: 250 }
});

// Create events
trace.event({
  name: 'assertion_check',
  metadata: {
    assertion: 'Login button should be visible',
    passed: true,
    expected: 'button visible',
    actual: 'button visible'
  }
});

// Cleanup
await client.flushAsync();
await client.shutdownAsync();

Auto-Instrumentation

Automatically trace LLM calls without code changes:

node --require @browserstack/ai-sdk/instrument app.js

Configuration

The client can be configured using environment variables or constructor options:

Environment Variables
AISDK_PUBLIC_KEY=your_public_key
AISDK_SECRET_KEY=your_secret_key
Memory and backpressure

The SDK holds trace data in memory between your call and a successful delivery. When ingestion is slow or failing, that held data is bounded by a byte budget — once the budget is reached the SDK sheds the oldest traces rather than growing until the process is killed.

VariableDefaultWhat it controls
AISDK_MAX_HELD_BYTES104857600 (100 MB)Total estimated bytes held across the queue and in-flight requests. The one knob to change if you need a different memory ceiling.
AISDK_MAX_QUEUE_SIZE1000Items held before delivery. An independent cap — whichever binds first wins.
AISDK_MAX_SOCKETS30Connection pool size.
AISDK_BATCH_SIZE15Items per request.
AISDK_BATCH_TIMEOUT_MS5000Longest a partial batch waits before being sent.
AISDK_MAX_RETRIES3Retries after a failed attempt, so 4 total attempts.
AISDK_REQUEST_TIMEOUT_MS30000Per-attempt request timeout. 0 disables it entirely.

Sizing your container. AISDK_MAX_HELD_BYTES bounds the SDK's tracked payload bytes, not the process. Expect real RSS of roughly 1.8x the budget — a sustained-failure load test against the 100 MB default settles flat at ~180 MB. Budget for at least 2x on top of your application's own footprint.

Half the budget is reserved for in-flight requests and half for the queue, so a brief slowdown is absorbed rather than shed: queued items can still be delivered when the endpoint recovers, while in-flight ones are pinned until their retries finish.

Set plain byte counts. Suffixes are not parsed — AISDK_MAX_HELD_BYTES=100MB reads as 100 bytes, not 100 megabytes, and 1e6 reads as 1. Values below 64 KB are refused with a [CONFIG_REJECTED] line and the default is used instead.

Span attribute limits

OpenTelemetry defaults to 128 attributes per span, which a request advertising many tools (or a long agentic loop) can approach. The SDK raises this ceiling to 10000 by default — a backstop against an unbounded producer, not a payload guard.

VariableWhat it controls
OTEL_SPAN_ATTRIBUTE_COUNT_LIMITSet to a number to use your own span attribute count limit instead of the SDK's default.
OTEL_ATTRIBUTE_COUNT_LIMITSame override; OpenTelemetry's general (non-span-specific) variable, read when the one above is unset.
Reading the logs

Four lines are printed by default, without AISDK_DEBUG, because they mean trace data is being discarded. Each is rate-limited to one line per minute and carries suppressed=N for the occurrences it stands for.

LineMeaningWhat to do
[BUDGET_SHED]The byte budget was reached; oldest traces dropped.Ingestion is not keeping up. Check endpoint health first — raising the budget only delays this.
[QUEUE_OVERFLOW]The item cap was reached.Raise AISDK_MAX_QUEUE_SIZE, or check endpoint health.
[INFLIGHT_CAP]Dispatch paused because in-flight bytes are at their ceiling.Normal backpressure. Sustained appearances mean ingestion is degraded.
[DROP]A batch was discarded after exhausting its retries.Delivery was never confirmed. The data may still have reached the server — X-Batch-Id lets ingestion dedupe a retried batch — so treat this as unconfirmed, not as certain loss.

Everything else, including per-request diagnostics, requires AISDK_DEBUG=true.

Constructor Options
const client = new AISDK({
  publicKey: 'your_public_key',
  secretKey: 'your_secret_key',
  environment: 'production',
  flushAt: 20,
  flushInterval: 10000,
});

Description from the npm listing.

  • ai-sdk
  • testing
  • observability
  • tracing
  • nodejs
  • typescript
  • llm
  • evaluation
  • browserstack

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

@browserstack/ai-sdk weekly downloads on npm, last 90 days: 4,895 weekly downloads as of Dec 5, 2026, +211% over 90 days.@browserstack/ai-sdkWeekly downloads on npm · Last 90 days4,895downloads / week+211% over 90 days02K4K6K8K10KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@browserstack/ai-sdk weekly downloads on npm, last 90 days: 4,895 weekly downloads as of Dec 5, 2026, +211% over 90 days.

7/30/90-day growth

@browserstack/ai-sdk weekly downloads growth on npm: -24.4% over 7 days, +21.1% over 30 days, +211% over 90 days.@browserstack/ai-sdkWeekly downloads growth on npm4,895downloads / week now7-day growth-1,581 weekly downloads-24.4%30-day growth+854 weekly downloads+21.1%90-day growth+3,319 weekly downloads+211%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@browserstack/ai-sdk weekly downloads growth on npm: -24.4% over 7 days, +21.1% over 30 days, +211% over 90 days.

Ranking history

@browserstack/ai-sdk npm ranking history: currently #1540 (by weekly downloads).@browserstack/ai-sdknpm ranking · by weekly downloads · Last 90 days#1540current rank#1200#1300#1400#1500#1600#1700Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@browserstack/ai-sdk npm ranking history: currently #1540 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 77, #20 (overall #1,540)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 6, #20 (overall #120)
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 (170)
Recent weekly downloads observations for @browserstack/ai-sdk
Date (UTC)Weekly downloadsChange vs. previous
4,895-31
4,926-10
4,936+66
4,870-76
4,946-775
5,721-789
6,510+34
6,476-74
6,550-288
6,838-580
7,418-514
7,932+164
7,768+39
7,729—

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/@browserstack/ai-sdk. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.