Menu

Tree [3e13d1] main /
 History

HTTPS access


File Date Author Commit
 .github 2024-02-12 Max Deichmann Max Deichmann [3268ef] style: adjust contributing template (#1136)
 .vscode 2023-12-17 Marc Klingen Marc Klingen [d8ef8a] refactor: add `strict-type-checked` lint rule a...
 ee 2023-05-23 Marc Klingen Marc Klingen [83fd08] Add ee readme
 fern 2024-02-07 Hassieb Pakzad Hassieb Pakzad [53e7ff] feat: expand generation model units (#1095)
 generated 2024-02-07 Hassieb Pakzad Hassieb Pakzad [53e7ff] feat: expand generation model units (#1095)
 prisma 2024-02-07 Hassieb Pakzad Hassieb Pakzad [53e7ff] feat: expand generation model units (#1095)
 public 2023-09-13 Marc Klingen Marc Klingen [76e9dd] Fix logo (#149)
 scripts 2024-01-30 Max Deichmann Max Deichmann [9c00d1] perf: reduce batch size (#997)
 src 2024-02-12 Marc Klingen Marc Klingen [3e13d1] chore: drop middleware previously used for IP b...
 types 2024-01-10 Marc Klingen Marc Klingen [5bf348] feat(cloud): add self-serve pricing/checkout pa...
 .codespellrc 2024-01-27 Marc Klingen Marc Klingen [8a3281] chore: fix typo (#974)
 .dockerignore 2023-05-23 Max Deichmann Max Deichmann [e7d981] docerize
 .env.dev.example 2024-02-03 Marc Klingen Marc Klingen [ae5260] docs: update example envs
 .env.local.example 2024-02-03 Marc Klingen Marc Klingen [ae5260] docs: update example envs
 .env.prod.example 2024-02-12 Max Deichmann Max Deichmann [b35618] refactor: add betterstack env variable to env.p...
 .eslintrc.cjs 2024-01-11 jhlopen jhlopen [e3079a] fix: assign unique keys to sibling items (#860)
 .gitignore 2024-02-11 William Berglund William Berglund [21940a] feat(ui): improve trace view: collapse/expand o...
 .nvmrc 2023-11-25 Max Deichmann Max Deichmann [1c1162] chore: upgrade to Node 20 (#553)
 CONTRIBUTING.md 2024-02-09 Marc Klingen Marc Klingen [5d77e0] docs: update readme and contributing
 Dockerfile 2023-11-25 Max Deichmann Max Deichmann [1c1162] chore: upgrade to Node 20 (#553)
 LICENSE 2023-05-23 clemra clemra [802630] psuh
 README.md 2024-02-09 Marc Klingen Marc Klingen [5d77e0] docs: update readme and contributing
 SECURITY.md 2023-12-12 Marc Klingen Marc Klingen [45e31c] docs: update SECURITY.md
 components.json 2023-06-23 Marc Klingen Marc Klingen [33e11f] Add feedback to mobile and upgrade shadcn-ui (#30)
 demo_thumbnail.jpg 2023-06-08 Marc Klingen Marc Klingen [fc5747] Update readme (#13)
 docker-compose.build.yml 2023-11-29 Veniamin Viflyantsev Veniamin Viflyantsev [2a623b] fix: NEXTAUTH_URL environment variable in docke...
 docker-compose.dev.yml 2023-08-26 Maximilian Deichmann Maximilian Deichmann [143a3f] Add trace metadata filters (#104)
 docker-compose.yml 2023-11-29 Veniamin Viflyantsev Veniamin Viflyantsev [2a623b] fix: NEXTAUTH_URL environment variable in docke...
 entrypoint.sh 2023-12-21 Marc Klingen Marc Klingen [43dd39] feat(docker): optionally set DIRECT_URL (#739)
 jest.config.mjs 2024-01-02 Felix Wu Felix Wu [111678] feat(ui, api): Add Ordering functionality to tr...
 next.config.mjs 2023-12-12 Marc Klingen Marc Klingen [0c36c4] feat(security): add x-frame-options header (#669)
 package-lock.json 2024-02-12 Marc Klingen Marc Klingen [3e13d1] chore: drop middleware previously used for IP b...
 package.json 2024-02-12 Marc Klingen Marc Klingen [3e13d1] chore: drop middleware previously used for IP b...
 playwright.config.ts 2023-09-19 Marc Klingen Marc Klingen [74a877] Add e2e tests (#242)
 postcss.config.cjs 2023-05-18 Max Deichmann Max Deichmann [065992] init
 prettier.config.cjs 2023-05-18 Max Deichmann Max Deichmann [065992] init
 readme_walkthrough_thumbnail.png 2023-06-08 Marc Klingen Marc Klingen [fc5747] Update readme (#13)
 sentry.client.config.ts 2024-01-10 Max Deichmann Max Deichmann [a751f1] refactor: reduce sentry sampling (#858)
 sentry.edge.config.ts 2024-01-10 Max Deichmann Max Deichmann [a751f1] refactor: reduce sentry sampling (#858)
 sentry.server.config.ts 2024-01-10 Max Deichmann Max Deichmann [a751f1] refactor: reduce sentry sampling (#858)
 tailwind.config.ts 2023-06-23 Marc Klingen Marc Klingen [33e11f] Add feedback to mobile and upgrade shadcn-ui (#30)
 tsconfig.json 2024-01-23 jhlopen jhlopen [564ba4] chore: mitigate type truncation in VS Code tool...
 vercel.json 2023-10-02 Marc Klingen Marc Klingen [b55d6f] Fix path cron

Read Me

🪢 Langfuse

Sign up · Self Host Langfuse · Demo Project (live data)

Langfuse is the open source LLM engineering platform.

Debug, analyze and iterate - together


MIT License Y Combinator W23 Docker Image langfuse npm package langfuse Python package on PyPi


Overview

Develop

Monitor

Test

  • Experiments: Track and test app behaviour before deploying a new version
  • Datasets let you test expected in and output pairs and benchmark performance before deployiong (Datasets)
  • Track versions and releases in your application (Experimentation, Prompt Management)

Video: Langfuse in two minutes

https://github.com/langfuse/langfuse/assets/2834609/6041347a-b517-4a11-8737-93ef8f8af49f

Muted by default, enable sound for voice-over

Get started

Langfuse Cloud

Managed deployment by the Langfuse team, generous free-tier (hobby plan), no credit card required.

» Langfuse Cloud

Localhost (docker)

# Clone repository
git clone https://github.com/langfuse/langfuse.git
cd langfuse

# Run server and database
docker compose up -d

→ Learn more about deploying locally

Self-host (docker)

Langfuse is simple to self-host and keep updated. It currently requires only a single docker container.
→ Self Hosting Instructions

Templated deployments: Railway, GCP Cloud Run, AWS Fargate, Kubernetes and others

Get Started

API Keys

You require a Langfuse public and secret key to get started. Sign up here and find them in your project settings.

Ingesting Data · Instrumenting Your Application

Note: We recommend using our fully async, typed SDKs that allow you to instrument any LLM application with any underlying model. They are available in Python & JS/TS. The SDKs will always be the most fully featured and stable way to ingest data into Langfuse.

You may want to use another integration to get started quickly or implement a use case that we do not yet support. However, we recommend to migrate to the Langfuse SDKs over time to ensure performance and stability.

See our the → Quickstart to get started in integrating Langfuse.

Integrations

Integration Supports Description
SDK - recommended Python, JS/TS Manual instrumentation using the SDKs for full flexibility.
OpenAI Python Automated instrumentation using drop-in replacement of OpenAI SDK.
Langchain Python, JS/TS Automated instrumentation by passing callback handler to Langchain application.
API Directly call the public API. OpenAPI spec available.

External projects/packages that integrate with Langfuse:

Name Description
LiteLLM Use any LLM as a drop in replacement for GPT. Use Azure, OpenAI, Cohere, Anthropic, Ollama, VLLM, Sagemaker, HuggingFace, Replicate (100+ LLMs).
Flowise JS/TS no-code builder for customized LLM flows.
Langflow Python-based UI for LangChain, designed with react-flow to provide an effortless way to experiment and prototype flows.

Questions and feedback

Ideas and roadmap

Support and feedback

In order of preference the best way to communicate with us:

Contributing to Langfuse

  • Vote on Ideas
  • Raise and comment on Issues
  • Open a PR - see CONTRIBUTING.md for details on how to setup a development environment.

License

This repository is MIT licensed, except for the ee/ folder. See LICENSE and docs for more details.

Misc

GET API to export your data

GET routes to use data in downstream applications (e.g. embedded analytics).

Security & Privacy

We take data security and privacy seriously. Please refer to our Security and Privacy page for more information.

Telemetry

By default, Langfuse automatically reports basic usage statistics of self-hosted instances to a centralized server (PostHog).

This helps us to:

  1. Understand how Langfuse is used and improve the most relevant features.
  2. Track overall usage for internal and external (e.g. fundraising) reporting.

None of the data is shared with third parties and does not include any sensitive information. We want to be super transparent about this and you can find the exact data we collect here.

You can opt-out by setting TELEMETRY_ENABLED=false.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.