Gathering detailed insights and metrics for grpc
Gathering detailed insights and metrics for grpc
Gathering detailed insights and metrics for grpc
Gathering detailed insights and metrics for grpc
@grpc/grpc-js
gRPC Library for Node - pure JS implementation
@grpc/proto-loader
gRPC utility library for loading .proto files
@opentelemetry/instrumentation-grpc
OpenTelemetry instrumentation for `@grpc/grpc-js` rpc client and server for gRPC framework
@opentelemetry/otlp-grpc-exporter-base
OpenTelemetry OTLP-gRPC Exporter base (for internal use only)
npm install grpc
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@grpc/grpc-js 1.13.4
Updated on May 21, 2025
@grpc/proto-loader 0.7.15
Updated on Apr 18, 2025
@grpc/proto-loader 0.7.14
Updated on Apr 17, 2025
@grpc/grpc-js 1.13.3
Updated on Apr 10, 2025
@grpc/grpc-js 1.13.2
Updated on Mar 26, 2025
@grpc/grpc-js 1.13.1
Updated on Mar 21, 2025
TypeScript (85.98%)
JavaScript (11.17%)
C++ (1.36%)
Shell (0.91%)
Dockerfile (0.24%)
CMake (0.13%)
Batchfile (0.12%)
PowerShell (0.1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
4,683 Stars
5,059 Commits
675 Forks
72 Watchers
51 Branches
187 Contributors
Updated on Jul 14, 2025
Latest Version
1.24.11
Package Id
grpc@1.24.11
Size
4.74 MB
NPM Version
6.14.13
Node Version
14.17.0
Published on
Jul 23, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
As of April 2021 this library is deprecated and will no longer receive any updates. We recommend using @grpc/grpc-js
instead.
node
: This requires node
to be installed, version 4.0
or above. If you instead have the nodejs
executable on Debian, you should install the nodejs-legacy
package.
Note: If you installed node
via a package manager and the version is still less than 4.0
, try directly installing it from nodejs.org.
Install the gRPC NPM package
1npm install grpc
The following command can be used to build from source when installing the package from npm:
npm install grpc --build-from-source
The --build-from-source
option will work even when installing another package that depends on grpc
. To build only grpc
from source, you can use the argument --build-from-source=grpc
.
The official electron documentation recommends to build all of your native packages from source. While the reasons behind this are technically good - many native extensions won't be packaged to work properly with electron - the gRPC source code is fairly difficult to build from source due to its complex nature, and we're also providing working electron pre-built binaries. Therefore, we recommend that you do not follow this model for using gRPC with electron. Also, for the same reason, electron-rebuild
will always build from source. We advise you to not use this tool if you are depending on gRPC. Please note that there's not just one way to get native extensions running in electron, and that there's never any silver bullet for anything. The following instructions try to cater about some of the most generic ways, but different edge cases might require different methodologies.
The best way to get gRPC to work with electron is to do this, possibly in the postinstall
script of your package.json
file:
npm rebuild --target=2.0.0 --runtime=electron --dist-url=https://atom.io/download/electron
Note that the 2.0.0
above is the electron runtime version number. You will need to update this every time you go on a different version of the runtime.
If you have more native dependencies than gRPC, and they work better when built from source, you can explicitely specify which extension to build the following way:
npm rebuild --build-from-source=sqlite3 --target=2.0.0 --runtime=electron --dist-url=https://atom.io/download/electron
This way, if you depend on both grpc
and sqlite3
, only the sqlite3
package will be rebuilt from source, leaving the grpc
package to use its precompiled binaries.
git submodule update --init --recursive
from the repository root.cd packages/grpc-native-core
.npm install --build-from-source
.Note: On Windows, this might fail due to nodejs issue #4932 in which case, you will see something like the following in npm install
's output (towards the very beginning):
..
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
WINDOWS_BUILD_WARNING
"..\IMPORTANT: Due to https:\github.com\nodejs\node\issues\4932, to build this library on Windows, you must first remove C:\Users\jenkins\.node-gyp\4.4.0\include\node\openssl"
...
..
To fix this, you will have to delete the folder C:\Users\<username>\.node-gyp\<node_version>\include\node\openssl
and retry npm install
You can configure the location from which the pre-compiled binaries are downloaded during installation.
npm install --grpc_node_binary_host_mirror=https://your-url.com
Or defining grpc_node_binary_host_mirror
in your .npmrc
.
See the API Documentation.
To run the test suite, simply run npm test
in the install location.
7.5/10
Summary
Prototype pollution in grpc and @grpc/grpc-js
Affected Versions
< 1.24.4
Patched Versions
1.24.4
Reason
no dangerous workflow patterns detected
Reason
26 commit(s) and 14 issue activity found in the last 90 days -- score normalized to 10
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
Found 2/13 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More