connectrpc/examples-go

An example Go server built with Connect.

139

stars

33

commits

Go

primary language

Jul 17, 2025

updated

demo.connectrpc.com
connectrpc
go
grpc
protobuf
rpc
Browse cluster: gRPC and RPC frameworks

README

examples-go

Build

examples-go contains an example RPC service built with Connect. Its API is defined by a Protocol Buffer schema, and the service supports the gRPC, gRPC-Web, and Connect protocols.

The service emulates the DOCTOR script written for Joseph Weizenbaum's 1966 ELIZA natural language processing system. It responds to your statements as a stereotypical psychotherapist might; since the original program was a demonstration of the superficiality of human-computer communication, the therapy is not very convincing.

For more on Connect, see the announcement blog post, the documentation on connectrpc.com, or the Connect repo.

Example

The service is running on https://demo.connectrpc.com. To make an RPC with cURL, using the Connect protocol:

curl --header "Content-Type: application/json" \
    --data '{"sentence": "I feel happy."}' \
    https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say

To make the same RPC, but using grpcurl and the gRPC protocol:

grpcurl \
    -d '{"sentence": "I feel happy."}' \
    demo.connectrpc.com:443 \
    connectrpc.eliza.v1.ElizaService/Say

Offered under the Apache 2 license.

Contributors

srikrsna-buf

12 commits

dependabot[bot]

10 commits

akshayjshah

5 commits

smallsamantha

3 commits

connectrpc/examples-go

An example Go server built with Connect.

139

stars

33

commits

Go

primary language

Jul 17, 2025

updated

demo.connectrpc.com
connectrpc
go
grpc
protobuf
rpc
Browse cluster: gRPC and RPC frameworks

README

examples-go

Build

examples-go contains an example RPC service built with Connect. Its API is defined by a Protocol Buffer schema, and the service supports the gRPC, gRPC-Web, and Connect protocols.

The service emulates the DOCTOR script written for Joseph Weizenbaum's 1966 ELIZA natural language processing system. It responds to your statements as a stereotypical psychotherapist might; since the original program was a demonstration of the superficiality of human-computer communication, the therapy is not very convincing.

For more on Connect, see the announcement blog post, the documentation on connectrpc.com, or the Connect repo.

Example

The service is running on https://demo.connectrpc.com. To make an RPC with cURL, using the Connect protocol:

curl --header "Content-Type: application/json" \
    --data '{"sentence": "I feel happy."}' \
    https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say

To make the same RPC, but using grpcurl and the gRPC protocol:

grpcurl \
    -d '{"sentence": "I feel happy."}' \
    demo.connectrpc.com:443 \
    connectrpc.eliza.v1.ElizaService/Say

Offered under the Apache 2 license.

Contributors

srikrsna-buf

12 commits

dependabot[bot]

10 commits

akshayjshah

5 commits

smallsamantha

3 commits

Languages

Go

88.4%

Makefile

9.7%

Dockerfile

1.9%