DEV Community

Ramu Narasinga
Ramu Narasinga

Posted on

Create instant Docs and SDKs for your API using Fern.

In this article, we review Fern. You will learn the following:

  1. What is Fern?

  2. 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?

  1. Import your API spec

  2. Select language and generate using the fern generate command

  3. Add custom code, if you want

  4. 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:

  1. definition folder

  2. 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.

Get started for free — thinkthroo.com

References

  1. buildwithfern.com

  2. langfuse/fern/fern.config.json

  3. fern-api/fern

  4. langfuse/langfuse/fern

Top comments (0)