Skip to content
OpenRPC Client Generators for multiple languages.
TypeScript Rust JavaScript Dockerfile Shell
Branch: master
Clone or download
BelfordZ Merge pull request #263 from open-rpc/dependabot/npm_and_yarn/jest-24…

build(deps-dev): bump jest from 24.5.0 to 24.9.0
Latest commit 0d2e3f5 Aug 21, 2019

OpenRPC Generator: Client

CircleCI branch Dependabot status Chat on Discord npm GitHub release GitHub commits since latest release js badge rs badge

Multi-language client generator tool for open-rpc APIs. Developers generate a client by passing an OpenRPC Document to this tool which generates a client based on the supported language templates.

overview diagram

Supported client languages:


$ npm install -g @open-rpc/generator-client


$ open-rpc-generator-client --help
Usage: open-rpc-generator-client [options]

  -v, --version                      output the version number
  -d, --document [openrpcDocument]   JSON string or a Path/Url pointing to an open rpc schema (default: "./openrpc.json")
  -o, --outputDir [outputDirectory]  output directory that the clients will be generated into (default: "./")
  --ts-name [packageName]            Name that will go in the package.json for the typescript client (default: "template-client")
  --rs-name [crateName]              Name that will go in the crate name for the rust client (default: "template-client")
  -h, --help                         output usage information

Generating a Client

$ open-rpc-generator-client \

Using the open-rpc-generator-client command, then passing an example OpenRPC document petstore-openrpc.json in the directory of Petstore.

The generator client tool creates the client directories by language. E.i: rust/ for generated Rust client and typescript for generated Typescript (JavaScript) client. A developer can choose which client language they want to use from here.


You can’t perform that action at this time.