Socket
Socket
Sign inDemoInstall

github.com/twitchtv/twirp

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/twitchtv/twirp

Copyright 2018 Twitch Interactive, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package twirp provides core types used in generated Twirp servers and client. Twirp services handle errors using the `twirp.Error` interface. For example, a server method may return an InvalidArgumentError: And the same twirp.Error is returned by the client, for example: Clients may also return Internal errors if something failed on the system: the server, the network, or the client itself (i.e. failure parsing response). Copyright 2018 Twitch Interactive, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Copyright 2018 Twitch Interactive, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Version published

Readme

Source

Twirp Logo Build Status Go Report Card GoDoc


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/http Server. 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!

Read more about the motivation behind on the announcement blog post.

Documentation

Implementations in other languages

This repo contains the generator and runtime library for the Go implementation.

Here is a list of some third-party implementations in other languages.

LanguageClientsServersRepository
Python3github.com/verloop/twirpy
Javagithub.com/fajran/protoc-gen-twirp_java_jaxrs
Javagithub.com/devork/flit
JavaScriptgithub.com/thechriswalker/protoc-gen-twirp_js
JavaScriptgithub.com/Xe/twirp-codegens/cmd/protoc-gen-twirp_jsbrowser
JavaScriptgithub.com/tatethurston/TwirpScript
Typescriptgithub.com/hopin-team/twirp-ts
Typescriptgithub.com/larrymyers/protoc-gen-twirp_typescript
Typescriptgithub.com/tatethurston/TwirpScript
Typescriptgithub.com/timostamm/protobuf-ts
Rubygithub.com/twitchtv/twirp-ruby
Rustgithub.com/cretz/prost-twirp
Scalagithub.com/soundcloud/twinagle
Swaggergithub.com/go-bridget/twirp-swagger-gen
PHPgithub.com/twirphp/twirp
Dartgithub.com/apptreesoftware/protoc-gen-twirp_dart
Elixirgithub.com/keathley/twirp-elixir
Swiftgithub.com/CrazyHulk/protoc-gen-swiftwirp
Crystalgithub.com/mloughran/twirp.cr

Support and Community

We have a channel on the Gophers slack, #twirp, which is the best place to get quick answers to your questions. You can join the Gopher slack here.

Releases

Twirp follows semantic versioning through git tags, and uses Github Releases for release notes and upgrade guides: Twirp Releases

Contributing

Check out CONTRIBUTING.md for notes on making contributions.

License

This library is licensed under the Apache 2.0 License.

FAQs

Last updated on 24 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc