{"repo":"nikolaydubina/watchhttp","free":true,"listed":false,"github":"https://github.com/nikolaydubina/watchhttp","clone":"git clone https://github.com/nikolaydubina/watchhttp.git","description":"🌺 Run command periodically and expose latest STDOUT as HTTP endpoint","language":"Go","stars":35,"topics":["command-line","linux","tooling","unix","visualization","watch","dashboard","dashboards","http","json"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"🌺 watchhttp Run command periodically and expose latest STDOUT as HTTP endpoint 300LOC pure Go automatic browser refresh via Refresh header animations minimal dependencies no Javascript no WebAssembly Live animated delta of from transformed cURL JSON https://user-images.githubusercontent.com/2933061/226150800-d591624e-dc2d-482f-8b1f-c2295699fac7.mov YAML https://user-images.githubusercontent.com/2933061/227462275-fcc5c49f-ce6b-4892-80fe-4c6e0ac16310.mov Fetch and transform periodically with curl and jq Live graph of Kubernetes resources with kubectl and graphviz Live status of Kubernetes resource with kubectl Live system metrics with vmstat Watch file tail or cat --- Appendix A: Related Work - as of 2023-03-12, awesome-go does not mention any tools that can do this - netcat can not do this - mantyr/jsonhtml is experimental JSON to HTML renderer, assignment, no go mod - shovon/json-pretty-printer is experimental JSON to HTML renderer, no reflect, direct JSON string parsing, assignment, no go mod - https://github.com/marchoy/pretty-printer is experimental JSON prettifier to HTML renderer, adds syntax highlighting, no reflect, direct JSON string parsing, no tests, no go mod Appendix B: Alternative with file server + bash Similar effect can be achieved with file server and bash, albeit headers would not be set. Appendix C: Paths Not Taken Expose STDIN as HTTP endpoint The problem is how to differentate separate responses? Is empty line valid separator of responses? There are clea","default_branch":null,"files":null,"tree":[],"storefront":"/r/nikolaydubina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nikolaydubina/watchhttp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}