Langfuse JS/TS SDKs

GitHub Banner


MIT License CI test status GitHub Repo stars Discord YC W23

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

[!IMPORTANT] The SDK was rewritten in v2 and released on December 18, 2023. Refer to the v2 migration guide for instructions on updating your code.

Package NPM Environments
langfuse npm package Node >= 18, Web, Edge
langfuse-node npm package Node < 18
langfuse-langchain npm package Node >= 20, Web, Edge


Thanks to the PostHog team for the awesome work on posthog-js-lite. This project is based on it as it was the best starting point to build a modular SDK repo to support various environments.