This is the main JS/TS client for Langfuse.
- Docs: https://langfuse.com/docs/sdk/typescript
- Reference: https://js.reference.langfuse.com/modules/langfuse.html
Supported
- Node.js >=18
- Web
- Edge: Vercel, Cloudflare Workers, etc.
Using Node.js <18? Use langfuse-node
instead as it does not use fetch
and other Web APIs
npm i langfuse
# or
yarn add langfuse
# or
pnpm i langfuse