Registry / devops / npm-pando-grpc

npm-pando-grpc

JSON →
library1.6.15jsnpmunverified

npm-pando-grpc is a gRPC-web client library for interacting with the Pando API. Version 1.6.15 is the current stable release. It requires protoc-gen-grpc-web and protoc to be installed locally to generate JavaScript client stubs from .proto files. The package uses CommonJS and targets Node.js environments. Compared to similar gRPC-web libraries, it provides a straightforward way to define service calls and message types via generated code, but the setup process is manual and system-dependent.

npm install npm-pando-grpc
INSTALL
IMPORT
SIG · NPM-PANDO-GRPC
N
npm-pando-grpc
devopsjavascriptv1.6.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PandoServiceClient
import { PandoServiceClient } from 'npm-pando-grpc'
const { PandoServiceClient } = require('npm-pando-grpc')
The package is ESM-only; use import syntax.
GetSomethingRequest
import { GetSomethingRequest } from 'npm-pando-grpc'
Named import for request message types.
PandoServicePromiseClient
import { PandoServicePromiseClient } from 'npm-pando-grpc'
const PandoServicePromiseClient = require('npm-pando-grpc').PandoServicePromiseClient
Promise-based client is also available via named import.

Shows how to import the gRPC client, create a request object, and make an RPC call.

import { PandoServiceClient, GetSomethingRequest } from 'npm-pando-grpc'; const client = new PandoServiceClient('http://localhost:8080', null, null); const request = new GetSomethingRequest(); request.setId(123); client.getSomething(request, {}, (err, response) => { if (err) { console.error(err); } else { console.log(response.getData()); } });
Debug
Known issues
breakingGenerated code only works with protoc-gen-grpc-web and protoc installed locally; version mismatches cause silent build failures.
fix
Install protoc and protoc-gen-grpc-web versions compatible with your .proto files.
affects: >=1.0
breakingThe package does not ship pre-generated clients; you must run build script to generate them.
fix
Run 'npm run build' after installation.
affects: >=1.0
gotchaEnvironment variables for protoc may not persist after terminal restart, causing build errors.
fix
Add protoc and protoc-gen-grpc-web to system PATH permanently.
affects: >=1.0
deprecatedCallback-based client (PandoServiceClient) is deprecated; use Promise-based client (PandoServicePromiseClient).
fix
Switch to PandoServicePromiseClient with async/await.
affects: >=1.5
gotchaPackage uses 'grpc-web' which is unmaintained; security vulnerabilities may exist.
fix
Consider migrating to 'protoc-gen-es' or '@grpc/grpc-js' for newer gRPC-web support.
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'npm-pando-grpc'
Package not installed correctly or build step incomplete.
fix
Run 'npm install' and 'npm run build' in the project root.
Error: Cannot find module 'google-protobuf'
Missing peer dependency google-protobuf.
fix
npm install google-protobuf
Error: protoc-gen-grpc-web: program not found or is not executable
protoc-gen-grpc-web is not installed or not in PATH.
fix
Download protoc-gen-grpc-web and add its directory to system PATH.
Upgrade
Version history
1.6.15latest on npm
Audit
Dependencies
google-protobufrequiredRequired for protobuf message serialization/deserialization
grpc-webrequiredProvides gRPC-web client functionality
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
npm-pando-grpc — npm install npm-pando-grpc · libregistry