Remotivelabs-grpc-web-stubs provides generated JavaScript/TypeScript gRPC-web stubs for RemotiveBroker, enabling browser-based gRPC calls via gRPC-web. Version 0.0.12 is current. Key differentiator: pre-generated stubs for RemotiveBroker API, eliminating manual protoc compilation. Uses @improbable-eng/grpc-web for transport. Minimal dependencies and ESM-first distribution.
npm install remotivelabs-grpc-web-stubsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example of creating a GrpcWebStubs client, constructing a Visibility request, and making a gRPC-web call to RemotiveBroker.
Update to use `new GrpcWebStubs({ baseUrl, apiKey })` instead of `new GrpcWebStubs(baseUrl, apiKey)`.Pass baseUrl via the constructor configuration object.
Use named subpath imports: `import { Visibility } from 'remotivelabs-grpc-web-stubs/visibility_pb'`.Run `npm install google-protobuf @improbable-eng/grpc-web`.
Access response via `.response` property: `result.response.toObject()`.
Ensure package version >=0.0.12 and import path is correct. Also check if your bundler supports package.json exports field.
Use `import { GrpcWebStubs } from 'remotivelabs-grpc-web-stubs'` (named import).Access `response.response.toObject()` if using version >=0.0.11.