Connect RPC
Simple, reliable, interoperable.
Protobuf RPC that works.
Connect is a family of libraries for building browser and gRPC-compatible APIs. If you're tired of hand-written boilerplate and turned off by massive frameworks, Connect is for you.
Connect-Web
- Github - connect-web
- Buf | Connect-Web: It's time for Protobuf and gRPC to be your first choice in the browser
Simple, reliable, interoperable. A better gRPC-Web.
브라우저에서 RPC 호출하는 TypeScript 라이브러리
Features
- 구글의 grpc-web 은 TS지원이 약하고, JSON 및 ECMAScript 모듈 지원이 안되고, 생성된 코드가 10년된 Java같음
- Connect-web은 손으로 작성한 듯한 REST 클라이언트 같은 코드를 생성
- 2개의 RPC 프로토콜 지원 : gRPC-Web 과 Connect의 자체 프로토콜
- Connect 프로토콜은 간단한 POST-only 프로토콜
- HTTP/1.1 또는 HTTP/2 에서 동작
- gRPC 와 gRPC-Web의 좋은 부분만 가져옴
- React, Angular, Svelte 등과 잘 연동
See also
- RPC
- TypeScript
- buf
- gRPC
- grpc-web
- Protobuf