langfuse-js
langfuse-js copied to clipboard
🪢 Langfuse JS/TS SDKs - Instrument your LLM app and get detailed tracing/observability. Works with any LLM or framework
langfuse-js
Modular mono repo for the Langfuse JS/TS client libraries.
Packages
[!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 | Node >= 18, Web, Edge | |
langfuse-node | Node < 18 | |
langfuse-langchain | Node >= 20, Web, Edge |
Documentation
- Docs: https://langfuse.com/docs/sdk/typescript
- Reference: https://js.reference.langfuse.com
License
MIT
Credits
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.