1
0
Fork 0
mirror of https://codeberg.org/Reuh/feather.git synced 2025-10-27 01:59:32 +00:00
File-based RSS reader client for TT-RSS/FreshRSS/Miniflux/...
Find a file
2025-10-25 12:15:43 +02:00
images docs: add gifs to README 2025-10-15 16:01:24 +02:00
src/feather feat: center videos in default css 2025-10-25 12:15:43 +02:00
.dockerignore fix: add images/ to dockerignore 2025-10-15 16:13:51 +02:00
.gitignore refactor: everything into several files and a valid python package 2025-10-10 23:58:28 +02:00
.python-version Initial commit 2025-10-09 13:50:18 +02:00
Dockerfile feat: reduce container size 2025-10-13 17:08:32 +02:00
LICENSE docs: add LICENSE 2025-10-09 16:55:35 +02:00
pyproject.toml feat: bump version to v1.1.1 2025-10-18 15:55:19 +02:00
README.md docs: copy-paste mishaps in README.md 2025-10-17 15:13:20 +02:00
uv.lock feat: bump version to v1.1.1 2025-10-18 15:55:19 +02:00

Feather: file-based RSS reader client

Feather is a RSS reader client. It can:

  • connect to any server supporting the Tiny Tiny RSS API or the Google Reader API (FreshRSS, Miniflux, many others) :D
  • read your feeds in a native interface, regardless of desktop environment, CLI or GUI :D
  • read your feeds fully offline :D
  • integrate with many other programs effortlessly :D
  • and do all that while using less resources than a web browser showing a blank page :D

That's right, using an innovative technology known as "plain files", Feather allows you to read your feeds in any file manager that exist or will exist in the future.

Reading an article

