Tiny live-reload HTTP development server
  • C 83%
  • Makefile 8.6%
  • Nix 5.1%
  • HTML 3.3%
Find a file
2026-05-12 02:41:23 +09:30
doc Initial commit 2026-04-13 03:00:01 +09:30
.gitattributes Initial commit 2026-04-13 03:00:01 +09:30
.gitignore flake 2026-05-12 02:41:23 +09:30
flake.lock flake 2026-05-12 02:41:23 +09:30
flake.nix flake 2026-05-12 02:41:23 +09:30
fragment.html make install and attribution 2026-04-14 17:28:44 +09:30
LICENSE Initial commit 2026-04-13 03:00:01 +09:30
live-server.c tidy 2026-04-19 23:57:35 +09:30
Makefile make install and attribution 2026-04-14 17:28:44 +09:30
mongoose.c Initial commit 2026-04-13 03:00:01 +09:30
mongoose.h Initial commit 2026-04-13 03:00:01 +09:30
README.md Initial commit 2026-04-13 03:00:01 +09:30

live-server

Minimal live-reload HTTP server

Ideas

  • optionally follow gitignore
  • option to attempt to reconnect after server shutdown
  • alternate option to keeping track of watches: re-scan entire tree every time, depending on how slow that is. inotify will deal with duplicates.

Building

$ make

Portability

I'm targeting C23 + POSIX.1-2008 + inotify (and maybe kqueue one day).