Create instant Docs and SDKs for your API using Fern.
In this article, we review Fern. You will learn the following:
-
What is Fern?
-
Fern usage in Langfuse codebase.

What is Fern?
Fern helps you create instant docs and sdks for your API. Start with an API spec. Generate SDKs in multiple languages and interactive API documentation tailored to your brand.
How SDK generation works?
-
Import your API spec
-
Select language and generate using the
fern generatecommand -
Add custom code, if you want
-
Publish packages
Check out the quick start guide.
Fern usage in Langfuse codebase.
I found the folder named fern in the Langfuse codebase and it led me to read more about Fern and write this article.
fern/fern.config.json
In the quick start guide, this is mentioned in the step 3 about this fern.config.json

This fern folder has the following structure:

All these three folder have the same file structure:
-
definition folder
-
generators.yml file
About me:
Hey, my name is Ramu Narasinga. Email: ramu.narasinga@gmail.com
Tired of AI slop?
I spent 3+ years studying OSS codebases and wrote 350+ articles on what makes them production-grade. I built an open source tool that reviews your PR against your existing codebase patterns.
Your codebase. Your patterns. Enforced.