npm
firecomm
A feature library for gRPC-Node. Typed, streaming gRPC services with less boilerplate.
- npm downloads / yr
- 1.1k
- latest version
- v2.0.5
- license
- Apache-2.0
Problem
gRPC in Node was powerful but hard to use. You had to load .proto files by
hand, and streams, metadata, errors and channel options each had a different API.
What I built
An open-source library on top of gRPC-Node:
- One
build()call packages a.protofile for servers and client stubs. - A single chainable API for unary, client-streaming, server-streaming and bidirectional calls.
- Event listeners for data, metadata, cancellation, errors and status.
- Express-like middleware on the server and interceptors on the client.
- Access to all 74 gRPC channel options, plus idempotent, cacheable, corked
and
waitForReadyrequests.
Stack
- Node.js
- gRPC
- Protocol Buffers
- JavaScript
Results
- Published on npm, with about 1.1k downloads a year.
- Docs site at firecomm.github.io.
- My part: co-architect and maintainer. I designed the
.protobuild step, server binding, method handling, client-stub mapping, and the middleware and interceptor layers. - Built-in health checks made services more fault tolerant: long-lived TCP connections and fewer lost HTTP/2 frames.