Skip to content

gRPC and JSON-RPC: the type vocabulary can index the contract for one and neither protocol by name #126

Open

Description

@kinlane

The 0.23 type pattern has 248 types and no gRPC, no JSON-RPC and no OpenRPC. It does have Protobuf, GraphQL, GraphQLSchema, WSDL, ModelContextProtocol, MCPServer, A2A and AgentCard — so an APIs.json file can say "this is an MCP server" or "this is an A2A agent" and cannot name either of the two protocols those run over.

Found while adding GraphQL, gRPC and JSON-RPC to the specification map at https://standards.apievangelist.com/relationships/. Every edge on that page has to name a property in a published schema. APIs.json gets an edge to GraphQL (GraphQLSchema), and there was nothing to draw one to gRPC or JSON-RPC with.

What is already in use

Measured 2026-09-20 across 27,819 apis.yml files in the APIs.io catalog:

Type as written Pointers Repos In 0.23?
Protobuf 2,692 189 yes
OpenRPC 62 10 no
gRPC Reference 10 2 no
GrpcDocumentation 5 1 no
gRPC 4 4 no
gRPC Framework 1 1 no
JSON-RPC 1 1 no
JSONRPCAPI 1 1 no

Two different gaps in there.

1. OpenRPC — the clear one

OpenRPC is to JSON-RPC what OpenAPI is to HTTP: the machine-readable contract. It is the artifact a pointer should point at, it has one spelling in the wild, and 62 pointers across 10 repositories (celestia, comcast, fusio, iota and others) are invalid today only because the name is missing. Same shape as #121.

2. gRPC — Protobuf does not say it

Protobuf validates, so a gRPC contract can be indexed. What it cannot say is that the file is a gRPC service. Of 2,409 .proto files archived across 184 repositories, 878 declare a service (144 repositories) and the other 64% are message definitions only. A consumer reading type: Protobuf has to fetch and parse the file to find out which it has.

The four gRPC spellings in the table are people reaching for a name that is not there. Twenty pointers is not many. Four spellings for twenty pointers is the argument.

Proposed

  • Add OpenRPC.
  • Add gRPC — for a Protocol Buffers file that declares a service, or a server reflection endpoint. Protobuf stays for message schemas.
  • Not a bare JSON-RPC type. A property type names what a URL points at, and JSON-RPC 2.0 is a message envelope with no document of its own — nothing to point at except the endpoint, which baseURL already carries. OpenRPC is the pointable thing. Two pointers in the catalog use a JSON-RPC name, and both would be better served by it.

Open question: whether gRPC should be one type, or follow the GraphQL / GraphQLSchema pair already in the pattern (gRPC for the interface, Protobuf for the schema — which is arguably what we would already have).

Purely permissive: it widens a regex, so nothing that validates today stops validating. Wants a 0.24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions