Langfuse SDK
A strong pick. 1st of 9 LLM evals and tracing.
@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
Overall8.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
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.
- npm downloadsLast4Weeks: Category-leading adoption
- dev.to/gabrielanhaia/langfuse-vs-langsmith-vs-phoenix-vs-braintrust-the-honest-2026-comparison-253p: MIT and self-hosting strengths; DIY CI evals
- langfuse.com/blog/joining-clickhouse: Funded by ClickHouse with OSS continuity pledged
GPT-6.2 Sol: 8.5, likely 7.3 to 9.3
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.
- langfuse.com/docs/observability/sdk/overview: Covers the shared cloud and self-hosted SDK setup and minimum server versions.
- github.com/langfuse/langfuse-js/releases: Shows active maintenance and recent fixes to the stable SDK.
- promptfoo.dev/docs/integrations/ci-cd: Shows Promptfoo's direct workflow for pull-request evaluations and quality gates.
Needed by many4.7
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- langfuse.com/changelog/2025-08-28-typescript-sdk-v4-ga: Modular OTel-based packages with OpenAI and LangChain auto-tracing
- ai-sdk.dev/providers/observability/langfuse: Listed as an observability provider in the Vercel AI SDK docs
GPT-6.2 Sol: 4.3, likely 3.2 to 5.4
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.
- inngest.com/assets/reports/2026-benchmark/2026-durable-execution-benchmark-report.pdf: 35% of surveyed production AI teams skipped evals, and most eval users built their own pipeline.
- github.com/langfuse/langfuse-js: Lists Node.js requirements and separate integrations for OpenAI, LangChain, and Vercel AI SDK.
Helps a lot8.1
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- langfuse.com/docs/observability/sdk/typescript/troubleshooting-and-faq: Warns about missing traces with @vercel/otel and serverless flushing
- dev.to/gabrielanhaia/langfuse-vs-langsmith-vs-phoenix-vs-braintrust-the-honest-2026-comparison-253p: Independent review: strong OSS all-rounder, but CI orchestration is DIY
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.6, likely 7.5 to 9.5
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.
- langfuse.com/docs/evaluation/experiments/experiments-via-sdk: Shows typed experiments, local or hosted datasets, evaluators, and explicit flushing.
- github.com/langfuse/langfuse-js/pull/1077: A contributor reported the fresh-install ESM failure and supplied the fix released in 6.1.1.
- github.com/langfuse/langfuse-js: Documents the current scoped packages and identifies the deprecated unscoped client.
- langfuse.com/docs/docs-mcp: Exposes searchable SDK documentation to coding agents.
Holds up over time8.1
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- github commitsLastYear / releasesLastYear: 271 commits, 57 releases, latest on 2026-11-02
- langfuse.com/blog/joining-clickhouse: Team joins ClickHouse; no licensing changes planned
- infoworld.com/article/4118621/clickhouse-buys-langfuse-as-data-platforms-race-to-own-the-ai-feedback-loop.html: Independent coverage of the acquisition and continued OSS support
- github.com/langfuse/langfuse-js/releases: v6.0.0 major in October 2026 with a migration guide; frequent patches
GPT-6.2 Sol: 8.1, likely 6.9 to 9.0
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.
- github commitsLastYear, releasesLastYear, contributors, openPullRequests: 271 commits, 57 releases, 36 contributors, and 49 open pull requests.
- clickhouse.com/blog/clickhouse-raises-400-million-series-d-acquires-langfuse-launches-postgres: ClickHouse confirms the acquisition and continued development by the combined team.
- github.com/langfuse/langfuse-js/releases: Release notes show the exporter fix and multiple contributors across recent releases.
- langfuse.com/docs/observability/sdk/upgrade-path/js-v5-to-v6: Documents removed methods and higher Node.js and self-hosted server requirements.
- langfuse.com/docs/roadmap: Lists ongoing platform work on trace analysis and evaluations across multiple spans.
Used widely7.3
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- npm downloadsLast4Weeks: 18.1M vs 308k a year earlier
- npm firstPublishedAt: First published August 2025, so the year-ago base is a fresh launch
- peers downloadsLast4Weeks: Highest in the category; Braintrust 11.1M, promptfoo 4.9M
GPT-6.2 Sol: 6.6, likely 4.9 to 8.2
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.
- npm firstPublishedAt, downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: The youngest download baseline is only a few months after package launch, and growth leads the supplied peers.
- dependents, github stars, bluesky posts: No dependent count, 180 SDK repository stars, and zero tracked Bluesky links.
- github.com/langfuse/langfuse-js/blob/v6.1.1/packages/client/package.json: The client automatically installs the tracing package as a dependency.
- survey.stackoverflow.co/2026/ai/data: 345 of 2,277 respondents to the observability tools question used Langfuse, ahead of Braintrust and Promptfoo.
Vouched for7.8
Who stands behind it being good?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- hackerNews top: Acquisition (220 points) and Launch HN (215 points) threads
- pydantic.dev/articles/best-langfuse-alternatives: A competitor treats Langfuse as the reference product
- dev.to/parth_sarthisharma_105e7/i-compared-7-ai-observability-platforms-so-you-dont-have-to-2026-edition-3jdc: Third-party comparison of observability platforms
GPT-6.2 Sol: 8.0, likely 6.8 to 9.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.
- cresta.com/blog/observability-for-ai-agents-tracing-multi-service-llm-pipelines-with-langfuse: A Cresta engineering account coauthored by Langfuse describes production tracing across services.
- ai-sdk.dev/providers/observability/langfuse: Vercel's documentation shows the JavaScript integration and span processor setup.
- thoughtworks.com/content/dam/thoughtworks/documents/radar/2026/04/tr_technology_radar_vol_34_en.pdf: Independent practitioner assessment weighs OpenTelemetry support against self-hosting complexity.
Safe8.2
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- advisories total: 0 advisories
- npm dependencies: 1 direct dependency
- scorecard: No Scorecard data
GPT-6.2 Sol: 8.4, likely 7.1 to 9.3
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.
- npm license, dependencies, advisories, scorecard: MIT, one direct dependency, zero OSV advisories, and no Scorecard result.
- github.com/langfuse/langfuse-js/blob/v6.1.1/packages/tracing/package.json: Declares the Langfuse core dependency and the OpenTelemetry API peer.
- github.com/langfuse/langfuse-js/pull/1048: Documents provenance and the npm two-factor approval required for staged releases.
- github.com/langfuse/langfuse/security/advisories/GHSA-2524-j966-gfgh: Documents a patched access-control issue in the Langfuse v3 backend.
- langfuse.com/docs/observability/features/masking: Documents client-side masking for sensitive trace data.
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
- npm downloads, 4 weeks
- 18M ×59 in a year
- GitHub stars
- 180
- Commits, 12 months
- 271
- npm version
- 6.1.1 Nov 2026
- Versions, 12 months
- 37
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (langfuse/langfuse-js), npm (@langfuse/tracing), 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