How diygod/rsshub works
RSSHub is a service that aggregates content from many websites and exposes it as RSS feeds for readers and discovery tools. The principal workflow is a reader requesting a feed, RSSHub retrieving source content through a route, and the service returning a feed representation. The tree also shows API endpoints, middleware, caching, and worker/runtime components. Route implementations and most wiring were not sampled, so those relationships are shown as unverified rather than asserted as direct calls.
Main entry points: app.worker.tsx RSSHub service · registry.ts Route dispatch · routes Source routes · rss.tsx RSS renderer
Components 15
Service runtime
- RSSHub service
lib/app.worker.tsx - Route dispatch
lib/registry.ts - Worker entry
lib/worker.ts
Feed generation
- Source routes
lib/routes - RSS renderer
lib/views/rss.tsx - Atom renderer
lib/views/atom.tsx - Feed views
lib/views/index.tsx
Runtime services
- Cache service
lib/utils/cache/index.worker.ts - Service configuration
lib/config.ts
API and operations
- API endpoints
lib/api - Request middleware
lib/middleware - Error handling
lib/errors/index.tsx
Other components
- Feed reader
- Content sources
- RSS clients
Connections 15
- Feed reader → RSSHub service: requests feeds
- RSSHub service → Route dispatch: dispatches requests
- Route dispatch → Source routes: selects route
- Source routes → Content sources: aggregates content
- RSSHub service → RSS renderer: renders feed
- RSSHub service → Atom renderer: renders feed
- RSSHub service → Feed views: renders output
- RSSHub service → Cache service: uses cache
- RSSHub service → Service configuration: uses settings
- Worker entry → RSSHub service: starts service
- RSSHub service → Request middleware: processes requests
- RSSHub service → Error handling: handles failures
- RSSHub service → API endpoints: exposes endpoints
- RSS renderer → RSS clients: returns feed
- Atom renderer → RSS clients: returns feed