Socket
Book a DemoInstallSign in
Socket

grpc-web-proxy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-web-proxy

Web UI for interacting with gRPC services

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

grpc-web-proxy

A web ui for interacting with gRPC services

Installation

npm i -g grpc-web-proxy

Usage

Startup

grpc-web-proxy

Will start the proxy on default port 8080

Execute with ---port <port> or -p <port> command line argument to start on a custom port.

grpc-web-proxy --port 8082

Requests

The gRPC proxy can be used with API testing tools like Postman.

connect to gRPC service

POST 0.0.0.0:<port>/connect

with JSON body:

{
  "address": "<gRPC service address>:<gRPC service port>",
  "pathToProtoFile": "<absolute path to gRPC service definition proto file>",
  "servicePath": "[<package name>.]<service name>"
}

Creates gRPC client and responds with service info.

get connection info

GET 0.0.0.0:<port>/connection

Responds with service info if connection is established.

execute gRPC procedure

POST 0.0.0.0:<port>/execute

with JSON body:

{
	"methodName": "<method name>",
  "params": {
    // method params
  }
}

disconnect from gRPC service

POST 0.0.0.0:<port>/disconnect

Destroys gRPC client.

Web UI

WIP. Not available yet.

Keywords

grpc

FAQs

Package last updated on 04 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.