Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
grpc-server-reflection
Advanced tools
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 4,370 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.