A Node.js library that implements the Action Protocol over gRPC, providing an abstract layer for microservice communication. Version 1.0.1 is the latest stable release; the project appears to be in early stages with infrequent updates. It enables defining actions, data, and token fields in gRPC payloads for service-to-service messaging. Differentiators include a simple JSON-like action format and automatic code generation via `npm run generate`.
npm install action-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a gRPC client and invoke an action with token authentication.
Include a 'token' field in the payload object.
Ensure the server is started with `ActionService` before calling client methods.
Use 'action' instead of 'type' in the payload.
Run `npm rebuild grpc` or install platform-specific package like `grpc` build tools.
Use `import { ActionClient } from 'action-grpc'` and create an instance.No dependency data recorded yet.