# timostamm/protobuf-ts

Protobuf and RPC for TypeScript

Repository: https://github.com/timostamm/protobuf-ts
Canonical: https://ross.abutalabs.com/products/protobuf-ts
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: twirp, grpc-web, bigint, code-size, reflection, typescript, protobuf, custom-options, well-known-types, strict-conformance, grpc-server, grpc-client, protocol-buffers
Last push: 2026-07-22T02:21:53+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 93, release rhythm 40, longevity 100
- inputs: {"age_days": 2189, "days_push": 43, "days_rel": 441, "gap_med": 23.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1342, forks 151 (observed 2026-08-28T04:04:26.331137+00:00)

## What it is
A pure TypeScript Protocol Buffers implementation with a protoc code-generation plugin and RPC client/server support. It generates typed message classes with binary/JSON serialization, reflection, and clients for gRPC, gRPC-Web, and Twirp.

## Use cases
- serialize protobuf messages in TypeScript
- generate TypeScript code from .proto files
- call gRPC services from a browser
- build a Twirp or gRPC server in Node.js with TypeScript
- handle 64-bit integers with bigint in protobuf
- use proto3 JSON format with strict conformance

## When to choose
- You want type-safe protobuf serialization in pure TypeScript
- You need gRPC, gRPC-Web, or Twirp clients/servers in Node.js or the browser
- You need strict protobuf conformance, reflection, or well-known types support

## When to avoid
- You use JavaScript without TypeScript and don't want generated typed code
- You need protobuf support for languages other than TypeScript
- You need a runtime-only schema-less protobuf decoder without code generation

## Facets
- artifact type: library
- maturity: active
- function: serialization, rpc, http-client
- domain: developer-tools, apis, web-development, backend
- platform: browser, cross-platform
- tags: protobuf, grpc, grpc-web, twirp, bigint, proto3, code-generation, reflection, nodejs, typescript

## Member repositories
- timostamm/protobuf-ts (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:26.331137+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:43:42.685243+00:00, confidence not recorded.
  - readme: https://github.com/timostamm/protobuf-ts (fetched 2026-08-28T04:04:26.331137+00:00, sha 9cd878354bc6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
