A simple RPC framework with protobuf service definitions
Twirp is a framework for service-to-service communication emphasizing simplicity and minimalism. It generates routing and serialization from API definition files and lets you focus on your application's logic instead of thinking about folderol like HTTP methods and paths and JSON.
Twirp is similar to gRPC, but without the custom HTTP server and transport implementations: it runs on the standard library's extremely-well-tested-and-high-performance
net/httpServer. It can run on HTTP 1.1, not just http/2, and supports JSON serialization for easy debugging.
Along the way, you get autogenerated clients and a simple, smart framework for passing error messages. Nice!
For more on the motivation behind Twirp (and a comparison to REST APIs and gRPC), the announcement blog post is a good read.
This repo contains the generator and runtime library for the Go implementation.
Here is a list of some third-party implementations in other languages.
Twirp follows semantic versioning through git tags, and uses Github Releases for release notes and upgrade guides: Twirp Releases
Check out CONTRIBUTING.md for notes on making contributions.
This library is licensed under the Apache 2.0 License.