ProtoCat is a modern, minimalist type-safe gRPC framework for Node.js, currently at version 0.6.5-beta.1. It provides a clean middleware-based API for building gRPC services with full TypeScript support. Unlike alternatives like Mali, ProtoCat emphasizes simplicity and type safety out of the box. The project is still in beta, with active development but no stable release yet. Release cadence is irregular as it's a newer project. Key differentiators include automatic type inference from generated protobuf definitions and a lightweight footprint.
npm install protocatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a ProtoCat server, add a gRPC service with a handler, and start listening. Uses async handlers and TypeScript types.
Pin exact version and test upgrades thoroughly.
Use protoc to generate TypeScript/JavaScript service stubs first.
Always call call.response.set* methods inside handlers.
Check generated code accessors for your protobuf version.
Run npm install protocat and use import { ProtoCat } from 'protocat'.Use import { ProtoCat } from 'protocat' instead of import ProtoCat from 'protocat'.Generate service definitions using protoc and import the correct _grpc_pb file.