When you install the WebLabel program on your computer, it runs a small web server that facilitates communication between the printers installed on your device and the web pages and applications accessed in your browser. Your web page can send print requests via JavaScript or directly through POST requests in forms.
Using Javascript, you can make a request that returns a list of local printers in JSON format.
Using Javascript, you can make a request to http://localhost:8201/print/list that returns a list of local printers in JSON format. You can display this list on your web page as you prefer. WebLabel offers Javascript code by default that can be included to automatically generate the checkbox and print button.
Printing is performed when WebLabel receives a POST request at http://localhost:8201/print with the fields data (e.g., zpl commands) and printer (the name of the desired printer).