Awesome Open Source
Awesome Open Source

connect-demo

Build Report Card

connect-demo is an example RPC service built with connect-go. 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 connect.build, or the connect-go repo.

Example

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

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

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

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

Legal

Offered under the Apache 2 license.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Golang (167,153
Connect (8,636
Rpc (8,169
Grpc (5,238
Protocol Buffers (4,273