Automatic upload of my .plan file
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-29 12:06:06 +01:00
src update template to remove sourcehut 2026-08-29 12:06:06 +01:00
.gitignore initial commit 2026-04-11 11:20:49 +01:00
build.zig add atom feed support 2026-07-15 21:52:22 +01:00
build.zig.zon implement a working version 2026-04-24 02:50:27 +01:00
curl.h implement a working version 2026-04-24 02:50:27 +01:00
LICENSE add LICENSE 2026-04-24 03:14:20 +01:00
README add atom feed with persistent per-article timestamps 2026-07-16 16:28:47 +01:00

    .                       
  .o8                       
.o888oo  .ooooo.   .ooooo.  
  888   d88' `88b d88' `88b 
  888   888   888 888ooo888 
  888 . 888   888 888    .o 
  "888" `Y8bod8P' `Y8bod8P' 
                            
                            
                            
A simple single file watcher that integrates with the macOS kqueue syscall. The
purpose of this project is to push changes to a .plan file to bunny.net
"instantly" on save.

Each save uploads the rendered website as `index.html` and an Atom feed as
`atom.xml`. The feed uses `.plan` sections in this form:

```
---

Article title
---

Article content
```

Set `SITE_URL` to the public site URL when it differs from the default
`https://mooremoore.net`.

Article hashes and their last-modified timestamps are stored in
`~/.plan.atom-state`. The state file is replaced only after the updated feed
has uploaded successfully, so unchanged articles keep their original Atom
timestamps across saves and watcher restarts.