Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

GitHub Banner

@langfuse/browser

Browser SDK for sending Langfuse scores from public-key environments.

import { LangfuseBrowserClient } from "@langfuse/browser";

const langfuse = new LangfuseBrowserClient({
  publicKey: "pk-lf-...",
  baseUrl: "https://cloud.langfuse.com",
});

await langfuse.score({
  traceId: "trace-id",
  name: "user_feedback",
  value: 1,
});

This package only supports score ingestion and uses public-key Bearer auth. Do not pass Langfuse secret keys to browser code.

Documentation

License

MIT