Generate OpenRPC Reference
Fern enables you to generate professional, interactive API reference documentation for your JSON-RPC APIs using the OpenRPC specification. OpenRPC provides a standardized, machine-readable format for describing JSON-RPC 2.0 APIs, unlocking powerful documentation and code generation workflows.

How to Add an OpenRPC Endpoint
- Add your OpenRPC specification file (e.g.,
openrpc.yaml
) to your/fern
directory. - Configure your
generators.yml
to point to your OpenRPC spec:
generators.yml
Configuration Properties
api.specs[].openrpc
Path to your OpenRPC specification file. You can include multiple OpenRPC specs if your project exposes more than one JSON-RPC API.
Common Use Cases
JSON-RPC APIs are widely used for:
- Blockchain & Crypto: Node RPC endpoints, wallet APIs
- FinTech: Trading platforms, market data feeds
- Developer Tools: Language servers, debuggers, automation
- Distributed Systems: Remote procedure calls between services
Leverage Fern and OpenRPC to deliver world-class developer experiences for your JSON-RPC APIs.