feedr 0.4.0

Feedr is a feature-rich terminal-based RSS/Atom feed reader written in Rust.
Documentation

Feedr - Terminal RSS Feed Reader 📰

Feedr is a feature-rich terminal-based RSS feed reader written in Rust. It provides a clean, intuitive TUI interface for managing and reading RSS feeds with elegant visuals and smooth keyboard navigation.

Feedr Terminal RSS Reader

Demo

Feedr Demo

Features

  • Dashboard View: See the latest articles across all your feeds, sorted chronologically
  • Feed Management: Subscribe to and organize multiple RSS/Atom feeds
  • Starred Articles: Save articles for later with a dedicated starred view
  • Categories: Organize feeds into custom categories with create, rename, and delete support
  • Advanced Filtering: Filter articles by category, age, author, read status, starred status, and content length
  • Dual Themes: Switch between a dark cyberpunk theme and a light zen theme with t
  • Live Search: Instantly search across all feed titles and article content
  • Summary View: "What's New" screen shows articles added since your last session with per-feed stats
  • Read/Unread Tracking: Persistent read state tracking across sessions
  • Article Preview: Toggle an inline preview pane in the feed items view
  • OPML Import: Bulk import feeds from OPML files via feedr --import <file.opml>
  • Browser Integration: Open articles in your default browser
  • Background Refresh: Automatic feed updates with configurable intervals and smart rate limiting
  • Rate Limiting: Per-domain request throttling prevents "too many requests" errors (ideal for Reddit feeds)
  • Vim-Style Navigation: Use j/k alongside arrow keys for navigation
  • Rich Content Display: HTML-to-text conversion with clean article formatting
  • Configurable: Customize timeouts, themes, UI behavior, and default feeds via TOML config
  • XDG Compliant: Follows standard directory specifications for configuration and data storage

Installation

Prerequisites

Using Cargo Install (Recommended)

cargo install feedr

Arch Linux (AUR)

Feedr is available on the AUR. Install it using your preferred AUR helper:

paru -S feedr
# or
yay -S feedr

Build from Source

git clone https://github.com/bahdotsh/feedr.git
cd feedr
cargo build --release

The binary will be available at target/release/feedr.

Usage

Run the application:

feedr

OPML Import

Import feeds from an OPML file:

feedr --import feeds.opml

