ckampfe / russ

A TUI RSS reader with vim-like controls and a local-first, offline-first focus
GNU Affero General Public License v3.0
173 stars 18 forks source link
atom atom-feed rss rss-feed rss-reader rust tui

russ

Russ is a TUI RSS/Atom reader with vim-like controls and a local-first, offline-first focus.

Rust


install

$ cargo install russ --git https://github.com/ckampfe/russ

  note that on linux, you will need these system dependencies as well, for example:
$ sudo apt update && sudo apt install libxcb-shape0-dev libxcb-xfixes0-dev
$ russ read

Note that on its first run with no arguments, russ read creates a SQLite database file called feeds.db to store RSS/Atom feeds in a location of its choosing. If you wish to override this, you can pass a path with the -d option, like russ -d /your/database/location/my_feeds.db. If you use a custom database location, you will need to pass the -d option every time you invoke russ. See the help with russ -h for more information about where russ will store the feeds.db database by default on your platform.

I do not currently publish binary releases, but that may change if someone is interested in that.

use

Russ is modal, like vim. If you are comfortable with vim, or know of vim, you are probably going to be immediately comfortable with Russ. If you don't know vim, don't be afraid! If you read the following controls section and tinker a bit, you'll have no trouble using Russ.

There are two modes: normal mode and insert mode.

In normal mode, you read your RSS entries, navigate between entries, navigate between feeds, refresh feeds, and a few other things. This is where you spend 99% of your time when using Russ.

When you want to start following a new feed, you enter insert mode. In insert mode, you enter the URL of a feed you wish to begin following, and Russ will download that feed for you.

That's basically it!

Russ can also import feeds from an OPML file. See below for more details.

controls - normal mode

Some normal mode controls vary based on whether you are currently selecting a feed or an entry.

controls - insert mode

help/options/config

$ russ -h
A TUI RSS reader with vim-like controls and a local-first, offline-first focus

Usage: russ <COMMAND>

Commands:
  read    Read your feeds
  import  Import feeds from an OPML document
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

read mode

$ russ read -h
Read your feeds

Usage: russ read [OPTIONS]

Options:
  -d, --database-path <DATABASE_PATH>
          Override where `russ` stores and reads feeds. By default, the feeds database on Linux this will be at `XDG_DATA_HOME/russ/feeds.db` or `$HOME/.local/share/russ/feeds.db`. On MacOS it will be at `$HOME/Library/Application Support/russ/feeds.db`. On Windows it will be at `{FOLDERID_LocalAppData}/russ/data/feeds.db`
  -t, --tick-rate <TICK_RATE>
          time in ms between two ticks [default: 250]
  -f, --flash-display-duration-seconds <FLASH_DISPLAY_DURATION_SECONDS>
          number of seconds to show the flash message before clearing it [default: 4]
  -n, --network-timeout <NETWORK_TIMEOUT>
          RSS/Atom network request timeout in seconds [default: 5]
  -h, --help
          Print help

import OPML mode

$ russ import -h
Import feeds from an OPML document

Usage: russ import [OPTIONS] --opml-path <OPML_PATH>

Options:
  -d, --database-path <DATABASE_PATH>
          Override where `russ` stores and reads feeds. By default, the feeds database on Linux this will be at `XDG_DATA_HOME/russ/feeds.db` or `$HOME/.local/share/russ/feeds.db`. On MacOS it will be at `$HOME/Library/Application Support/russ/feeds.db`. On Windows it will be at `{FOLDERID_LocalAppData}/russ/data/feeds.db`
  -o, --opml-path <OPML_PATH>

  -n, --network-timeout <NETWORK_TIMEOUT>
          RSS/Atom network request timeout in seconds [default: 5]
  -h, --help
          Print help

design

Russ stores all application data in a SQLite database. Additionally, Russ is non-eager. It will not automatically refresh your feeds on a timer, it will not automatically mark entries as read. Russ will only do these things when you tell it to. This is intentional, as Russ has been designed to be 100% usable offline, with no internet connection. You should be able to load it up with new feeds and entries and fly to Australia, and not have Russ complain when the plane's Wifi fails. As long as you have a copy of Russ and a SQLite database of your RSS/Atom feeds, you will be able to read your RSS/Atom feeds.

Russ is a tui app that uses crossterm. I develop and use Russ primarily on a Mac, but I have run it successfully on Linux and WSL. It should be possible to use Russ on Windows, but I have not personally used Russ on Windows, so I cannot verify this. If you use Russ on Windows or have tried to use Russ on Windows, please open an issue and let me know!

stability

The application-level and database-level contracts encoded in Russ are stable. I can't remember the last time I broke one. That said, I still reserve the right to break application or database contracts to fix things, but I have no reason to believe this will happen. I use Russ every day, and it basically "just works". If you use Russ and this is not the case for you, please open an issue and let me know.

SQL

Despite being a useful RSS reader for me and a few others, Russ cannot possibly provide all of the functionality everyone might want from an RSS reader.

However, Russ uses a regular SQLite database to store RSS feeds (more detail below), which means that if a feature you want isn't in Russ itself, you can probably accomplish what you want to do with regular SQL.

This is especially true for one-off tasks like running analysis of your RSS feeds, removing duplicates when a feed changes its link scheme, etc.

If there's something you want to do with your RSS feeds and Russ doesn't do it, consider opening a Github issue and asking if anyone knows how to make it happen with SQL.

features/todo

This is not a strict feature list, and it is not a roadmap. Unchecked items are ideas to explore rather than features that are going to be built. If you have an idea for a feature that you would enjoy, open an issue and we can talk about it.

Minimum Supported Rust Version (MSRV) policy

Russ targets the latest stable version of the Rust compiler. Older Rust versions may work, but building Russ against non-latest stable versions is not a project goal and is not supported. Likewise, Russ may build with a nightly Rust compiler, but this is not a project goal.

SQLite version

russ compiles and bundles its own embedded SQLite via the Rusqlite project, which is version 3.45.1.

If you prefer to use the version of SQLite on your system, edit Cargo.toml to remove the "bundled" feature from the rusqlite dependency and recompile russ.

Please note that while russ may run just fine with whatever version of SQLite you happen to have on your system, I do not test russ with a system SQLite, and running russ with a system SQLite is not officially supported.

contributing

I welcome contributions to Russ. If you have an idea for something you would like to contribute, open an issue and we can talk about it!

license

See the license.