The examples below demonstrate TypeScript and Go SDKs. ConnectRPC supports many other languages including Python, Swift, Kotlin, and more. For a complete list of supported languages and their SDKs, see the official Buf documentation.
TypeScript / JavaScript example
The generated TypeScript client provides full type safety for requests and responses, along with autocomplete in your IDE.1. Installation
Install the generated SDK package provided by your platform team, along with the required Connect runtime libraries. Note: Replace@my-org/sdk with the actual package name provided by your team.
2. Usage Example
To make a request, you create a transport (configuring the base URL) and then instantiate the client for the desired service.Go example
The generated Go SDK provides idiomatic Go structs and interfaces for interacting with the API.1. Installation
Download the generated Go module provided by your platform team, along with the required Connect runtime. Note: Replacegithub.com/my-org/sdk with the actual module path provided by your team.