DocsSDKsOverview

Langfuse SDKs

The Langfuse SDKs are the recommended way to integrate with Langfuse.

Properties:

  • Fully async requests, using Langfuse adds almost no latency
  • Accurate latency tracking using synchronous timestamps
  • IDs available for downstream use
  • Great DX when nesting observations
  • Cannot break your application, all errors are caught and logged
  • Interoperable with Langfuse integrations

JS/TS

Github repository langfuse/langfuse-jsnpm langfusenpm langfuse-node
npm install langfuse
 
# Node.js < 18
npm install langfuse-node
  • Fully typed
  • Edge-ready, e.g., Vercel, Cloudflare, Deno
  • Works client-side to report user feedback (with only the public_key)
  • Interfaces

Python

Github repository langfuse/langfuse-pythonPyPi langfuse
pip install langfuse

Was this page useful?

Questions? We're here to help

Subscribe to updates