Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
grpc-server-reflection
Advanced tools
Readme
gRPC server reflection for Node.js
Generate descriptor set with grpc_tools_node_protoc
using descriptor_set_out
and include_imports
, e.g.:
grpc_tools_node_protoc
--descriptor_set_out=path/to/descriptor_set.bin
--include_imports
./api/**/*.proto
import { Server } from '@grpc/grpc-js';
import { addReflection } from 'grpc-server-reflection'
const server = new Server()
addReflection(server, 'path/to/descriptor_set.bin')
grpc_cli
This project is heavily inspired and ports some parts of code from nice-grpc-server-reflection
. I respectfully burrowed some of the code based on encouragement from the author, to available solid server reflection for Node.js for general purpose. I tried to implement it myself but failed due to some incompatibilities with binary format in protobuf-js
with the C++ implementation. Using descriptor sets avoids as in the referenced project avoids the issues.
Here is a list and comparison with the similar projects:
package | full support | @grpc/grpc-js support | grpc support | framework agnostic | service detection |
---|---|---|---|---|---|
grpc-server-reflection | ✅️ | ✅️ | ✅️ | ✅️ | ✅️ |
nice-grpc-server-reflection | ✅️ | ✅️ | ❌ | ❌ | ❌ |
grpc-node-server-reflection | ❌ | ✅️ | ❌ | ❌ | ❌ |
grpc-reflection-js | ❌ | ✅️ | ❌ | ❌ | ❌ |
MIT
FAQs
gRPC server reflection for Node.js
The npm package grpc-server-reflection receives a total of 5,660 weekly downloads. As such, grpc-server-reflection popularity was classified as popular.
We found that grpc-server-reflection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.