langfuse/langfuse-js

🪢 Langfuse JS/TS SDKs - Instrument your LLM app and get detailed tracing/observability. Works with any LLM or framework

159

stars

814

commits

TypeScript

primary language

Sep 11, 2026

updated

langfuse.com/docs/observability/sdk/overview
javascript
langfuse
llmops
observability
sdk-js
typescript

README

hero-b

langfuse-js

MIT License CI test status GitHub Repo stars Discord YC W23

Modular mono repo for the Langfuse JS/TS client libraries.

Packages

[!IMPORTANT] The SDK was rewritten in v5 and released in March 2026. Refer to the v5 migration guide for instructions on updating your code.

The unscoped npm packages langfuse, langfuse-core, langfuse-node, and langfuse-langchain belong to the legacy v3 SDK. For new integrations use the @langfuse/* scoped packages below — start with @langfuse/tracing + @langfuse/otel for tracing.

PackageNPMDescriptionEnvironments
@langfuse/clientNPMLangfuse API client for universal JavaScript environmentsUniversal JS
@langfuse/browserNPMLangfuse browser SDK for public-key score ingestionBrowser
@langfuse/tracingNPMLangfuse instrumentation methods based on OpenTelemetryNode.js 20+
@langfuse/otelNPMLangfuse OpenTelemetry export helpersNode.js 20+
@langfuse/openaiNPMLangfuse integration for OpenAI SDKUniversal JS
@langfuse/langchainNPMLangfuse integration for LangChainUniversal JS
@langfuse/vercel-ai-sdkNPMLangfuse integration for AI SDK v7Universal JS

Documentation

Development

This is a monorepo managed with pnpm. See CONTRIBUTING.md for detailed development instructions.

Quick start:

pnpm install    # Install dependencies
pnpm build      # Build all packages
pnpm test       # Run tests
pnpm ci         # Run full CI suite

License

MIT

Contributors

hassiebp

263 commits

marcklingen

159 commits

dependabot[bot]

152 commits

maxdeichmann

127 commits

langfuse/langfuse-js

🪢 Langfuse JS/TS SDKs - Instrument your LLM app and get detailed tracing/observability. Works with any LLM or framework

159

stars

814

commits

TypeScript

primary language

Sep 11, 2026

updated

langfuse.com/docs/observability/sdk/overview
javascript
langfuse
llmops
observability
sdk-js
typescript

README

hero-b

langfuse-js

MIT License CI test status GitHub Repo stars Discord YC W23

Modular mono repo for the Langfuse JS/TS client libraries.

Packages

[!IMPORTANT] The SDK was rewritten in v5 and released in March 2026. Refer to the v5 migration guide for instructions on updating your code.

The unscoped npm packages langfuse, langfuse-core, langfuse-node, and langfuse-langchain belong to the legacy v3 SDK. For new integrations use the @langfuse/* scoped packages below — start with @langfuse/tracing + @langfuse/otel for tracing.

PackageNPMDescriptionEnvironments
@langfuse/clientNPMLangfuse API client for universal JavaScript environmentsUniversal JS
@langfuse/browserNPMLangfuse browser SDK for public-key score ingestionBrowser
@langfuse/tracingNPMLangfuse instrumentation methods based on OpenTelemetryNode.js 20+
@langfuse/otelNPMLangfuse OpenTelemetry export helpersNode.js 20+
@langfuse/openaiNPMLangfuse integration for OpenAI SDKUniversal JS
@langfuse/langchainNPMLangfuse integration for LangChainUniversal JS
@langfuse/vercel-ai-sdkNPMLangfuse integration for AI SDK v7Universal JS

Documentation

Development

This is a monorepo managed with pnpm. See CONTRIBUTING.md for detailed development instructions.

Quick start:

pnpm install    # Install dependencies
pnpm build      # Build all packages
pnpm test       # Run tests
pnpm ci         # Run full CI suite

License

MIT

Contributors

hassiebp

263 commits

marcklingen

159 commits

dependabot[bot]

152 commits

maxdeichmann

127 commits

Languages

TypeScript

99.4%