/grpc-gateway-devtools

Chrome & Firefox Browser extension to aid gRPC-Gateway development

Primary LanguageJavaScriptMIT LicenseMIT

gRPC-Gateway Dev Tools

PRs Welcome

gRPC-Gateway Dev Tools Now supports dark mode.

Installation

Chrome

Via the Chrome Web Store (recommended)

or

  1. build it with make build
  2. open the Extension Management page by navigating to chrome://extensions.
  3. enable Developer Mode by clicking the toggle switch next to "Developer mode".
  4. Click the LOAD UNPACKED button and select the extension ./build directory.

Firefox

Via Firefox Browser Add-Ons (recommended)

or

  1. build and package with make package
  2. enter about:debugging in the URL bar of Firefox
  3. click This Firefox > Load Temporary Add-on...
  4. select the grpc-web-devtools.zip extention file

Usage

import {UnaryCall} from '@protobuf-ts/runtime-rpc';

const enableDevTools = window.__GRPC_DEVTOOLS__ || (() => {});
const client = new EchoServiceClient('http://myapi.com');
enableDevTools([
  client,
], UnaryCall);

NOTE: Requires that your generated client(s) use @protobuf-ts.