askill
connectrpc

connectrpcSafety 95Repository

ConnectRPC expert for Go servers and Node.js clients. Auto-loads when working with ConnectRPC, connect-go, connect-node, protobuf RPC, buf codegen, gRPC-compatible APIs, streaming RPCs, ConnectError, interceptors, service handlers, transport configuration, or REST-to-RPC proxy patterns. Covers the architecture where Node frontend servers proxy REST+JSON from the UI into ConnectRPC calls to Go backend services.

186 stars
3.7k downloads
Updated 2/22/2026

Package Files

Loading files...
SKILL.md

ConnectRPC

ConnectRPC is a slim RPC framework that speaks three protocols: Connect (default, HTTP/1.1 + HTTP/2, browser-compatible), gRPC (HTTP/2), and gRPC-Web (HTTP/1.1). A single Go server handles all three; clients pick their protocol via transport.

Core API Quick Reference

Go Server (connectrpc.com/connect)

APIPurpose
connect.NewHandler(svc, opts...)Register a service on an HTTP mux
connect.NewClient[C](url, transport, opts...)Create a typed RPC client
connect.NewError(code, err)Create an RPC error with a status code
connect.NewErrorDetail(msg)Attach protobuf detail to an error
connect.WithInterceptors(...)Apply interceptors to handler or client
connect.WithProtoJSON()Use JSON encoding instead of binary proto
connect.WithCompressMinBytes(n)Auto-compress responses above n bytes
req.MsgTyped request message pointer
req.Header()Incoming request headers (http.Header)
connect.CallMeta(ctx)Access procedure + protocol on server

Node Client (@connectrpc/connect-node)

APIPurpose
createConnectTransport({ baseUrl })Connect protocol transport (default)
createGrpcTransport({ baseUrl })gRPC protocol transport
createClient(Service, transport)Typed client from generated schema
client.method(req, options)Unary call (returns Promise)
client.serverStream(req, options)Server streaming (returns AsyncIterable)
ConnectErrorError class with .code and .findDetails()
CodeEnum of all 16 RPC error codes

Architecture

Browser / Mobile
      │  REST+JSON (HTTP)
      ▼
┌─────────────────────┐
│  Node Frontend      │  Express / Fastify / Next.js
│  (REST API layer)   │
└────────┬────────────┘
         │  ConnectRPC (Connect or gRPC protocol)
         ▼
┌─────────────────────┐
│  Go Backend         │  net/http + connect-go handlers
│  (RPC services)     │
└─────────────────────┘

The Node server receives REST+JSON from the UI, uses @connectrpc/connect-node to call Go services via ConnectRPC, and translates results back to REST responses.

Protocol Support Matrix

ProtocolHTTP versionBrowser nativeStreaming
ConnectHTTP/1.1 + HTTP/2Yes (unary)Yes (HTTP/2)
gRPCHTTP/2 onlyNoYes
gRPC-WebHTTP/1.1Yes (via proxy)Server only

References

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 2/24/2026

Well-structured technical reference for ConnectRPC covering Go server and Node.js client APIs, architecture patterns, and protocol support. Provides good API tables and architecture diagram but lacks concrete examples and step-by-step guidance. Located in proper skills folder with useful tags. Functions effectively as a reference skill but could benefit from actionable code examples."

95
85
70
60
50

Metadata

Licenseunknown
Version-
Updated2/22/2026
Publisherwcygan

Tags

apiobservabilitysecurity