Twirp website screenshot

Twirp

Twirp is a simple RPC framework built on Protocol Buffers, created by Twitch, that generates routing and serialization code from Protobuf service definitions for Go and other languages. Similar to gRPC but runs on the standard library's net/http Server without custom HTTP server or transport implementations. Supports both binary Protobuf and JSON serialization, making debugging easy. Uses HTTP POST for all requests with URLs in the format /twirp/[Package].[Service]/[Method]. Protocol version 7 is the current stable version. Licensed under Apache 2.0.

1 APIs 0 Features
Protocol BuffersRPCGoSDKsOpen SourceProtobuf

APIs

Twirp RPC Framework

Twirp is a simple RPC framework with protobuf service definitions. Define your service in a .proto file and Twirp generates servers and clients implementing the Twirp wire proto...

Pricing Plans

Twirp Plans Pricing

3 plans

PLANS

Rate Limits

Twirp Rate Limits

5 limits

RATE LIMITS

FinOps

Twirp Finops

FINOPS

Semantic Vocabularies

Twirp Context

0 classes · 5 properties

JSON-LD

JSON Structure

Twirp Error Structure

0 properties

JSON STRUCTURE

Resources

🔗
Website
Website
🔗
Documentation
Documentation
👥
GitHubOrganization
GitHubOrganization
👥
GitHubRepository
GitHubRepository
🔗
Wire Protocol
Wire Protocol
🔗
License
License
🔗
Contributing
Contributing
🔗
JSONSchema
JSONSchema
🔗
JSONLD
JSONLD
🔗
Vocabulary
Vocabulary

Sources

apis.yml Raw ↑
aid: twirp
name: Twirp
description: Twirp is a simple RPC framework built on Protocol Buffers, created by Twitch, that generates routing and serialization
  code from Protobuf service definitions for Go and other languages. Similar to gRPC but runs on the standard library's net/http
  Server without custom HTTP server or transport implementations. Supports both binary Protobuf and JSON serialization, making
  debugging easy. Uses HTTP POST for all requests with URLs in the format /twirp/[Package].[Service]/[Method]. Protocol version
  7 is the current stable version. Licensed under Apache 2.0.
kind: contract
access: 3rd-Party
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
tags:
- Protocol Buffers
- RPC
- Go
- SDKs
- Open Source
- Protobuf
created: '2026-03-27'
modified: '2026-05-03'
url: https://raw.githubusercontent.com/api-evangelist/twirp/refs/heads/main/apis.yml
specificationVersion: '0.19'
apis:
- aid: twirp:twirp-framework
  name: Twirp RPC Framework
  description: 'Twirp is a simple RPC framework with protobuf service definitions. Define your service in a .proto file and
    Twirp generates servers and clients implementing the Twirp wire protocol. Services are exposed over HTTP using POST requests
    with paths in the form /twirp/[Package].[Service]/[Method]. Supports both Protobuf binary encoding (Content-Type: application/protobuf)
    and JSON encoding (Content-Type: application/json). Includes a Go runtime and protoc-gen-twirp code generator plugin.'
  humanURL: https://twitchtv.github.io/twirp/
  baseURL: https://twitchtv.github.io/twirp/
  tags:
  - Protocol Buffers
  - RPC
  - Go
  - Code Generation
  properties:
  - type: Documentation
    url: https://twitchtv.github.io/twirp/docs/intro.html
  - type: GettingStarted
    url: https://twitchtv.github.io/twirp/docs/install.html
  - type: GitHub
    url: https://github.com/twitchtv/twirp
  - type: Wire Protocol
    url: https://github.com/twitchtv/twirp/blob/main/PROTOCOL.md
common:
- type: Website
  url: https://twitchtv.github.io/twirp/
- type: Documentation
  url: https://twitchtv.github.io/twirp/docs/intro.html
- type: GitHubOrganization
  url: https://github.com/twitchtv
- type: GitHubRepository
  url: https://github.com/twitchtv/twirp
- type: Wire Protocol
  url: https://github.com/twitchtv/twirp/blob/main/PROTOCOL.md
- type: License
  url: https://github.com/twitchtv/twirp/blob/main/LICENSE
- type: Contributing
  url: https://github.com/twitchtv/twirp/blob/main/CONTRIBUTING.md
- type: JSONSchema
  url: json-schema/twirp-error-schema.json
- type: JSONLD
  url: json-ld/twirp-context.jsonld
- type: Vocabulary
  url: vocabulary/twirp-vocabulary.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com