Skip to main content

Code generators

Fern makes it easy to code generate SDKs, server interfaces, a Postman collection, and an OpenAPI spec.

Generate SDKs

JavaScript/TypeScript

fern-typescript: A JavaScript SDK, fully typed with TypeScript declarations. Build Node.js, web, and mobile web applications.

Java

java-client: A Java SDK.

Python

fern-python: A Python SDK.

Generate server interfaces

TypeScript Express

fern-typescript: Validation that your JavaScript or TypeScript Express server correctly implements your API. (Requires private beta login!)

Java Spring

java-server: Validation that your Java Spring server correctly implements your API. (Requires private beta login!)

Python FastAPI

fern-python: Validation that your Python FastAPI server correctly implements your API. (Requires private beta login!)

Generate a Postman Collection

postman: generates a Postman Collection. If you'd like to use the Postman integration to auto-update your collection, read on.

Generate an OpenAPI spec

openapi: generates an OpenAPI spec (also known as an OpenAPI spec).

Contributing

Fern gives a lot of importance to being a community project, and we rely on your help as much as you rely on ours. If you'd like to write a code generator, reach out.