Local server for sketching
A drop-in replacement for something like python3 -m http.server built with Bun. Watches for file changes at the root and triggers page reloads via WebSockets. It also builds folder views for directories without an index.html that look like:
- Have a global install of Bun
- Clone the repo somewhere
- run
bun /.../local-mode/index.js --port <PORT>
With an alias like:
alias serve="bun ~/Tools/local-mode/index.js --port"run serve 8420 from any project root.
