feat: ingest Brevier archive and phone note exports #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Brevier (github.com/gurov/brevier) is a reader-browser that reduces pages to Markdown and keeps a local copy of everything read. It is the closest thing to "ambient awareness" of my reading, and none of it reaches knox.
What Brevier produces
<host>/<date>-<slug>.md.lz4(or.mdwhen "plain copies" is on), front mattertitle / source / read, then the article Markdown.#:~:text=deep links back to the passage, plus the note text..md/.zipthrough the share sheet, and save a single article (text +## Your notes) through SAF. There is no bulk archive export (roadmap #15 leaves it undecided), and the phone archive is app-private.Design (agreed)
Two inputs, two source ids, one ingester
internal/ingest/brevier.go:~/.local/share/brevier/archive/<host>/<date>-<slug>.md[.lz4]breviersourceURL; body, front matter, read date in provenancebrevier-notessha256("brevier:"+source)so a re-read on another day versions the same entry rather than creating a duplicate.ContentHashover the body: unchanged copies add no observations..mdand.md.lz4(github.com/pierrec/lz4/v4); Brevier writes both forms side by side by design..mdentry, ignoreimages/.BREVIER_ARCHIVE/BREVIER_INBOX; hourly ticker; per-file error isolation.Verification
knox_geton an entry shows the article body and the read date.