A free, self-hostable news aggregator… https://freshrss.org
  • PHP 80.4%
  • CSS 10%
  • HTML 7%
  • JavaScript 2.3%
  • Shell 0.1%
  • Other 0.1%
Find a file
Jam Balaya f201061345
Feeds tree: sort feed names with locale-aware collation (#8985)
## Problem

The feed **tree** (left sidebar) and the **feed-title view** (main body) order feeds differently for names with accents or symbols. As reported in #8300, a Spanish feed starting with `Ú` appears **last** in the tree, after every ASCII-named feed.

The tree is sorted in PHP by `FreshRSS_Category::sortFeeds()` with `strnatcasecmp()`, which compares raw UTF-8 **bytes** — so any name starting with a non-ASCII character (`0xC3…` for `Á`, `Ñ`, `Ú`, …) sorts after `A–Z`. The main view is sorted by the database according to its collation, which orders accented letters near their base letter — hence the mismatch (as @Alkarex noted in the issue).

Closes #8300.

## Change

`sortFeeds()` now compares with a `Collator` (`ext-intl`, already a hard requirement) for the user's language, falling back to the previous `strnatcasecmp()` if a collator cannot be created:

```php
$collator = \Collator::create(FreshRSS_Context::hasUserConf() ? FreshRSS_Context::userConf()->language : '');
```

Sorting a Spanish set, before / after:

```
old: banana, Manzana, nube, Zorro, Ábaco, Ñandú, Úlcera, árbol
new: Ábaco, árbol, banana, Manzana, nube, Ñandú, Úlcera, Zorro
```

This makes the tree order locale-aware and much closer to the main view. Exact parity with the main view still depends on the database collation (which is admin/DB-specific and cannot be reproduced generically in PHP), but the "accented names sort last" problem is gone.

* Feeds tree: sort feed names with locale-aware collation

The feed tree sorted names byte-wise with strnatcasecmp(), which places
names starting with a non-ASCII character (e.g. an accented capital such
as "U-acute") after every ASCII name. Use a Collator for the user's
language so accented and non-ASCII names sort near their base letter,
closer to the database collation used on the main feed-title view.

For https://github.com/FreshRSS/FreshRSS/issues/8300

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Guard Collator with class_exists() so intl stays optional

The intl extension is only a recommended (not required) dependency, but
sortFeeds() called \Collator::create() unconditionally when a user language
was set. On installs without intl the \Collator class does not exist, so the
call raised a fatal "Class \"Collator\" not found" — effectively promoting
intl from recommended to required.

Guard the call with class_exists('Collator'): when intl is absent, fall back
to the previous byte-wise strnatcasecmp() sort. Locale-aware ordering stays a
progressive enhancement and the listed requirements are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Shorten the sortFeeds() collation comment per review

Trim the rationale comment to a concise four lines as suggested in review,
keeping the locale-aware/fallback and class_exists() reasoning.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Stylistic preference

* Factorise localeCompare

* Minor code preference

* Preserve natural locale sort behaviour

* Avoid repeated locale lookup in comparator

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2026-07-07 15:42:12 +02:00
.devcontainer Docker Alpine 3.24.0 (#8916) 2026-06-11 22:17:16 +02:00
.github Migrate markdownlint-cli to markdownlint-cli2 (single config file) (#8987) 2026-07-05 14:18:49 +02:00
app Feeds tree: sort feed names with locale-aware collation (#8985) 2026-07-07 15:42:12 +02:00
cli cli/health.php: output a diagnostic when the health check fails (#8980) 2026-07-04 18:59:30 +02:00
data Rework fetch favicons (#7767) 2025-08-01 08:30:49 +02:00
Docker Add SSRF mitigations using filter_var and CURLOPT_RESOLVE (#8400) 2026-06-28 18:51:04 +02:00
docs Add read status hook for entries (#8995) 2026-07-07 09:04:32 +02:00
extensions gitignore: Ignore all the installed extensions (#8372) 2025-12-31 11:51:02 +01:00
lib Add read status hook for entries (#8995) 2026-07-07 09:04:32 +02:00
p Fix article hover date visibility (#8997) 2026-07-07 13:59:25 +02:00
tests Fix statistics repartition averages (#8996) 2026-07-07 10:42:53 +02:00
.dockerignore Docker: Alpine 3.23 (#8285) 2025-12-05 22:20:57 +01:00
.editorconfig Migrate markdownlint-cli to markdownlint-cli2 (single config file) (#8987) 2026-07-05 14:18:49 +02:00
.gitattributes export-ignore (#4415) 2022-06-19 20:03:17 +02:00
.gitignore Remove .DS_Store files and update .gitignore (#8971) 2026-07-03 13:28:36 +02:00
.hadolint.yaml Readme 2454-2456 2019-07-23 10:01:52 +02:00
.htaccess.dist Fix .htaccess.dist for access to /scripts/vendor/ (#7598) 2025-05-17 22:50:53 +02:00
.jshintignore Update bcrypt.js from 2.4.4 to 3.0.2 (#7449) 2025-03-25 10:19:51 +01:00
.jshintrc ESLint upgrade from JSHint (#3906) 2021-10-21 11:44:03 +02:00
.markdownlint-cli2.jsonc Migrate markdownlint-cli to markdownlint-cli2 (single config file) (#8987) 2026-07-05 14:18:49 +02:00
.stylelintignore Improve layout of documentation page and add search feature (#8247) 2025-12-04 20:06:21 +01:00
.stylelintrc.json Use native CSS instead of SCSS (#8241) 2025-11-23 13:15:10 +01:00
.typos.toml Improve layout of documentation page and add search feature (#8247) 2025-12-04 20:06:21 +01:00
AGENTS.md Initial conventions for AI agents and humans: AGENTS.md, SKILLS.md, instructions.md (#8478) 2026-02-01 13:06:53 +01:00
CHANGELOG.md Add option to keep or reset article sort order when navigating (#8969) 2026-07-07 11:04:31 +02:00
composer.json chore(deps-dev): bump phpstan/phpstan from 2.1.55 to 2.2.1 (#8906) 2026-06-03 12:52:45 +02:00
composer.lock chore(deps-dev): bump phpstan/phpstan-phpunit from 2.0.16 to 2.0.17 (#8960) 2026-07-01 21:38:02 +02:00
config-user.default.php Add option to keep or reset article sort order when navigating (#8969) 2026-07-07 11:04:31 +02:00
config.default.php Add SSRF mitigations using filter_var and CURLOPT_RESOLVE (#8400) 2026-06-28 18:51:04 +02:00
constants.php Start 1.29.2 2026-05-20 20:00:46 +02:00
CONTRIBUTING.md docs: deduplicate CONTRIBUTING.md into docs/en/contributing.md (#8727) 2026-04-29 15:17:21 +02:00
CREDITS.md i18n: Update el (Greek) translations (#8977) 2026-07-04 12:26:51 +02:00
eslint.config.js Migrate to ESLint 9 (#6685) 2024-08-04 19:40:14 +02:00
force-https.default.txt Doc force-https (#7259) 2025-01-26 23:19:44 +01:00
index.html Config allow robots 2015-10-25 00:01:13 +02:00
index.php Change how files are included (#7916) 2025-09-05 15:56:46 +02:00
LICENSE.txt Update chmod for LICENSE.txt 2018-12-22 11:39:08 +01:00
Makefile Show time since when a feed has problems + new timeago() method and i18n plurals (#8670) 2026-04-07 22:56:02 +02:00
opml.default.xml Default or custom OPML (#2627) 2019-11-04 17:45:15 +01:00
package-lock.json Migrate markdownlint-cli to markdownlint-cli2 (single config file) (#8987) 2026-07-05 14:18:49 +02:00
package.json Migrate markdownlint-cli to markdownlint-cli2 (single config file) (#8987) 2026-07-05 14:18:49 +02:00
phpcs.xml Add SSRF mitigations using filter_var and CURLOPT_RESOLVE (#8400) 2026-06-28 18:51:04 +02:00
phpstan-next.neon PHPStan: finalise strictArrayFilter (#7794) 2025-08-07 22:19:45 +02:00
phpstan.dist.neon Bump phpstan/phpstan from 2.1.46 to 2.1.54 (#8753) 2026-05-02 21:16:27 +02:00
README.fr.md Add option to keep or reset article sort order when navigating (#8969) 2026-07-07 11:04:31 +02:00
README.md Add option to keep or reset article sort order when navigating (#8969) 2026-07-07 11:04:31 +02:00
SECURITY.md Update security policy due to many duplicated AI reports (#8900) 2026-06-01 01:33:32 +02:00

Liberapay donations

FreshRSS

FreshRSS is a self-hosted RSS feed aggregator.

It is lightweight, easy to work with, powerful, customizable, and has been translated into many languages.

It is a multi-user application with an anonymous reading mode. It supports custom tags. There is an API for (mobile) clients, and a Command-Line Interface.

Thanks to the WebSub standard, FreshRSS is able to receive instant push notifications from compatible sources, such as Friendica, WordPress, Blogger, Medium, etc.

FreshRSS natively supports basic Web scraping, based on XPath, for Web sites not providing any RSS / Atom feed. Also supports JSON documents.

FreshRSS offers the ability to reshare selections of articles by HTML, RSS, and OPML.

Different login methods are supported: Web form (including an anonymous option), HTTP Authentication (compatible with proxy delegation), OpenID Connect.

Finally, FreshRSS supports extensions for further tuning.

FreshRSS logo

Feedback and contributions

Feature requests, bug reports, and other contributions are welcome. The best way is to open an issue on GitHub. We are a friendly community.

To facilitate contributions, the following option is available:

Open in GitHub Codespaces

Screenshot

FreshRSS screenshot

Disclaimer

FreshRSS comes with absolutely no warranty.

Documentation

Requirements

  • A recent browser like Firefox / IceCat, Edge, Chromium / Chrome, Opera, Safari.
    • Works on mobile (except a few features)
  • Light server running Linux or Windows
    • It even works on Raspberry Pi 1 with response time under a second (tested with 150 feeds, 22k articles)
  • A Web server: Apache2.4+ (recommended), nginx, lighttpd (not tested on others)
  • PHP 8.1+
  • PostgreSQL 10+ or SQLite or MariaDB 10.6+ or MySQL 8.0+

Installation

The latest stable release can be found on GitHub. New versions are released every two to three months.

If you want a rolling release with the newest features, or want to help testing or developing the next stable version, you can use the edge branch.

Automated install

Docker YunoHost Elestio
Cloudron PikaPods Zeabur
ClawCloud Hostinger

Manual install

  1. Get FreshRSS with git or by downloading the archive
  2. Put the application somewhere on your server (expose only the ./p/ folder to the Web)
  3. Add write access to the ./data/ folder for the webserver user
  4. Access FreshRSS with your browser and follow the installation process
  5. Everything should be working :) If you encounter any problems, feel free to contact us.
  6. Advanced configuration settings can be found in config.default.php and modified in data/config.php.
  7. When using Apache, enable AllowEncodedSlashes for better compatibility with mobile clients.

More detailed information about installation and server configuration can be found in our documentation.

Advice

  • For better security, expose only the ./p/ folder to the Web.
    • Be aware that the ./data/ folder contains all personal data, so it is a bad idea to expose it.
  • The ./constants.php file defines access to the application folder. If you want to customize your installation, look here first.
  • If you encounter any problem, logs are accessible from the interface or manually in ./data/users/*/log*.txt files.
    • The special folder ./data/users/_/ contains the part of the logs that are shared by all users.

FAQ

  • The date and time in the right-hand column is the date declared by the feed, not the time at which the article was received by FreshRSS, and it is not used for sorting.
    • In particular, when importing a new feed, all of its articles will appear at the top of the feed list regardless of their declared date.

Extensions

FreshRSS supports further customizations by adding extensions on top of its core functionality. See the repository dedicated to those extensions.

Internationalization: 20+ languages. Translation progress

Language Progress
Čeština (cs) ■■■■■■■■・・ 81% contribute
Deutsch (de) ■■■■■■■■■・ 99% contribute
Ελληνικά (el) ■■■■■■■・・・ 73% contribute
English (en) ■■■■■■■■■■ 100% contribute
English (United States) (en-US) ■■■■■■■■■■ 100% contribute
Español (es) ■■■■■■■■■・ 99% contribute
فارسی (fa) ■■■■■■■■■・ 99% contribute
Suomi (fi) ■■■■■■■■■・ 92% contribute
Français (fr) ■■■■■■■■■■ 100% contribute
עברית (he) ■■■■・・・・・・ 42% contribute
Magyar (hu) ■■■■■■■■■・ 99% contribute
Bahasa Indonesia (id) ■■■■■■■■・・ 89% contribute
Italiano (it) ■■■■■■■■■・ 99% contribute
日本語 (ja) ■■■■■■■■・・ 88% contribute
한국어 (ko) ■■■■■■■■・・ 81% contribute
Latviešu (lv) ■■■■■■■■・・ 82% contribute
Nederlands (nl) ■■■■■■■■■・ 99% contribute
Occitan (oc) ■■■■■■■・・・ 74% contribute
Polski (pl) ■■■■■■■■■・ 99% contribute
Português (Brasil) (pt-BR) ■■■■■■■■■・ 99% contribute
Português (Portugal) (pt-PT) ■■■■■■■■・・ 81% contribute
Русский (ru) ■■■■■■■■■・ 99% contribute
Slovenčina (sk) ■■■■■■■■・・ 81% contribute
Türkçe (tr) ■■■■■■■■■■ 100% contribute
Українська (uk) ■■■■■■■■■・ 99% contribute
简体中文 (zh-CN) ■■■■■■■■■・ 97% contribute
正體中文 (zh-TW) ■■■■■■■■■・ 95% contribute

APIs & native apps

FreshRSS supports access from mobile / native apps for Linux, Android, iOS, Windows and macOS, via two distinct APIs: Google Reader API (best), and Fever API (limited features, less efficient, less safe).

App Platform Free Software Maintained & Developed API Works offline Fast sync Fetch more in individual views Fetch read articles Favourites Labels Podcasts Manage feeds
Capy Reader Android ✓✓ GReader
Readrops Android ✓✓ GReader
FeedMe Android ✓✓ GReader
FocusReader Android ✓✓ GReader
Read You Android ✓✓ GReader
Your News Android, iOS ✓✓ GReader
Fluent Reader Lite Android, iOS GReader
FeedFlow Android, iOS, Linux, macOS, Windows ✓✓ GReader ? ? ? ?
FriRSS Web (self-hosted) ✓✓ GReader ?
App Platform Free Software Maintained & Developed API Works offline Fast sync Fetch more in individual views Fetch read articles Favourites Labels Podcasts Manage feeds
Fluent Reader Windows, Linux, macOS ✓✓ GReader
RSS Guard Windows, GNU/Linux, macOS, OS/2 ✓✓ GReader
NewsFlash GNU/Linux ✓✓ GReader
Newsboat GNU/Linux, macOS, FreeBSD ✓✓ GReader
FluentFlame Reader Windows, Linux, macOS Work in progress GReader ? ? ?
App Platform Free Software Maintained & Developed API Works offline Fast sync Fetch more in individual views Fetch read articles Favourites Labels Podcasts Manage feeds
Vienna RSS macOS ✓✓ GReader ? ? ? ? ? ? ? ?
Readkit iOS, macOS ✓✓ GReader $
Reeder Classic iOS, macOS ✓✓ GReader
lire iOS, macOS ✓✓ GReader ? ? ? ? ? ? ? ?
Unread iOS ✓✓ Fever ? ? ?
Fiery Feeds iOS ✓✓ Fever ? ? ? ? ?
Netnewswire iOS, macOS Work in progress GReader ? ? ? ?

Included libraries

Additional credits

Alternatives

If FreshRSS does not suit you for one reason or another, here are alternative solutions to consider: