A command-line code generator that produces JavaScript (Vuex) store modules and TypeScript definitions from gRPC-Web proto files. Stable version 0.21.0, low release cadence (last update 2020). Key differentiator: integrates gRPC-Web with Vuex state management, generating Vuex actions and mutations automatically. Requires external protoc and protoc-gen-grpc-web tools. Limited to unary RPCs; streaming not supported.
npm install grpc-vuexNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global installation, code generation command, and usage of a generated unary RPC function in a Vuex context.
Install protoc from https://github.com/protocolbuffers/protobuf/releases and protoc-gen-grpc-web from https://github.com/grpc/grpc-web/releases.
Use a different gRPC-Web client library if streaming is needed.
Consider using @grpc/grpc-js or grpc-web directly with custom Vuex integration.
Use a bundler (Webpack, Rollup) or convert the generated file to ESM manually.
Always include --endpoint with a valid URL.
Install via npm: npm install -g protoc-gen-grpc-web, or add its location to PATH.
Install Protocol Buffers compiler (protoc) from https://github.com/protocolbuffers/protobuf/releases and ensure it is in PATH.
Ensure the generated file is imported correctly after store creation, and that you are using Vuex 3.x (not 4.x).
grpc-vuex is a CLI code generator, not a runtime library. Run `npx grpc-vuex` to generate code, then import the generated file.