Generate gRPC API Reference
Fern generates gRPC API Reference documentation from your Protocol Buffer (.proto) files. Add your .proto files to your Fern project and Fern renders services, RPCs, messages, and types as an interactive reference.
Configuration
Set up your project structure
Add your .proto files to your /fern directory and create a generators.yml that references them:
generators.yml
Customize the layout
For a full list of configuration options and layout customizations, see Customize API Reference layout.
Include more than one gRPC Reference
To include multiple gRPC definitions in your documentation, use the api-name property. The api-name corresponds to the folder name containing your gRPC definition.
fern
fern.config.json
docs.yml
user-api
proto
user_service.proto# User gRPC service
generators.yml
billing-api
proto
billing_service.proto# Billing gRPC service
generators.yml
docs.yml
Configuration properties
api.specs[].proto
Path to your gRPC specification file. You can include multiple gRPC specs if your project exposes more than one API.