First draft for a simple long-form text note (NIP-23) sync to article folder.
Run like this:
go run main.go example_conf.json
The article folder can then e.g. be served via Caddy server. See caddy_example for an example.
Sync will stop after EOS, so you have to run periodically, e.g. via cron.
- Wrapping this into a Caddy server plugin would be nice.
- See code for further TODOs.
npub1hz404lnj7lxsdt5vxdlex9rlvhlz6dxqqed4y6tpywvzgwx0qmlqfpl6sm