# Langfuse SDK: 8.3 out of 10

A strong pick. 1st of 9 in [LLM evals and tracing](https://elestia.ai/opensource/llm-evals/index.md).

@langfuse/tracing is the OpenTelemetry-based TypeScript tracing SDK for Langfuse, an MIT-licensed LLM observability and eval platform that ClickHouse bought in 2026. You can self-host it or use the cloud service. For most JS/TS teams that want open-source tracing plus prompt management and evals, it is a strong pick today. The trade-off is frequent major-version changes.

**Best for:** Teams that want open-source, self-hostable LLM tracing and evals built on OpenTelemetry, with Vercel AI SDK, OpenAI or LangChain apps.

## Scores

- **Overall: 8.3** (likely 7.2 to 8.9)
  - Claude Opus 5.5 (8.0): It is the leading open-source, self-hostable choice for JS/TS LLM tracing, with the highest adoption in the category and active, funded maintenance. Braintrust is better for CI-centred evals, and promptfoo is better for eval-only testing. Frequent major versions and setup pitfalls stop it from being the clear default.
  - GPT-6.2 Sol (8.5): Langfuse is among the strongest choices for new Node.js projects that want production tracing and dataset evaluations on one self-hostable platform. The active release cadence and OpenTelemetry integration support that recommendation. Promptfoo is simpler for projects whose main need is running regression assertions in CI, and Langfuse's recent API changes and backend requirements keep it from being the default across the whole category.
- **Needed by many: 4.7** (likely 3.6 to 5.7)
  - Claude Opus 5.5 (5.0): Only teams that ship LLM features need tracing and evals. That group is growing fast but is still a minority of JS developers. The SDK works on any Node-style runtime and with many frameworks, so it is not narrower than its category.
  - GPT-6.2 Sol (4.3): Tracing and repeatable evaluations matter to teams that ship LLM features, agents, or retrieval pipelines. Langfuse covers several JavaScript frameworks, though its main tracing package targets Node.js 22 and newer. Available surveys cover AI practitioners and give an indirect estimate of how many JavaScript developers need a dedicated tool.
- **Helps a lot: 8.1** (likely 7.0 to 9.0)
  - Claude Opus 5.5 (7.5): Tracing is OTel-native and typed, with many integrations. The Langfuse platform adds prompt management, datasets, experiments and LLM-as-judge scoring. Next.js and serverless setup has known pitfalls, and CI eval gating is more do-it-yourself than in Braintrust or promptfoo. Docs drift across SDK generations also hurts code written by AI agents.
  - GPT-6.2 Sol (8.6): Version 6.1.1 combines typed OpenTelemetry tracing with custom scoring and dataset experiments through companion packages. It fixes a reported exporter import failure, while OpenTelemetry version alignment and flushing traces still take care. The current docs give coding agents concrete examples, and the deprecated unscoped package can still lead them to old APIs. Independent evidence on the current release's runtime overhead is limited.
- **Holds up over time: 8.1** (likely 7.0 to 9.0)
  - Claude Opus 5.5 (8.0): There were 271 commits and 57 releases in the last year from 36 contributors, and a full-time team now funded by ClickHouse, which has promised to keep the MIT licence. Three majors (v4 to v6) in about 15 months, each tied to a server version, show real upgrade churn. Some uncertainty remains about the roadmap after the acquisition.
  - GPT-6.2 Sol (8.1): ClickHouse backs the project, and 271 commits and 57 repository releases over the last year show active maintenance. The maintainers shipped a fix for the exporter regression three days after 6.1.0. Recent major versions have changed SDK APIs and raised server requirements, which adds upgrade work and leaves long-term compatibility less certain.
- **Used widely: 7.3** (likely 6.0 to 8.6)
  - Claude Opus 5.5 (8.0): There were about 18M downloads in the last 4 weeks, the most in the category and ahead of Braintrust's 11M. The ratio to a year ago (about 59x) is far above the 4.1 median, but the package was only weeks old then, as users moved from the older 'langfuse' package. Some downloads come through sibling @langfuse packages and integrations, and the repository's 180 stars undercount use, because the main Langfuse repository holds most stars.
  - GPT-6.2 Sol (6.6): Four-week downloads rose from 308,073 to 18.15 million, about 59-fold and well above the 4.1-fold catalog baseline, Promptfoo's 15-fold growth, and Braintrust's roughly 10-fold growth. The package started from a young base, and automated installs and transitive use through the Langfuse client inflate the totals. Survey results show strong platform adoption, while the missing dependent count and limited attention on the SDK repository leave direct JavaScript adoption uncertain.
- **Vouched for: 7.8** (likely 6.7 to 8.8)
  - Claude Opus 5.5 (7.5): ClickHouse bought it as its LLM observability product. The Vercel AI SDK documents it as a provider. Independent comparisons and several competitor write-ups treat it as the main open-source option. Most comparisons are written by vendors, and there is no survey data for this category.
  - GPT-6.2 Sol (8.0): Cresta reports using Langfuse to trace production agent pipelines, and Vercel documents integration with its AI SDK. Thoughtworks considers it a credible choice for integrated tracing and evaluations and notes the work involved in self-hosting. The strongest reports evaluate the platform as a whole, so they leave more uncertainty about the current JavaScript release.
- **Safe: 8.2** (likely 7.1 to 9.2)
  - Claude Opus 5.5 (8.0): It is MIT-licensed, has one direct dependency, and has no OSV advisories. Releases are published from CI by a company team. There is no OpenSSF Scorecard, and 49 open PRs (many likely dependency bumps) keep the range from being narrower. Self-hosting the backend keeps trace data in-house.
  - GPT-6.2 Sol (8.4): The MIT-licensed tracing package has one direct dependency, an OpenTelemetry peer dependency, and no recorded OSV advisories. Releases use trusted publishing with provenance and require a separate npm two-factor approval. The backend has patched a reported access-control flaw, and production traces can contain sensitive data that requires masking. The bundle lacks an OpenSSF Scorecard and a verified count of npm release approvers.

## Good

- It is built on OpenTelemetry JS v2, so it fits into existing OTel setups and other OTel-instrumented libraries.
- The whole stack is MIT-licensed and can be self-hosted without trace-retention limits, unlike closed peers such as Braintrust.
- There are official integrations for the Vercel AI SDK, OpenAI and LangChain/LangGraph, and they get fixes often.
- It has a tiny dependency footprint and no known advisories.

## Bad

- There were three major versions (v4, v5, v6) in about 15 months, and each needs a migration and a matching server version.
- Setup with Next.js, @vercel/otel and serverless streaming is fiddly, and the docs warn that traces can go missing.
- CI eval gating and regression suites take more self-assembly than Braintrust or promptfoo.
- Several generations of docs show up in search results, so AI agents may write outdated setup code.

## The numbers

- Downloads, 4 weeks: 18M
- In a year: ×59
- GitHub stars: 180
- Commits, 12 months: 271
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/langfuse/langfuse-js
- npm: https://www.npmjs.com/package/@langfuse/tracing

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
