Braintrust SDK
A strong pick. 3rd of 9 LLM evals and tracing.
Braintrust SDK is the TypeScript client for Braintrust, a hosted service for evals and tracing that is not open source. Its offline evals and CI checks are among the best in the category, and the company is well funded. You need to accept a paid platform you can't self-host, plus a cloud breach in May 2026 that exposed stored customer API keys.
Best for: Product teams that want polished offline evals, CI checks and prompt iteration on a managed platform, and don't need to self-host.
Scores
Overall7.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is a strong pick for teams that value managed offline evals and CI checks and accept a closed, hosted backend. Langfuse leads on downloads and offers open source and self-hosting, which suits more teams. The 2026 breach and the vendor lock-in keep it below the category default.
- peers Langfuse downloadsLast4Weeks: Langfuse leads with 18.1M downloads
- benchmarkingagents.com/tools-compared: Self-hosting is Enterprise-only; offline evals are its strongest feature
- securityweek.com/ai-firm-braintrust-prompts-api-key-rotation-after-data-breach: 2026 breach of the platform
GPT-6.2 Sol: 7.8, likely 6.7 to 8.8
Braintrust is a strong new-project choice when a TypeScript team wants regression evals in code and live traces in the same platform. Langfuse is the stronger default for teams that prioritize a self-hostable open-source backend, and Promptfoo is a better fit for standalone CI evals. Braintrust’s proprietary backend and recent credential incidents leave some uncertainty about how well it fits teams with strict data controls.
- github.com/supabase/supabase/blob/master/apps/studio/evals/README.md: Shows code-first regression evals and production tracing working together.
- npm versionsLastYear, peers: Frequent stable releases and strong install growth in a competitive category.
- github.com/langfuse/langfuse: Documents a self-hostable platform for tracing and evals.
- thoughtworks.com/radar/languages-and-frameworks: Thoughtworks reports using Promptfoo for agent evals and CI gates.
- braintrust.dev/blog/security-data-control: Documents the managed control plane and customer-cloud deployment option.
- github.com/braintrustdata/braintrust-sdk-javascript/security/advisories/GHSA-h8xp-g5cq-35xw: Documents a patched credential-logging flaw relevant to teams collecting traces.
Needed by many4.6
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Evals and tracing matter to the large and growing group of developers who build LLM features, but that is still a minority of JavaScript work. This SDK only pays off for people who adopt the Braintrust platform, which narrows it a little further.
- category job: Only teams shipping LLM features need evals and tracing
- github description: Tracing and evals library tied to the Braintrust service
GPT-6.2 Sol: 4.2, likely 3.1 to 5.5
The SDK serves teams shipping LLM features across several providers and JavaScript runtimes. Its combined eval and tracing workflow is most relevant to teams willing to use Braintrust as their shared backend. A 2026 survey of production AI teams found that many still use in-house eval pipelines, and that sample leaves the share of all JavaScript developers uncertain.
- inngest.com/blog/ai-in-production-report-2026: 35% of production AI respondents reported doing no evals, and most of those doing evals built their own pipeline.
- braintrust.dev/docs/sdks/typescript/migrations/v2-to-v3: Documents Node.js, browser, and edge builds.
- braintrust.dev/blog/security-data-control: Braintrust operates the control plane even with a customer-cloud data plane.
Helps a lot8.0
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
An independent comparison calls its offline eval tooling the strongest in its class, and praises its CI integration and prompt playground. The same source rates its production tracing below Langfuse and Arize. Much of the value lives in the closed web UI, and the SDK is not useful without the service.
- benchmarkingagents.com/tools-compared: Best-in-class offline evals and CI; tracing less mature than Langfuse or Arize
- langfuse.com/compare/braintrust: Competitor's view: Langfuse is stronger on open source and production traces
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 8.4, likely 7.3 to 9.3
Version 3.44.0 combines typed scorers, local and CI evals, automatic provider tracing, and OpenTelemetry support. Supabase shows how those pieces work together with a tracked dataset and live traces. Provider coverage varies by API, and the available evidence gives limited confidence about runtime overhead or how reliably coding agents configure tracing.
- github.com/braintrustdata/braintrust-sdk-javascript/releases/tag/braintrust@3.44.0: Stable release adds LangChain capture controls and fixes Vercel AI SDK v7 attachment logging.
- github.com/supabase/supabase/blob/master/apps/studio/evals/README.md: Documents local and CI runs, custom scorers, and live-trace evals.
- github.com/braintrustdata/braintrust-sdk-javascript/blob/main/integrations/otel-js/README.md: Documents OpenTelemetry span export and trace-context interoperability.
- github.com/braintrustdata/braintrust-sdk-javascript/issues/2100: Tracks a gap in automatic instrumentation for direct Together AI SDK calls.
- modern-datatools.com/compare/arize-phoenix-vs-braintrust-vs-langfuse: Independent comparison identifies CI score gates as a distinguishing part of Braintrust’s workflow.
Holds up over time7.6
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Activity is very high: 923 commits, 103 releases, 1823 merged pull requests and 84 contributors. An $80M Series B in 2026 funds the company behind it. The risk is lock-in to one vendor's closed backend, and the major version is already 3.x, which points to some breaking changes.
- github commitsLastYear / releasesLastYear: 923 commits and 103 releases in the last year
- siliconangle.com/2026/02/17/braintrust-breaks-80m-series-b-funding-round-become-observability-layer-ai: $80M Series B at an $800M valuation
- npm latestVersion: Version 3.44.0, released recently
GPT-6.2 Sol: 7.7, likely 6.5 to 8.8
The core npm package published 63 versions in a year, and the company announced Series B funding in 2026. The repository’s 923 commits cover several JavaScript packages, and the people authorized to approve releases are only partly visible. The v3 templating change and the upcoming v4 Node.js and tracing changes show that major upgrades can take work.
- npm versionsLastYear, npm latestPublishedAt, github commitsLastYear: 63 package versions, a November 11 stable publish, and 923 commits across the repository.
- braintrust.dev/blog/announcing-series-b: Confirms 2026 Series B funding.
- github.com/braintrustdata/braintrust-sdk-javascript/actions/runs/32056493679: Shows a named reviewer approving a stable publish.
- braintrust.dev/docs/sdks/typescript/migrations/v2-to-v3: Nunjucks users had to add and register a separate package in v3.
- github.com/braintrustdata/braintrust-sdk-javascript/blob/main/docs/migration-v3-to-v4.md: The v4 migration guide documents a higher Node.js minimum and changes to logging and trace propagation.
Used widely6.6
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Downloads rose about 9.8 times in a year, to 11.1M per 4 weeks, well above the 4.1 median. That is second in the category, behind Langfuse at 18.1M. Many of these installs probably come from CI and from enterprise build servers. The repository has only 32 stars, and there are no Bluesky posts and no dependents count, so independent signs of how many projects use it are thin.
- npm downloadsLast4Weeks: 11.08M now, against 1.13M a year ago
- medianDownloadsRatio: Its ratio of about 9.8 beats the median of 4.1
- github stars: Only 32 stars on the SDK repository
GPT-6.2 Sol: 6.2, likely 4.5 to 7.6
Four-week downloads rose to 11.1 million from 1.13 million, about 9.8 times year over year. That beats the 4.1 times catalog baseline and trails Langfuse and Promptfoo on growth. CI and downstream integrations add installs, and ecosyste.ms provides no dependent count. Stack Overflow’s optional observability question puts Braintrust at 5.8% of respondents, ahead of Promptfoo at 5.3% and behind Langfuse at 15.2%.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: Braintrust grew 9.8 times, Promptfoo 15.2 times, and Langfuse 58.9 times.
- dependents, github stars, bluesky posts: No ecosyste.ms count, 32 repository stars, and no Bluesky posts linking to this repository in the sample.
- github.com/mastra-ai/mastra/blob/main/observability/braintrust/package.json: Mastra’s Braintrust integration declares the SDK as a dependency.
- survey.stackoverflow.co/2026/ai/data/ai-obs: 132 of 2,277 respondents to the optional question reported using Braintrust.
Vouched for7.5
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Several well-known companies are named as customers, including Notion, Replit, Cloudflare, Ramp and Dropbox, and major investors back it. Independent comparisons rate its eval experience highly. Most write-ups come from vendors, and there is no data on satisfaction from developer surveys.
- braintrust.dev/blog/announcing-series-b: Names Notion, Replit, Cloudflare, Ramp and Dropbox as customers
- securityweek.com/ai-firm-braintrust-prompts-api-key-rotation-after-data-breach: Breach report confirms that large firms store keys in Braintrust
- benchmarkingagents.com/tools-compared: Independent site praises its eval developer experience
GPT-6.2 Sol: 8.0, likely 6.8 to 9.0
Supabase documents Braintrust in CI and on live Studio Assistant traces. Gusto Engineering describes using it to score generated JSX, and Vercel documents automatic AI SDK tracing and a Marketplace integration. These are concrete use cases, with limited evidence on SDK satisfaction, retention, or performance against peers.
- github.com/supabase/supabase/blob/master/apps/studio/evals/README.md: A downstream team documents its CI and production eval workflow.
- engineering.gusto.com/eval-driven-design-systems-part-2-5b989d492281: Gusto Engineering describes experiments with deterministic scorers and real engineer requests.
- vercel.com/i/what-are-llm-evals-developers-primer: Vercel documents native Marketplace integration and AI SDK tracing.
Safe5.8
How safe is it to depend on?
Claude Opus 5.5: 5.5, likely 4.5 to 7.0
The SDK has no OSV advisories and a permissive licence. It does pull in 28 dependencies, and there is no Scorecard data. The bigger risk is the service: in May 2026 an attacker accessed one of its AWS accounts and exposed stored customer AI provider keys. Braintrust found it within a day and told every customer to rotate their keys.
- advisories total: No known advisories for the package
- npm dependencies: 28 runtime dependencies
- techcrunch.com/2026/05/06/ai-evaluation-startup-braintrust-confirms-breach-tells-every-customer-to-rotate-sensitive-keys: AWS breach exposed customers' stored API keys
- scorecard: No OpenSSF Scorecard data
GPT-6.2 Sol: 6.0, likely 4.8 to 7.2
The MIT-licensed npm package ships through a reviewer-gated workflow with build attestations, and the bundle lists 28 dependencies. GitHub records a high-severity credential-logging advisory missing from the bundle’s OSV snapshot, with a fix in 3.23.1 released one day before disclosure. A separate May 2026 hosted-service incident prompted rotation of stored provider keys. The missing OpenSSF Scorecard and unverified release-approver count widen the range.
- npm dependencies, advisories total, scorecard: 28 dependencies, zero advisories in the collector snapshot, and no Scorecard result.
- github.com/braintrustdata/braintrust-sdk-javascript/blob/braintrust@3.44.0/js/package.json: The tagged npm manifest declares MIT.
- github.com/braintrustdata/braintrust-sdk-javascript/blob/main/PUBLISHING.md: Documents reviewer approval, build attestations, and software bills of materials.
- github.com/braintrustdata/braintrust-sdk-javascript/security/advisories/GHSA-h8xp-g5cq-35xw: High-severity SDK credential logging, disclosed July 17 and fixed in 3.23.1.
- github.com/braintrustdata/braintrust-sdk-javascript/releases/tag/braintrust@3.23.1: The patched release was published July 16.
- techcrunch.com/2026/05/06/ai-evaluation-startup-braintrust-confirms-breach-tells-every-customer-to-rotate-sensitive-keys: Reports Braintrust’s confirmation of unauthorized cloud account access and its customer rotation notice.
Good
- Its Eval() API, scorers (through Autoevals) and experiment comparison make offline evals in CI quick to set up.
- It is very actively developed: 923 commits and 103 releases in the last year, with wrappers for the OpenAI, Anthropic, AI SDK and Temporal clients.
- The company is well funded, with an $80M Series B in 2026 and named customers such as Notion, Replit, Cloudflare and Dropbox.
- It ships with TypeScript types, and the free tier is generous for trying it out.
Bad
- The backend is closed source, and the hybrid self-hosted data plane is only on the Enterprise plan.
- In May 2026 an attacker got into one of Braintrust's AWS accounts and exposed the AI provider keys that customers had stored there.
- The SDK pulls in 28 runtime dependencies, which is heavy for a tracing client.
- Reviewers find its production tracing and online monitoring less mature than Langfuse or Arize Phoenix.
The numbers
- npm downloads, 4 weeks
- 11M ×9.8 in a year
- GitHub stars
- 32
- Commits, 12 months
- 923
- npm version
- 3.44.0 Nov 2026
- Versions, 12 months
- 63
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- Apache-2.0
The SDK of an eval service that is not open source.
Read on 21 November 2026 from GitHub (braintrustdata/braintrust-sdk-javascript), npm (braintrust), OSV and the OpenSSF Scorecard.
LLM evals and tracing
- 8.3Langfuse SDK
- 8.2promptfoo
- 7.4Braintrust SDK
- 6.8Opik
- 6.7Laminar SDK
- 6.6Phoenix client
- 6.1Autoevals
- 5.0OpenLLMetry JS
- 1.5Evalite