LangfuseVFS exposes Langfuse projects and traces as a read-only tree.
Setup steps for the public/secret keys live at Langfuse Credentials.
Node
Browser
Config
Mount mode
read.
For the layout and search behavior see the Python Langfuse docs.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mount Langfuse traces and observations as a Mirage filesystem.
LangfuseVFS exposes Langfuse projects and traces as a read-only tree.
Setup steps for the public/secret keys live at Langfuse Credentials.
pnpm add @struktoai/mirage-node
import { LangfuseVFS, MountMode, Workspace } from '@struktoai/mirage-node'
const lf = new LangfuseVFS({
publicKey: process.env.LANGFUSE_PUBLIC_KEY!,
secretKey: process.env.LANGFUSE_SECRET_KEY!,
host: process.env.LANGFUSE_HOST,
})
const ws = new Workspace({ '/lf': lf }, { mode: MountMode.READ })
await ws.shell('ls /lf/traces/')
pnpm add @struktoai/mirage-browser
import { LangfuseVFS, MountMode, Workspace } from '@struktoai/mirage-browser'
const lf = new LangfuseVFS({
publicKey: LANGFUSE_PUBLIC_KEY,
secretKey: LANGFUSE_SECRET_KEY,
})
| Field | Default | Notes |
|---|---|---|
publicKey | required | Langfuse public key. |
secretKey | required | Langfuse secret key. Redacted in snapshots. |
host | https://cloud.langfuse.com | Override for self-hosted Langfuse. |
defaultTraceLimit | 100 | Default page size for trace listings. |
defaultSearchLimit | 100 | Default page size for search. |
read.
For the layout and search behavior see the Python Langfuse docs.