Quick Start

  1. When you open Feedr for the first time, press a to add a feed
  2. Enter a valid RSS feed URL (e.g., https://news.ycombinator.com/rss)
  3. You can also press 1, 2, or 3 to quickly add Hacker News, TechCrunch, or BBC News
  4. Use arrow keys (or j/k) to navigate and Enter to view items
  5. Press o to open the current article in your browser
  6. Press t to toggle between dark and light themes

Keyboard Controls

General Navigation

Key Action
Tab Cycle forward through views
Shift+Tab Cycle backward through views
q Quit application
r Refresh all feeds
t Toggle dark/light theme
/ Search mode

Dashboard View

Key Action
↑/↓ or k/j Navigate items
Enter View selected item
f Filter articles
c / Ctrl+C Category management
a Add a new feed
s Toggle starred
Space Toggle read/unread
p Toggle preview pane
o Open link in browser
1/2/3 Quick-add demo feeds (HN, TechCrunch, BBC)

Feed List View

Key Action
h / Esc Go to dashboard
↑/↓ or k/j Navigate feeds
Enter View feed items
a Add a new feed
d Delete selected feed

Feed Items View

Key Action
h / Esc / Backspace Back to feeds list
Home Go to dashboard
↑/↓ or k/j Navigate items
Enter View item details
s Toggle starred
Space Toggle read/unread
o Open item in browser

Item Detail View

Key Action
h / Esc / Backspace Back to feed items
↑/↓ or u/d Scroll content
Page Up / Page Down Scroll content (page)
g Jump to top
G / End Jump to bottom
s / Space Toggle starred
o Open item in browser

Categories View

Key Action
n Create new category
e Rename category
d Delete category
Space Expand/collapse category
h / Esc Back

Filter Mode (press f on Dashboard)

Key Action
c Filter by category
t Filter by time/age
a Filter by author
r Filter by read status
s Filter by starred status
l Filter by content length
x Clear all filters

Configuration

Feedr supports customization through a TOML configuration file that follows XDG Base Directory specifications.

Configuration File Location

  • Linux/macOS: ~/.config/feedr/config.toml
  • Windows: %APPDATA%\feedr\config.toml

The configuration file is automatically generated with default values on first run if it doesn't exist.

Available Settings

# Feedr Configuration File

[general]
max_dashboard_items = 100           # Maximum number of items shown on dashboard
auto_refresh_interval = 0           # Auto-refresh interval in seconds (0 = disabled)
refresh_enabled = false             # Enable automatic background refresh
refresh_rate_limit_delay = 2000     # Delay in milliseconds between requests to same domain

[network]
http_timeout = 15              # HTTP request timeout in seconds
user_agent = "Mozilla/5.0 (compatible; Feedr/1.0; +https://github.com/bahdotsh/feedr)"

[ui]
tick_rate = 100                # UI update rate in milliseconds
error_display_timeout = 3000   # Error message duration in milliseconds
theme = "dark"                 # Theme: "dark" (cyberpunk) or "light" (zen)

# Optional: Define default feeds to load on first run
[[default_feeds]]
url = "https://example.com/feed.xml"
category = "News"

Configuration Options Explained

General Settings

  • max_dashboard_items: Controls how many items are displayed on the dashboard (default: 100)
  • auto_refresh_interval: Automatically refresh feeds at specified interval in seconds (0 disables auto-refresh)
  • refresh_enabled: Master switch to enable/disable automatic background refresh (default: false)
  • refresh_rate_limit_delay: Delay in milliseconds between requests to the same domain to prevent "too many requests" errors (default: 2000ms). This is especially useful for Reddit feeds and other rate-limited services.

Network Settings

  • http_timeout: Timeout for HTTP requests when fetching feeds (useful for slow connections)
  • user_agent: Custom User-Agent string for HTTP requests

UI Settings

  • tick_rate: How frequently the UI updates in milliseconds (lower = more responsive, higher = less CPU usage)
  • error_display_timeout: How long error messages are displayed in milliseconds
  • theme: Choose between "dark" (cyberpunk aesthetic with neon colors) or "light" (zen minimalist with organic colors). Can also be toggled at runtime with t.

Background Refresh Example

To enable automatic refresh every 5 minutes with rate limiting:

[general]
refresh_enabled = true
auto_refresh_interval = 300  # 5 minutes
refresh_rate_limit_delay = 2000  # 2 seconds between requests to same domain

Note: Rate limiting groups feeds by domain and staggers requests to prevent hitting API limits. For example, if you have multiple Reddit feeds, they will be fetched with a 2-second delay between each request to avoid getting blocked.

Default Feeds

You can define feeds to be automatically loaded on first run:

[[default_feeds]]
url = "https://news.ycombinator.com/rss"
category = "Tech"

[[default_feeds]]
url = "https://example.com/feed.xml"
category = "News"

Data Storage

Feedr stores your bookmarks, categories, read/unread state, and starred articles in:

  • Linux/macOS: ~/.local/share/feedr/feedr_data.json
  • Windows: %LOCALAPPDATA%\feedr\feedr_data.json

Backwards Compatibility

Feedr automatically migrates data from older versions to the new XDG-compliant locations. Your existing data will be preserved and automatically moved to the correct location on first run.

Dependencies

  • ratatui: Terminal UI framework
  • crossterm: Terminal manipulation
  • reqwest: HTTP client (with gzip/deflate/brotli support)
  • feed-rs: RSS and Atom feed parsing
  • html2text: HTML to text conversion
  • chrono: Date and time handling
  • serde: Serialization/deserialization
  • clap: Command-line argument parsing
  • opml: OPML import support
  • toml: Configuration file parsing

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request