π A lightweight Web server for static HTML with live reload for instant updates during development. It uses inotify for file watching and WebSocket for auto reloads. Written in Go solely with standard library.
To run dotdev, provide the HTML file you wish to serve as the first argument. You can optionally specify the host and port:
dotdev <file-to-watch> [--host <host>] [--port <port>]
Create an HTML file and serve it:
echo "<html><body>Hello World</body></html>" > index.html
dotdev index.html
The server will output a message similar to:
Serving index.html on http://localhost:4774
Now, whenever you update index.html
, connected browsers will automatically reload.
--host <HOST>
: Specify the host (default toHOST
environment variable or127.0.0.1
).--port <PORT>
: Specify the port (defaults toPORT
environment variable or4774
).--help
,-h
: Print help information.--version
,-h
: Print version.
Head to the Releases section and download the latest apk package and public key.
wget https://github.com/petlack/dotdev/releases/download/v0.0.1.20250224.03/dotdev-0.0.1.20250222.01-r1.apk
wget https://github.com/petlack/dotdev/releases/download/v0.0.1.20250224.03/dotdev-0.0.1.20250222.01-r1.apk.rsa.pub
cp dotdev-0.0.1.20250224.03-r1.apk.rsa.pub /etc/apk/keys/
apk add dotdev-0.0.1.20250224.03-r1.apk
Install from AUR
yay -S dotdev-git
Build package from source
git clone https://github.com/petlack/dotdev && cd dotdev || return
tar -czf archlinux/pkgbuild-src/dotdev-0.0.1.20250224.03.tar.gz \
*.go go.mod version.txt
makepkg --dir archlinux/pkgbuild-src --noconfirm
sudo pacman -U ./archlinux/pkgbuild-src/dotdev-0.0.1.20250224.03-1-x86_64.pkg.tar.zst
Install from release
Head to the Releases section and download the latest Arch Linux package.
wget https://github.com/petlack/dotdev/releases/download/v0.0.1.20250224.03/dotdev-0.0.1.20250222.01-1-x86_64.pkg.tar.zst
sudo pacman -U ./dotdev-0.0.1.20250224.03-1-x86_64.pkg.tar.zst
Head to the Releases section and download the latest rpm package.
wget https://github.com/petlack/dotdev/releases/download/v0.0.1.20250224.03/dotdev_0.0.1.20250222.01.fc41.x86_64.rpm
sudo dnf install -y dotdev_0.0.1.20250224.03-1.fc41.x86_64.rpm
Head to the Releases section and download the latest deb package.
wget https://github.com/petlack/dotdev/releases/download/v0.0.1.20250224.03/dotdev_0.0.1.20250222.01-1_amd64.deb
sudo dpkg -i dotdev_0.0.1.20250224.03-1_amd64.deb
Tap the repository and install with:
brew tap petlack/dotdev
brew install dotdev
Upgrade later using:
brew update
brew upgrade dotdev
Build from source
Make sure you have Go 1.23 installed
git clone https://github.com/petlack/dotdev && cd dotdev || return
go build -o dotdev .
install -m 755 dotdev /usr/local/bin/dotdev
Install release binary
Head to the Releases section and download the latest binary for your architecture. Example:
wget https://github.com/petlack/dotdev/releases/download/v0.0.1.20250224.03/dotdev-linux-amd64
install -m 755 dotdev-linux-amd64 /usr/local/bin/dotdev