Langfuse v4: up to 165× faster · Read more
Workshop00 Setup

00 Setup

Workshop source

Workshop material is maintained in the public langfuse/langfuse-workshop repository. Use the repository for the runnable app, checkpoint branches, and local setup.

View this Markdown file

Learner guide: 00 Setup

Instructor notes

  • Recommend Langfuse Cloud, not self-hosted. Supporting self-hosted setups would mean maintaining the workshop against too many Langfuse versions. This workshop is also not about learning how to self-host Langfuse; it is about current features in their most up-to-date form.
  • Use checkpoint/00-setup as the stable base-app checkout. It should be equivalent to checkpoint/01-base-app, not the complete reference app.
  • main contains the complete reference implementation, but learners should use the checkpoint so setup and base-app orientation share the same starting state.
  • Make learners confirm the UI loads at 127.0.0.1:3333 and that a suggestion-chip chat turn returns a real answer.
  • Tell learners to leave npm run dev running: Vite hot-reloads the client, and the API watcher restarts on server or .env changes. Stopping and starting between edits is unnecessary.
  • Emphasize the EU Langfuse host value: LANGFUSE_BASE_URL=https://cloud.langfuse.com.
  • The Node server and helper scripts load the repository .env with override enabled, so stale exported LANGFUSE_*, OPENAI_*, or DATASET_NAME values from another local project should not win. Have learners edit .env when they need to switch keys or projects.
  • Do not frontload Project Settings → LLM Connections here. Learners configure the default evaluator model in 04-monitoring, when LLM-as-a-judge evaluators first become relevant.
  • Keep key handling explicit: real API keys go only into .env or Langfuse secret fields, never into shared transcripts, notes, or chat.
  • After one successful chat turn, have learners switch to checkpoint/02-tracing for the first build step.

Watch for

  • Missing .env values. The app may render while model calls fail.
  • Node older than ^20.19.0 || >=22.12.0. Worth a node -v check in the room before anyone runs npm install, because npm skips Vite's optional native binary silently and the failure only surfaces later inside npm run dev. Learners who upgrade afterwards need npm ci, not just a restart.
  • Learners editing shell exports instead of .env. The workshop intentionally treats .env as the Node-side source of truth.
  • People expecting evaluator setup during initial setup. The app can run and trace correctly before the Langfuse-side LLM connection exists.
  • People wanting to use a company or local self-hosted Langfuse instance. Push them to Cloud so the UI and features match the lessons.
  • People expecting traces on checkpoint/00-setup or checkpoint/01-base-app. Both are intentionally untraced; tracing starts only after the 02-tracing edits.
  • People staying on main for tracing. main is already the finished reference implementation.

Was this page helpful?