Hacker GitHub

← All repos

twitchtv/twirp

View on GitHub ↗ ★ 7,526 Go

A simple RPC framework with protobuf service definitions

26 mentions on Hacker News by 22 people: 3 stories, 23 comments · first 2018-01-25 · latest 2025-12-01

Mentions per year 26 mentions · busiest year 2022 (6)
20082026
  1. That's what Twirp ( https://github.com/twitchtv/twirp ) is about. Protobuf or JSON, over any HTTP, with a simple URL schema. It's fairly simple.
    comment by c-cube · 2025-12-01 · in Why I stopped using JSON for my APIs
  2. …UI / be accessible from the GitHub API. [0] https://github.com/actions/cache/discussions/1510 [1] https://github.com/twitchtv/twirp
  3. …the side effect of 2 (of having structured schema) is good enough. This was the idea behind twrip - https://github.com/twitchtv/twirp - not sure whether this is still actively used / maintained, but it's protobuf as json over HTTP.
  4. …that I like: - dRPC (by Storj): https://drpc.io (also compatible with gRPC) - Twirp (by Twitch): https://github.com/twitchtv/twirp (no gRPC compatibility)
    comment by rochacon · 2024-12-17 · in Go Protobuf: The New Opaque API
  5. …lovely, we kind of hit a wall when using it internally because it doesn't have a streaming story: https://github.com/twitchtv/twirp/issues/3 If you don't need to stream data it is excellent.
  6. …what you're expecting to deal with when at its core, it is still just HTTP. Something like Twirp ( https://github.com/twitchtv/twirp ) is so much better. Use existing transports and protocols, then everything else Just Works.
    comment by jameskilton · 2024-09-03 · in gRPC: 5 Years Later, Is It Still Worth It?
  7. …choice - rest, grpc, soap, a socket. I honestly don't know why more people don't give twirp a shot. https://github.com/twitchtv/twirp
    comment by gregors · 2024-07-17 · in Eight Years of GraphQL
  8. …Twirp before and it does that. It is a great middleground between gRPC and plain-HTTP services. :) https://github.com/twitchtv/twirp
    comment by rochacon · 2024-05-17 · in Demystifying the protobuf wire format
  9. …Level 0.5 seems to be what twirp[1], which I have used and enjoyed, would also fall under. [1]: https://github.com/twitchtv/twirp
    comment by stock_toaster · 2023-12-28 · in It's time to put REST to rest
  10. The next time I want to build an API, I will probably make use of https://github.com/twitchtv/twirp . I like working with Protobuf and having strongly-typed and well-defined messages, but gRPC is way, way too much. It's obviously a Google…
    comment by jameskilton · 2023-12-26 · in I Reviewed 1,000s of Opinions on gRPC
  11. …(Twitch light version of gRPC, with optional JSON encoding, HTTP1 support and without streaming) - https://github.com/twitchtv/twirp - Connect - "Better gRPC" https://connect.build/docs/introduction/
    comment by divan · 2023-04-29 · in A detailed comparison of REST and gRPC
  12. …good parts, protobufs and generated code, but its supports regular http, by no including streaming. https://github.com/twitchtv/twirp
    comment by mcfedr · 2022-08-08 · in Why does gRPC insist on trailers?
  13. Take a look at Twirp ( https://github.com/twitchtv/twirp ) open sourced by TwitchTv. It's a lot lighter weight than gRPC. It does use Protobufs but addresses some of the concerns you mentioned, such as being able to test with JSON…
  14. …but alas. It was the #3 issue opened on twirp repository, but they never settled on a solution. https://github.com/twitchtv/twirp/issues/3 One super underrated feature Connect offers for Go devs is access to the request/response headers.…
    comment by mf192 · 2022-06-01 · in Connect: A Better gRPC
  15. …that helps for your use case. Twitch has open sourced their HTTP1 protobuff client/server library: https://github.com/twitchtv/twirp
    comment by ItMayWorkTryIt · 2022-05-09 · in Ask HN: Is Heroku Being Sunset?
  16. Just be aware of the lack of streams: https://github.com/twitchtv/twirp/issues/3
  17. Have you seen: https://github.com/twitchtv/twirp
    comment by T-J-L · 2022-03-12 · in How to Design Better APIs
  18. …alternatives while keeping protobuf for serialization. Their development is Go focused though. [1] https://github.com/twitchtv/twirp [2] https://github.com/storj/drpc/
    comment by PhilippGille · 2021-08-15 · in Cap'n Proto 0.9
  19. …generators mainly for Go that also explicitly says it's simpler than gRPC is Twirp from Twitch: https://github.com/twitchtv/twirp I haven't used any of the two yet though so I can't comment on their differences.
  20. …- Sentry - New Relic - gRPC and Twirp [2] - Netlify - Firebase [1] https://www.searchbx.com [2] https://github.com/twitchtv/twirp
  21. I prefer twirp's model of no http2 requirement and supports JSON. https://github.com/twitchtv/twirp I do think twirp code could be refactored and made a lot better though.
    comment by pkieltyka · 2018-10-24 · in gRPC-Web is going GA
  22. …in that I can use the same Protobuf file to describe a Twirp or gRPC Service - it's great. [1]: https://github.com/twitchtv/twirp So what do you think would be a better step forward?
    comment by asdkhadsj · 2018-10-24 · in gRPC-Web is going GA
  23. …gRPC to be a bit too heavyweight and complex. I'm pretty excited about twirp[1] right now. [1]: https://github.com/twitchtv/twirp
    comment by stock_toaster · 2018-01-25 · in gRPC-Go Engineering Practices