WebPageHost

Simple WebView2 CLI with auto-login, zoom, JS eval as exit code, etc.

C#, Javascript πŸ“„ MIT ⭐ …
Screenshot of WebPageHost

This is a simple CLI tool for Windows which uses GUI to open web page URLs in an embedded Microsoft WebView2 control (like a web app wrapper). It has a variety of options to control the behavior of the window and the embedded web browser (auto-login, zoom, etc.). Further, it supports evaluation and customization of the tool’s CLI exit code via JavaScript and, thus, let’s you use it for selecting anything from the web page and return it as result on standard output. I built it as a capable input box with item selection on web pages from within a command line tool or script.