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/ferndirectory. - Configure your
generators.ymlto 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.