项目作者: ulexxander

项目描述 :
Tools that helps with development of services that are using NATS as a messaging system
高级语言: TypeScript
项目地址: git://github.com/ulexxander/nats-inspector.git
创建时间: 2021-05-03T21:55:00Z
项目社区:https://github.com/ulexxander/nats-inspector

开源协议:

下载


NATS Inspector

Inspect, test and do cool stuff with your Nats network.

image

Currently supported features

  • Multi server support: create, delete, resume, pause connections on the fly
  • Restoring connections on boot (persisting data in sqlite)
  • Per server subscriptions support - subs of inactive servers are paused automatically
  • Create any number of subscriptions you want (different subjects)
  • View incoming messages for each subject
  • Making request: define subject, payload and see response you got using handy code editor
  • Saving request history: view subject, your input (located in localStorage)
  • One-click copy previous request anytime you want

Running in docker

  • Build an image: docker build -t nats-inspector .
  • Then run it: docker run --rm -p 4001:80 nats-inspector

Or use scripts from root Makefile:

  • inspector-build
  • inspector-up

So go ahead and open it in your browser:

http://localhost:4001

You should see running web app and u can start clicking on things.

Environment variables

  1. # require dev dependency "dotenv" to parse and load .env file
  2. # use in development (yarn dev sets it to true), disabled by default
  3. ENV_FILE=false
  4. # override port on which http/websocket server will be listening
  5. SERVER_PORT=80