{"repo":"connectrpc/connect-swift","free":true,"listed":false,"github":"https://github.com/connectrpc/connect-swift","clone":"git clone https://github.com/connectrpc/connect-swift.git","description":"The Swift implementation of Connect: Protobuf RPC that works.","language":"Swift","stars":160,"topics":["api","api-client","grpc","protobuf","rpc","swift","connectrpc"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Connect-Swift ============= Connect-Swift is a small library ( Click to expand eliza.connect.swift This code can then be integrated with just a few lines: That’s it! You no longer need to manually define Swift response models, add Codable conformances, type out URL(string: ...) initializers, or even create protocol interfaces to wrap service classes - all this is taken care of by Connect-Swift, and the underlying network transport is handled automatically. Testing also becomes a breeze with generated mocks which conform to the same protocol interfaces as the production clients: Click to expand eliza.mock.swift Code Generation This repo includes a code generator, protoc-gen-connect-swift , that works in tandem with Apple's [ proto-gen-swift ][swift-protobuf]. The latter generates types that correspond to the various message and enum types; the former generates RPC client stubs that use this runtime library to implement RPCs. You can start generating code with buf by adding a stanza like the following to your buf.gen.yaml configuration: You can read more about using buf as well as read more about the various options in the [documentation][generation-docs]. To use protoc instead of buf , add a --connect-swift out flag to protoc invocations, like so: Quick Start Head over to our [quick start tutorial][getting-started] to get started. It only takes 10 minutes to complete a working SwiftUI chat app that uses Connect-Swift! Documentation Comprehensive documentation for everything, i","default_branch":null,"files":null,"tree":[],"storefront":"/r/connectrpc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/connectrpc/connect-swift/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}