Alexandre Alapetite 78e40c6fe3 Scaling of user statistics (#8277)
Fix https://github.com/FreshRSS/FreshRSS/issues/8268
To better support user management on FreshRSS instance with many users.

SQL speed improved. On a reduced test with 5 users, including some large accounts (PostgreSQL on a very tiny and slow server), improving from ~2.3s to ~1.8s, which gives ~20% speed improvement.

Then tested with 1000 users, with only the default feed (on my old desktop computer):

```sh
for i in {1..1000}; do ./cli/create-user.php --user=freshrss$i --password=freshrss; done
app/actualize_script.php
cli/access-permissions.sh
```

SQLite:

```console
$ time cli/user-info.php | wc -l
1001

real    0m1.366s
user    0m0.908s
sys     0m0.475s
```

PostgreSQL:

```console
$ time cli/user-info.php | wc -l
1001

real    0m28.498s
user    0m12.137s
sys     0m2.217s
```

MariaDB:

```console
# time ./cli/user-info.php | wc -l
1001

real    0m49.485s
user    0m1.276s
sys     0m2.258s
```

Yes, SQLite is much faster - not a surprise for such use-cases, where the TCP connection is not re-used.

I have added some CLI options to disable some statistics:

```sh
cli/user-info.php --no-db-size --no-db-counts
```

For the Web UI, I have disabled detailed user statistics if it takes too long, and retrieve missing user statistics asynchronously via JavaScript. Lazy loading of the user details based on IntersectionObserver, with maximum 10 requests in parallel.
Web UI tested on 1000 users as well. Checked with SeaMonkey.
2025-12-04 19:11:31 +01:00
2025-12-04 19:11:31 +01:00
2025-12-04 19:11:31 +01:00
2025-08-01 08:30:49 +02:00
2025-11-17 00:27:24 +01:00
2025-12-04 19:11:31 +01:00
2023-12-29 13:36:30 +01:00
2022-06-19 20:03:17 +02:00
2019-07-23 10:01:52 +02:00
2021-10-21 11:44:03 +02:00
2025-12-04 18:54:02 +01:00
2025-09-27 15:09:53 +02:00
2024-09-06 09:35:58 +02:00
2024-08-04 19:40:14 +02:00
2015-10-25 00:01:13 +02:00
2018-12-22 11:39:08 +01:00
2025-09-22 22:02:59 +02:00
2023-06-09 08:26:53 +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) ■■■■■■■■・・ 85% contribute
Deutsch (de) ■■■■■■■■■・ 95% contribute
Ελληνικά (el) ■■■■・・・・・・ 40% contribute
English (en) ■■■■■■■■■■ 100% contribute
English (United States) (en-US) ■■■■■■■■■■ 100% contribute
Español (es) ■■■■■■■■・・ 88% contribute
فارسی (fa) ■■■■■■■■■・ 93% contribute
Suomi (fi) ■■■■■■■■■・ 96% contribute
Français (fr) ■■■■■■■■■■ 100% contribute
עברית (he) ■■■■・・・・・・ 43% contribute
Magyar (hu) ■■■■■■■■■・ 99% contribute
Bahasa Indonesia (id) ■■■■■■■■■・ 93% contribute
Italiano (it) ■■■■■■■■■・ 99% contribute
日本語 (ja) ■■■■■■■■■・ 91% contribute
한국어 (ko) ■■■■■■■■・・ 85% contribute
Latviešu (lv) ■■■■■■■・・・ 79% contribute
Nederlands (nl) ■■■■■■■■■・ 95% contribute
Occitan (oc) ■■■■■■■・・・ 78% contribute
Polski (pl) ■■■■■■■■■・ 99% contribute
Português (Brasil) (pt-BR) ■■■■■■■■・・ 84% contribute
Português (Portugal) (pt-PT) ■■■■■■■■・・ 84% contribute
Русский (ru) ■■■■■■■■■・ 99% contribute
Slovenčina (sk) ■■■■■■■■・・ 85% contribute
Türkçe (tr) ■■■■■■■■■・ 92% contribute
Українська (uk) ■■■■■■■■■・ 95% contribute
简体中文 (zh-CN) ■■■■■■■■・・ 86% contribute
正體中文 (zh-TW) ■■■■■■■■・・ 85% 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
Readrops Android ✔️ ✔️✔️ GReader ✔️ ✔️ ✔️ ✔️
Capy Reader Android ✔️ ✔️✔️ GReader ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FeedMe Android ✔️✔️ GReader ✔️ ✔️ ✔️ ✔️
FocusReader Android ✔️✔️ GReader ✔️ ✔️ ✔️
Your News Android, iOS ✔️✔️ GReader ✔️ ✔️ ✔️
Fluent Reader Lite Android, iOS ✔️ ✔️ GReader ✔️
Read You Android ✔️ 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
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 ✔️ ✔️ ✔️
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:

Description
No description provided
Readme 62 MiB
Languages
PHP 79.9%
CSS 10.6%
HTML 6.9%
JavaScript 2.3%
Shell 0.1%
Other 0.1%