- Kotlin 67.5%
- HTML 31.8%
- Shell 0.4%
- JavaScript 0.2%
- Python 0.1%
|
|
||
|---|---|---|
| app | ||
| gradle | ||
| node_modules | ||
| .env | ||
| .gitignore | ||
| at_article.html | ||
| at_rss_v1.jpg | ||
| build.gradle.kts | ||
| crash_log.txt | ||
| follow-up-features.md | ||
| fox_out.html | ||
| fox_rss.xml | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| HtmlArticleContent_author.patch | ||
| logcat.txt | ||
| package-lock.json | ||
| package.json | ||
| patch.diff | ||
| patch_author.kt | ||
| project-prep.sh | ||
| ReaderScreen_refresh.patch | ||
| ReaderViewModel_refresh.patch | ||
| README.md | ||
| settings.gradle.kts | ||
| test_extract.js | ||
| test_extract.py | ||
| test_extract_2.js | ||
| test_jsoup.py | ||
| test_okhttp.kt | ||
| test_owntext.kt | ||
| VERSION | ||
FresshReader
Your feeds. Your rules.
FresshReader is an Android reader for your FreshRSS server. It turns your subscriptions into a Google Discover–style feed that is ranked on your device, shows full article text even for feeds that only publish excerpts, and plays YouTube videos from your subscriptions ad-free, with comments, stats and a mini player.
There are no accounts beyond your own FreshRSS login, no analytics and no telemetry. Everything the app talks to is listed in Network & Privacy.
Contents
- Features
- Installation
- Getting Started
- Using the App
- Settings
- How It Works
- YouTube & Video
- Network & Privacy
- Tech Stack
- Project Layout
- Building from Source
- License
Features
Reading
- Discover feed: unread articles ranked on-device for variety (recency, source weight, duplicate clustering, source spacing, category balance)
- Latest, Starred and Catch Up tabs, plus full-page views for any category or single subscription, with search, sort and source filters
- Full article text: feeds that ship only an excerpt, a "Comments" link or nothing at all (Hacker News, Reddit, many news sites) are filled in from the original page, in the background and again on open
- Clean article view: site chrome, share bars, promo blocks and duplicate hero images are stripped; lazy-loaded images are fixed; the byline becomes an author card at the end of the article
- Offline: synced articles and their images are stored on the device
Video (YouTube subscriptions)
- Ad-free in-app playback with SponsorBlock segment skipping
- Stats on every video card: length, likes, dislikes
- Video page: stats row, collapsible comments with expandable replies, collapsible description
- Mini player: press back while a video plays and it keeps playing in a floating, draggable player over the list; the home gesture moves it to the system picture-in-picture window
- Background play with notification and lock-screen controls
- YouTube Shorts are filtered out
Library management
- Add feeds by site or feed URL (with feed discovery), unsubscribe, rename or delete categories, all on your FreshRSS server
- Per-feed weight (Favorite, Normal, Low priority, Muted) and hide-from-Latest / hide-from-Catch-Up / hide-from-feeds switches
- Star individual articles or whole feeds
- Articles older than 10 days move to a searchable archive
Sync & appearance
- Background sync every 15 min to 4 hours (default 30 min), plus pull-to-refresh
- Read and star state sync both ways with FreshRSS
- Light, dark or system theme, with a choice of accent colour
Installation
Via Obtainium (recommended)
Each release has a signed APK attached. Obtainium installs it and picks up new releases automatically.
- Install Obtainium.
- Tap Add App and set:
- Source type:
Forgejo - App URL:
https://forge.sabylasolutions.com/sabyla/fresshreader
- Source type:
- Tap Add, check that the package ID is
com.fresshreader.app, then Install.
Manual
Download app-release-v*.apk from the releases page and open it on the device.
Requires Android 8.0 (API 26) or newer.
Getting Started
- Have a FreshRSS server (self-hosted or shared) with the Google Reader API enabled. Create an API password under Profile → API management; it is recommended over your account password.
- Log in with:
- Server URL: e.g.
https://rss.example.com(the app adds/api/greader.php/itself) - Username
- Password / API password
- Server URL: e.g.
- First sync pulls your subscriptions and recent articles. The feed is usable in a few seconds; full article text, images and video stats continue to fill in behind it.
Using the App
Tabs
| Tab | Shows |
|---|---|
| Discover | Unread articles, ranked for variety (see Ranking) |
| Latest | The newest unread article from each source |
| Starred | Starred articles, plus everything from starred feeds |
| Catch Up | All unread, oldest first (YouTube feeds are hidden here by default) |
| Settings | See Settings |
Drawer, categories and subscriptions
Swipe from the left edge or tap ☰. The drawer lists your categories and your subscriptions grouped by category. Picking one opens a full-page view of every article in it (read or unread, including hidden feeds) with:
- Search within the selection
- Sort: newest, oldest or random (a random order stays fixed until you change it)
- Source filter chips (categories only)
A category or subscription made up mostly of YouTube feeds, such as a "YouTube" category, uses large thumbnail cards.
Reader
- Articles open in a clean reading view. ↻ re-fetches the article; Share sends the link to any app; Open original article opens it in the browser.
- Links open in your browser. Long-press to select and copy text.
- If the article is only an excerpt, the full text is fetched when you open it ("Loading full article…").
Videos
A YouTube article opens as a video page:
- The video (tap ▶ to play; rotate for fullscreen)
- Length · 👍 likes · 👎 dislikes
- The title
- Comments (collapsed; tap to load, then Load more comments; tap N replies to open a thread)
- Description (expanded; tap to collapse)
While a video plays:
| Action | Result |
|---|---|
| Back | Returns to the previous screen; the video keeps playing in a mini player. Tap it to reopen the video, drag it anywhere, ⏸/▶ to pause, ✕ to stop. |
| Home | The video moves to the system picture-in-picture window. Expanding it returns to the same screen; closing it stops playback. |
| Screen off / other apps | Audio continues with media notification and lock-screen controls. |
These depend on the Background play and Picture-in-picture mini player settings. With background play off, leaving a video stops it.
Settings
| Section | Options |
|---|---|
| Server connection | Server URL, username, password; Disconnect from server |
| Sync | Sync now; background interval: 15 min, 30 min, 1 h, 2 h or 4 h |
| Article content | Fetch full article text (on by default): recover full bodies for excerpt-only feeds |
| Playback | Background play (on); Picture-in-picture mini player (on, requires background play) |
| Appearance | Theme (light / dark / system), accent colour |
| Feed sources | Search feeds; per feed: star, weight, hide from feeds / Latest / Catch Up, unsubscribe; Add feed |
| Categories | Rename or delete a category (applied on the FreshRSS server) |
| Archive | View archived articles |
How It Works
FresshReader does not poll RSS feeds itself. FreshRSS is the backend: it fetches and parses the feeds and holds the canonical subscription list and read/star state. The app is a client that syncs from it, ranks and presents the articles, and fills in content the feeds leave out.
┌──────────────────────────── Android device ─────────────────────────────┐
│ │
FreshRSS ◀────▶ │ Sync (Retrofit/OkHttp) ──▶ Room DB ──▶ Ranking engine ──▶ Compose UI │
(Google Reader │ │ ▲ ▲ │
+ Fever APIs) │ ▼ after each sync │ │ │
│ Background passes ────────────┘ Media3 playback │
│ • full-text recovery ◀──▶ article websites service (ExoPlayer) │
│ • video stats ◀──▶ YouTube, Return YouTube Dislike ▲ │
│ │ │
│ NewPipe Extractor ◀──▶ YouTube (streams, comments) ──────────────┘ │
└───────────────────────────────────────────────────────────────────────────┘
Frontend
A single-activity app built with Jetpack Compose and Material 3. Navigation Compose hosts the tabs, drawer views, reader, settings and archive. Hilt injects the ViewModels. Article bodies render in a WebView with JavaScript disabled; video plays in Media3 PlayerViews bound to one shared player.
Sync
- Login uses FreshRSS's
ClientLogin. The auth token and credentials are kept inEncryptedSharedPreferences. - Subscriptions are enumerated through the Fever API and
subscription/list, at most every 6 hours (unless forced). - Articles come from
stream/contents, starting from a sync cursor with a 3-hour overlap, so items FreshRSS crawls late aren't missed. - Ranking runs as soon as new articles land, so the refresh spinner stops within seconds.
- After each sync, background passes run without holding up the UI:
- restore bodies the server has (
stream/items/contents) - recover full text from the original pages for excerpt-only feeds
- fill in video stats for new YouTube items
- restore bodies the server has (
- Read/star changes go back to FreshRSS via
edit-tag. Subscribing, unsubscribing and category changes usesubscription/quickadd,subscription/edit,rename-taganddisable-tag. - Periodic sync runs through WorkManager. Pull-to-refresh and the worker share one in-flight sync, so they never race.
- Retention: articles older than 10 days move to a separate archive database (title, link, source, author, date). Cached images are kept for 12 days.
Full-text extraction
For articles whose feed body is a stub, the app downloads the original page and extracts the article on the device (Jsoup):
- Prefers
itemprop="articleBody"and similar containers. - Strips navigation, share bars, related-link blocks and ALL-CAPS promo links.
- Fixes lazy-loaded images.
- Turns the byline (JSON-LD or page markup) into an author card at the end.
Work is spread across sites with per-site spacing. If a site answers plain requests with a bot challenge, that site falls back to loading the page in an off-screen WebView. Failed pages are retried a limited number of times. Turn this off with Fetch full article text.
Ranking
Discover runs a deterministic, on-device pipeline over unread articles:
- Recency score: logarithmic decay; new articles score near 100, month-old ones near 1.
- Duplicate clustering: the same story from several sources collapses to one card, matched by SimHash of title trigrams, identical URL, or title Jaccard similarity ≥ 0.8. A preferred source wins the cluster, otherwise the highest score.
- Feed weight: Favorite ×1.5, Normal ×1.0, Low ×0.6, Muted ×0 (excluded).
- Source cooldown: minimum spacing between cards from the same source, relaxed rather than leaving gaps.
- Category balance: within a sliding window, a lower-scored card from an under-represented category may swap in if it is within 15% of the displaced card's score.
Card sizes follow a repeating hero / medium / compact pattern on Discover. An article without an image steps down a size, and video items always use a thumbnail-on-top video card.
Local data
| Store | Contents |
|---|---|
fresshreader.db (Room) |
feeds (subscriptions + local weight/hide/star flags), articles (content, images, read/star state, ranking position, duplicate group, extraction bookkeeping, video stats), sync_state |
archive.db (Room) |
Archived article stubs |
| Image cache | Downloaded article images (12-day retention) |
| Encrypted preferences | Server URL, username, password, auth token |
YouTube & Video
Video articles are detected by URL (youtube.com/watch, youtu.be, /embed, mobile). Shorts are dropped at sync.
- Streams are resolved on the device with NewPipe Extractor, which speaks YouTube's internal Innertube API (with a PO-token provider and iOS client). Ad slots are never requested because the raw stream URLs go straight to ExoPlayer. Public Invidious instances are a fallback if extraction fails.
- Playback runs in a Media3
MediaSessionService, so it survives leaving the screen and backgrounding. Separate audio and video streams are merged on the device. - SponsorBlock segments are fetched per video and skipped by the playback service.
- Stats: length and likes come from YouTube via NewPipe. Dislikes come from Return YouTube Dislike, since YouTube no longer publishes them. They are stored per article, so cards show them before you open anything.
- Comments and replies are read-only, loaded through NewPipe on demand, and paged.
- Description comes from the feed's
media:description, rendered once with clickable links.
Liking, disliking and posting comments are not supported (they would need a Google sign-in).
Network & Privacy
No analytics, crash reporting or telemetry SDKs are included. Crash logs stay on the device.
| Destination | When | What is sent |
|---|---|---|
| Your FreshRSS server | Login, sync, read/star changes, subscription and category edits | Credentials once at login, then an auth token; the changes you make |
| Article websites | Full-text recovery and author lookup (if Fetch full article text is on) | An ordinary page request for the article URL, with a browser user agent |
| Image hosts | Displaying article images and feed icons | Ordinary image requests |
YouTube (youtube.com, googlevideo.com) |
Opening, playing or listing stats/comments for a video | Video ID and ordinary requests from your IP; no Google account is used |
Return YouTube Dislike (returnyoutubedislikeapi.com) |
Video stats | Video ID |
SponsorBlock (sponsor.ajay.app) |
Playing a video | Video ID |
| Invidious instances | Only if NewPipe cannot resolve a stream | Video ID |
All connections use HTTPS where the remote side supports it (some feed images are plain HTTP).
Tech Stack
| Area | Libraries (version) |
|---|---|
| Language / build | Kotlin 1.9.24, Android Gradle Plugin 8.5.2; minSdk 26, targetSdk 35 |
| UI | Jetpack Compose (BOM 2024.06.00), Material 3, Material Icons Extended, Navigation Compose 2.7.7, Activity Compose 1.9.0 |
| Architecture | Hilt 2.51.1 (+ Hilt Navigation Compose 1.2.0), AndroidX Lifecycle 2.8.2, Kotlin Coroutines 1.8.1 |
| Storage | Room 2.6.1, AndroidX Security Crypto 1.0.0 |
| Network | Retrofit 2.11.0 + Gson, OkHttp 4.12.0 |
| Background work | WorkManager 2.9.1 |
| Images | Coil 2.6.0 |
| Content extraction | Jsoup 1.18.1 |
| Video | NewPipe Extractor v0.26.5, Media3 1.3.1 (ExoPlayer, UI, Session) |
| Testing | JUnit 4.13.2, MockK 1.13.13, Turbine 1.1.0, kotlinx-coroutines-test |
Project Layout
app/src/main/java/com/fresshreader/app/
├── data/
│ ├── api/ FreshRSS API (Retrofit), auth, HTML helpers, article extractor, WebView page fetcher
│ ├── cache/ On-disk image cache
│ ├── database/ Room entities, DAOs, migrations (main + archive DB)
│ ├── preferences/ Settings store
│ └── repository/ Articles, feeds, ranking, video-stats refresher
├── ranking/ Scoring, duplicate detection, cooldown, category balancing
├── sync/ FreshRssClient (sync pipeline), SyncManager (single-flight + background passes), WorkManager worker
├── playback/ Media3 playback service, SponsorBlock skipping
├── ui/ Compose screens: discover, latest, starred, catchup, filteredfeed, drawer,
│ reader (article + video page), playback (mini player, PiP), settings, addsource, archive
└── util/ YouTube: stream resolution, stats & comments (NewPipe), SponsorBlock
Building from Source
./gradlew :app:assembleRelease # APK in app/build/outputs/apk/release/
./gradlew :app:testDebugUnitTest # JVM unit tests
Release builds are signed with the keystore configured in app/build.gradle.kts. An APK signed with a different key will not install over an existing installation; uninstall first, which deletes local data.
License
FresshReader is proposed for release under the Apache License 2.0.