This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
@grpc/grpc-js with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Node 12 is recommended. The exact set of compatible Node versions can be found in the
engines field of the
npm install @grpc/grpc-js
This library does not directly handle
.proto files. To use
.proto files with this library we recommend using the
@grpc/grpc-js is almost a drop-in replacement for
grpc, but you may need to make a few code changes to use it:
grpc.load, that function is not available in this library. You should instead load your
@grpc/proto-loaderand load the resulting package definition objects into
grpc-tools, you should instead generate your files using the
grpc-tools, then load the object exported by the generated file into
Server#bindto bind ports, you will need to use
The public API of this library follows semantic versioning, with some caveats:
Callis only exposed due to limitations of TypeScript. It should not be considered part of the public API.
grpclibrary is likely an error and should not be considered part of the public API.