Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs: improve architecture overview

Marc Klingena181eb13f5b7
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index bfd277b956..cac89725d9 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -38,12 +38,39 @@ A good first step is to search for open [issues](https://github.com/langfuse/lan
### Architecture overview
```mermaid
-flowchart TD
-
- A[Python SDK - Backend] -->|REST| C[NextJs Server]
- B[JS/TS SDK - Frontend + Backend] -->|REST| C
- C <-->|Prisma| D[Postgres Database]
- E[Langfuse UI] -->|tRPC| C
+flowchart TB
+ subgraph s4["Clients"]
+ subgraph s2["langfuse/langfuse-python"]
+ Python["Python SDK"]
+ OAI["OpenAI drop-in replacement"] -->|extends| Python
+ LCPYTHON["Langchain Python Integration"] -->|extends| Python
+ Langflow -->|uses| LCPYTHON
+ LiteLLM -->|uses| Python
+ end
+ subgraph s3["langfuse/langfuse-js"]
+ JS["JS SDK"]
+ LCJS["Langchain JS Integration"] -->|extends| JS
+ Flowise -->|uses| LCJS
+ end
+ end
+
+ DB[Postgres Database]
+ subgraph s1["Application (langfuse/langfuse)"]
+ API[Public API]
+ G[TRPC API]
+ I[NextAuth]
+ H[React Frontend]
+ Prisma[Prisma ORM]
+ H --> G
+ H --> I
+ G --> I
+ G --- Prisma
+ API --- Prisma
+ I --- Prisma
+ end
+ Prisma --- DB
+ JS --- API
+ Python --- API
```
| Component | Technology | Description |