idea--feed-reader 1.2 KB

123456789101112131415161718192021222324
  1. id: 'idea--feed-reader'
  2. content: |
  3. There's no reason for a feed reader to be a single program. Instead,
  4. one could build an architecture in which each component is a distinct
  5. program that doesn't need to care about the details of the others.
  6. For now, I'm going to refer to this system as _lektor_.
  7. The `lektordir` format is inspired by the `maildir` format for email
  8. but modified for feed readers. It similarly includes three
  9. subdirectories: `tmp`, `new`, and `cur`. File name generation works
  10. similarly.
  11. However, instead of writing email files, we need a standard way of
  12. describing a feed entry. Therefore, instead of writing _files_ to
  13. a `lektordir`, update daemons will write _directories_. A given
  14. feed entry consists of a directory containing at least four
  15. files: `title`, `url`, `id`, and `content`. Other optional files can
  16. exist, including `author`, `subtitle`, `summary`, and so forth.
  17. With this system, adding a new feed type—such as a Twitter feed or
  18. an ActivityStream serialization—becomes a simple matter, and an
  19. _lektor_ front-end can be created without having to worry about how
  20. that data was delivered there in the first place.
  21. related: []