{"repo":"baalimago/wd-41","free":true,"listed":false,"github":"https://github.com/baalimago/wd-41","clone":"git clone https://github.com/baalimago/wd-41.git","description":"Web-Development 41, a static web server with live-reload","language":"Go","stars":154,"topics":["cli","development","golang","web-development-tools","websocket"],"license":"MIT","category":"networking-infra","readme_excerpt":"(w)eb (d)evelopment-(41) Test coverage: 67.000% 😌👏 This is a simple static webserver which live reloads your web-browser on changes to the hosted files. Usage wd-41 s serve or wd-41 s serve for hosting the current work directory Getting started You may also use the setup script: Architecture 1. First the content of the website is copied to a temporary directory, this is the mirrored content 1. Every mirrored file is inspected for type, if it's text/html, a delta-streamer.js script is injected 1. The web server is started, hosting the mirrored content 1. The delta-streamer.js in turn sets up a websocket connection to the wd-41 webserver 1. The original file system is monitored, on any file changes: 1. the new file is copied to the mirror (including injections) 1. the file name is propagated to the browser via the websocket 1. The delta-streamer.js script then checks if the current window origin is the updated file. If so, it reloads the page.","default_branch":null,"files":null,"tree":[],"storefront":"/r/baalimago","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/baalimago/wd-41/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."}