Langfuse JS/TS SDKs
    Preparing search index...

    Interface LangfuseBrowserClientOptions

    interface LangfuseBrowserClientOptions {
        additionalHeaders?: Record<string, string>;
        baseUrl?: string;
        environment?: string;
        fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
        publicKey: string;
    }
    Index

    Properties

    additionalHeaders?: Record<string, string>

    Additional HTTP headers sent with ingestion requests. SDK auth and telemetry headers take precedence over these values.

    baseUrl?: string

    Langfuse host.

    "https://cloud.langfuse.com"
    
    environment?: string

    Environment attached to scores when not provided on the score body.

    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    Custom fetch implementation. Useful for tests and non-standard runtimes.

    Type declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    publicKey: string

    Langfuse public key obtained from the project settings.