Note that Feather is intended to be used alongside a RSS reader server, meaning:

  • no grabbing feeds on its own, a separate feed reader server is required :(
  • no feed management interface; Feather only support reading articles and marking them as read/unread :(

Usage

All demonstrations are done under Linux with GNOME Files, but a file manager is a file manager, use what you fancy.

Navigating feeds a.k.a. "using a file manager"

Navigating articles

Feed categories are directories, and each file in a category directory is an article.

Browsing articles and categories by navigating directories

Sorting articles

Each article file's modification time is set to the article publication time; you can sort by publication date by sorting the files by modification time, or sort by feed by sorting by filename.

Sorting articles in a category by sorting files

Searching

Searching articles in a category using filename search

Tip: if you have nested categories, search "html" to list all the articles in the category and its sub-categories in the same view.

Marking articles as read

Deleting an article file will mark them as read (will take effect on the next synchronization to the server).

Marking an article as read by deleting the article file

Handling read articles

The now read articles can (surprisingly) be found in the trash. After marking an article as read, there is a grace period (by default 3 days) during which you can mark read articles as unread again by restoring their files from the trash.

Reading read articles

If you want to re-read your favorites articles directly in the Feather reader directory, you can configure Feather to write articles files for read articles too:

[html]
# Write article HTML files for read articles
write_read_articles = true
# Add a checkmark in the article filename indicating the read status
filename_template = "{% if unread %}☐{% else %}☑{% endif %} [{{ feed_title }}]\t{{ title }} ({{ published }}).html"

Now both read and unread articles will be stored in the Feather reader directory, and after marking an article file as read by deleting it, Feather will regenerate the file on the next synchronization (but marked as read this time).

Note that this also change the mark-as-unread behavior: since it is no longer possible to restore from the trash because the file is automatically recreated, marking an item as unread is done in the same way as mark-as-read, i.e. by deleting the file of a read article.

Marking an article as unread by deleting the article file

By default, Feather will only grab unread articles from the server, so the read articles you have access to locally are only the articles kept for the 3 days grace period after marking them as read (see the handling read articles chapter). If you want to have access to all articles from the server, you can add to your configuration:

[server]
# Grab both read and unread articles from the server
only_sync_unread_articles = false

Synchronizing with the server

Run feather sync to synchronize all local data with the server. The synchronization is done in two parts, which you can perform separately using:

  • feather sync-up, which upload local changes to the server (e.g. update read status of local articles);
  • feather sync-down, which download & update all articles from the server into the local state. This might be a lot of network requests, depending on how many articles you have on the server.

If you don't want to bother running feather sync manually, you can also start the Feather update daemon using feather daemon. The daemon will periodically call sync-up and sync-down for as long as it runs.

If you are offline

Nothing changes, but all the synchronization commands will wait until the server become reachable again.

Configuration

Feather will try to load the configuration from the file config.toml by default. A lot of things can be configured, see the default configuration file for details. Most configuration options can also be set using environment variables - this is also detailed in the default configuration file (here's another link if your mouse is too far from the previous one).

If you already have local data but have changed configuration that affect how files are generated (like the HTML or filename templates), you can call feather regenerate to regenerate all local files with the new configuration.

If you changed to another remote server or if you somehow messed up your local files, you can also call feather clear-data to nuke all local data, likely followed by a full synchronization using feather sync.

Layer other things on top

Since, as the kids say, everything is a file, Feather can be easily integrated with any other program which operate on files (and there's a lot of those). A couple examples:

  • you can use Syncthing to synchronize the reader directory with other computer without having to install Feather on each device. You'd still have to install Syncthing on each one, but if for some unknown reason you prefer installing Syncthing to Feather, it works. Note that Syncthing real-time change detection can sometime miss changes when there's a lot of small files like with Feather, so you may want to reduce the Full Rescan Interval in the share settings unless you're fine with some of your feeds taking a whole hour to update;
  • you can process your feeds easily with regular scripts: find reader/ -iname 'trump' -delete will mark all feeds containing "Trump" in their filename as read; which I think is easier than messing around with your feed reader API or convoluted filtering rules directly, but that's just my opinion.

Installation

Docker

If use Docker or Podman, an image is available at codeberg.org/reuh/feather:1.

For example, to start a new container running the Feather daemon, using the configuration file config.yml (see basic configuration) from the current directory, and putting the articles in the reader directory:

docker run -d -v ./config.toml:/feather/config.toml:ro -v ./reader:/feather/reader -v feather-data:/feather/data --name feather codeberg.org/reuh/feather:1 daemon

Instead of using a configuration file, you may also use environment variables; see the default configuration file for details.

If you need to run Feather commands in a running container, run for example docker exec feather feather regenerate. Otherwise you could also start a new container as described above but using a command other than daemon.

If you're wondering how monstrous the resources required by Feather are, with my ~600 feeds on my Tiny Tiny RSS server, Feather stays at ~50MB RAM usage and take ~4KB of disk space per article. The docker image is ~120MB, which does not fit on a floppy disk but does easily on a CD.

Quadlet

If you're using Podman on Linux/systemd with Quadlet to manage your containers, here's an example Quadlet user file you can put in ~/.config/containers/systemd/feather.quadlet:

[Unit]
Description=Feather container

[Container]
ContainerName=feather
Image=codeberg.org/reuh/feather:1
Exec=daemon

# Auto-update container
AutoUpdate=registry

# Configuration file
Volume=%h/Feather/config.toml:/feather/config.toml:ro,Z
# Reader/article directory
Volume=%h/Feather:/feather/reader:z
# Feather data volume
Volume=feather-data:/feather/data

[Service]
Restart=on-failure
TimeoutStartSec=300

[Install]
WantedBy=default.target

Kindly ask systemd to reload unit files, start Feather, done:

systemctl --user daemon-reload
systemctl --user start feather

Raw

Feather should be able to run on anything that can run Python 3.12 or newer (you might need to change html.max_filename_length and html.filename_replacement in the configuration if your filesystem has exotic limitations).

Once you have Python installed, download this repository and pip it up by running pip install inside it. You should be able to run feather sync or whatever command you want to run according to the usage chapter. If you use uv, skip the pip and run directly uv run feather sync.

Basic configuration

In order for Feather to be able to do something useful, it needs to be able to connect to your RSS reader server. Here's some basic config.toml configuration files depending on what API you use:

Tiny Tiny RSS

[server]
api = "ttrss"
url = "https://ttrss.example.com" # Tiny Tiny RSS URL
user = "rsslad" # RSS reader username
password = "hunter2" # RSS reader password/application password

[datetime]
timezone = "Europe/Bucharest" # set your local timezone

Google Reader API (FreshRSS, Miniflux, and others)

[server]
api = "googlereader"
url = "https://freshrss.example.com/api/greader.php" # API endpoint URL
user = "rsslad" # RSS reader username
password = "hunter2" # RSS reader password/application password

[datetime]
timezone = "Europe/Bucharest" # set your local timezone

There's more you can change in the configuration file, see the default configuration file and the configuration chapter for details.

FAQ

I mean nobody asked them yet but I think I have a pretty good grasp on what people what to know.

Why?

I rely on RSS a lot to keep in touch with outside my room, and I've been using Tiny Tiny RSS to do that for years at this point. Unfortunately, the historical developer decided to stop development this October 2025, and after trying other RSS readers I was unsatisfied and decided to make my own. As I was contemplating how to design the RSS reader of my dreams, I had a epiphany: a RSS reader is nothing more than directories and files. This was great because it meant I didn't have to make a GUI, and like most people, I find working more than necessary generally unpleasant. But then, it turned out that as far as personal effort go, something even better happened: the Tiny Tiny RSS community is continuing development! Relieved but at the same time dejected that my epiphany went to waste, I thus decided to make only the directories and files part of my RSS reader, and let Tiny Tiny RSS do the rest. And here we are.

Why the name "feather"?

My mom taught me that if all my friends jump off a bridge I should too, and since most popular open-source projects are named after a common English noun these days I decided to do the same. If you're looking for a set of icons, a JavaScript framework, ML libraries, data analytics libraries, a game server, a smartphone application, or a lot of other things that aren't a RSS reader client, I regret to inform you that you have unfortunately found the wrong Feather.

What should I eat tonight?

Spaghetti alla carbonara is often a safe choice; even if you substitute all the ingredients you'll likely still end up with something decent. It still counts as carbonara if you use cream and mushrooms, trust me, I know how to say hello in Italian.

Future improvements

While I mostly started this project for fun, it ended up actually quite usable, so I'm at least going to maintain it. As for new features, unless an incredible idea comes I'd like to keep this project simple (but if you think it falls within the scope of a "file-based RSS reader client", try your luck in the issue tracker!). But still, here's still some things that I wrote down during development that may be done at some point:

  • Store & expose article attachments in the templates
  • Partial synchronization (using since_id for ttrss (article updates?) and start_time for googlereader)
  • Think of a third future improvement, two is a bit sad