DIYgodandClaude Opus 5.5 df160b792b fix(core): make route sorting comparator transitive (#23398)
sortRoutes returned 0 whenever two paths had the same segment kinds up to
the shorter length, e.g. `/articles` vs `/radios/:category?`, or the empty
path `''` vs any path. That tie relation is not transitive, so toSorted
could register a literal route after a param route that matches it,
depending on the module import order:

- /sehuatang/user/:uid was served by /sehuatang/:subforumid?/:type?
- /gcores/radios/preview was served by /gcores/radios/:category?

Compare paths lexicographically by segment rank (literal < regex param <
plain param). When one path runs out of segments, it goes first unless it
ends with a regex param, which may span several segments, so
/discuz/:link{.+} still comes after the longer discuz paths.

Close #18335

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:30:01 +08:00
2026-09-23 04:03:23 +00:00
2018-04-11 01:48:11 +08:00
2025-12-07 00:15:41 +08:00
2026-01-13 00:06:06 +08:00
2026-09-05 20:14:43 +08:00
2026-09-04 03:06:11 +08:00
2025-06-06 21:38:15 +08:00
2025-12-28 18:42:39 +08:00
2024-03-09 20:30:59 +08:00
2024-03-03 17:36:08 +08:00
2026-07-09 05:31:38 +08:00
2026-07-09 02:37:41 +08:00
2026-03-25 23:16:40 +08:00

RSSHub

RSSHub

🧡 Everything is RSSible

docker publish npm publish test Test coverage Visitors

Telegram group Telegram channel X (Twitter)

Folo
RSSHub pairs especially well with Folo, an AI RSS reader for feed discovery and modern reading workflows. The project is also open source on GitHub.
StarDesk
RSSHub keeps me informed, and StarDesk lets me fix routes or feeds remotely, even run terminal commands from my phone. It’s fast, convenient, and free.
RapidProxy
RapidProxy offers reliable residential proxies for scraping and global data access, with 90M+ IPs across 200+ countries. Traffic never expires, starting at just $0.55/GB. try free now

Introduction

RSSHub is the world's largest RSS network, consisting of over 5,000 global instances.

RSSHub delivers millions of contents aggregated from all kinds of sources, our vibrant open source community is ensuring the deliver of RSSHub's new routes, new features and bug fixes.

Documentation | Folo | Telegram Group | Telegram Channel | X (Twitter)

  • Folo | An AI RSS reader that works especially well with RSSHub. Source code: GitHub.
  • RSSHub Radar | A browser extension that can help you quickly discover and subscribe to the RSS and RSSHub of current websites.
  • RSSBud | RSSHub Radar for iOS platform, designed specifically for mobile ecosystem optimization.
  • RSSAid | RSSHub Radar for Android platform built with Flutter.
  • DocSearch | Link RSSHub DocSearch into Raycast.
  • Awesome RSSHub Routes | Curated list of RSS feeds and RSSHub routes.

Contribute

We welcome all pull requests. Suggestions and feedback are also welcomed here.

Refer to Quick Start

Deployment

Deploy RSSHub with a single click on Hostinger – pre-configured and ready to run

Deploy on Hostinger

Refer to Deployment

Special Thanks

Logo designer sheldonrrr

              

Author

RSSHub © DIYgod, Released under the AGPL-3.0 License.
Authored and maintained by DIYgod with help from contributors (list).

Blog @DIYgod · GitHub @DIYgod · X (Twitter) @DIYgod · Telegram Channel @awesomeDIYgod

Languages
TypeScript 99.6%
JavaScript 0.3%