# tsrpc/tsrpc

A TypeScript RPC framework, with runtime type checking and serialization, support both HTTP and WebSocket. It is very suitable for website / APP / games, and absolutely comfortable to full-stack TypeScript developers.

Repository: https://github.com/tsrpc/tsrpc
Canonical: https://ross.abutalabs.com/products/tsrpc
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, rpc, framework, nodejs, ajax, axios, full-stack, node, runtime-type-checking, typescript-serialization, protobuf, grpc, nestjs, express, backend-framework, full-stack-development, full-stack-developer, serialization-algorithm, typescript-rpc-framework, server-framework
Last push: 2026-02-26T19:16:11+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 35, longevity 100
- inputs: {"age_days": 3263, "days_push": 188, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1932, forks 202 (observed 2026-08-28T04:05:56.247832+00:00)

## What it is
TSRPC is a TypeScript RPC framework providing runtime type checking and binary serialization derived directly from TypeScript types, without an IDL like protobuf. It supports HTTP and WebSocket transports and targets full-stack TypeScript development for websites, apps, and games.

## Use cases
- build type-safe APIs between a TypeScript server and client
- replace protobuf with TypeScript-based binary serialization
- implement real-time WebSocket APIs for games or chat
- add runtime type checking to API request/response validation
- develop a full-stack TypeScript app with shared protocol definitions

## When to choose
- your entire stack is TypeScript and you want end-to-end type safety
- you need high-performance binary serialization without learning an IDL
- you are building game or app backends over HTTP or WebSocket

## When to avoid
- your backend is not written in TypeScript
- you need broad language client support or a large ecosystem like gRPC
- you prefer REST conventions or OpenAPI tooling

## Facets
- artifact type: framework
- maturity: active
- function: rpc, serialization, http-server, websocket, api-framework, type-system
- domain: backend, web-development, developer-tools, apis
- platform: cross-platform
- tags: full-stack, runtime-type-checking, binary-serialization, tsbuffer, no-idl, nodejs, typescript

## Member repositories
- tsrpc/tsrpc (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:56.247832+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-30T03:08:41.449441+00:00, confidence not recorded.
  - readme: https://github.com/tsrpc/tsrpc (fetched 2026-08-28T04:05:56.247832+00:00, sha deb613239e56)
- Data as of 2026-08-30T08:39:29.467469+00:00.
