Self-hosted service
imsyy/DailyHotApi avatar
imsyy/DailyHotApi

DailyHotApi: a self-hosted JSON and RSS aggregator for Chinese trending lists

Today's Hot List API, an aggregated API for trending data, supporting RSS mode and Vercel deployment. Frontend page: https://github.com/imsyy/DailyHot

4,114 stars1,341 forksTypeScriptMIT

At a glance

What is it?
DailyHotApi exposes trending lists through a Hono-based TypeScript service in JSON or RSS. Its routes depend on external sites and endpoints, so availability, response formats and network access should be checked for each source.
Who is it for?
DailyHotApi can provide a common interface to selected trending lists. Test the routes you need from your deployment network, review upstream usage terms, and plan for source changes.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Activity is slowing. The repository last received commits 8 months ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • imsyy/DailyHotApi4,114 ★ · +45
Star history
Repository2026-09-242026-11-25
imsyy/DailyHotApi4.1k4.1k

45 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What DailyHotApi actually aggregates, and who needs it

The repository is a single TypeScript service that turns many Chinese hot lists into one uniform response. The README's interface table lists routes such as bilibili, acfun, weibo, zhihu, zhihu-daily, baidu, douyin, kuaishou, douban-movie, douban-group, tieba, sspai, ithome, ithome-xijiayi, jianshu, guokr, thepaper, toutiao, 36kr, 51cto, csdn, nodeseek, juejin, qq-news, sina, sina-news and netease-news. Each entry has a category (热门榜, 排行榜, 热榜, 推荐榜 and so on) and a call name, and the call name is the path you request. That naming is the whole public contract: /weibo, /zhihu, /douyin.

The audience is narrow but real. If you are building a dashboard, a feed reader, a chat bot command, or a small internal monitor that needs to know what is trending in Chinese media right now, you would otherwise write a separate scraper per site, each with its own parsing rules and rate-limit behaviour. DailyHotApi collapses that into one HTTP call per source and one response shape. The README also points at a companion front end, imsyy/DailyHot, and at a public demo at hot.imsyy.top, so the intended pairing is this API plus a page that renders it.

It is not a general news API. The documented routes focus on current lists rather than a general historical search API. The repository also includes GitHub-related routes, so the catalogue is not limited to Chinese sources; check the current route table for coverage.

The mechanism: Hono routes, axios fetches, node-cache or Redis

The dependency list tells you most of the architecture. The HTTP layer is hono with @hono/node-server, so the service is a plain Node process rather than a framework with a large runtime. Outbound requests use axios and node-fetch, HTML parsing uses cheerio, and feeds are produced with feed and consumed with rss-parser. The inspected cache code attempts Redis lazily and uses NodeCache as an in-process fallback; it also writes eligible entries to both when Redis is available. Logging uses winston. md5, dayjs, iconv-lite and user-agents handle the details that scraping Chinese sites tends to require, such as hashing cache keys, formatting timestamps, decoding non-UTF-8 responses and sending a plausible browser identity.

The data flow is one hop. Routes generally retrieve and normalize upstream data with caching, but implementation and source type vary by route; inspect and test the specific endpoint. The README describes the routing directory as 简明的路由目录, 便于新增, which is a fair description of the trade-off: adding a site means adding a route module, and the maintenance burden moves to whoever owns that module.

Two environment variables define the operational envelope. CACHE_TTL defaults to 3600 seconds, so by default a route can serve data up to an hour old. REQUEST_TIMEOUT defaults to 6000 milliseconds, which is short enough that a slow upstream will fail rather than hang. RSS_MODE defaults to false; when enabled, the same routes are served as feeds instead of JSON. There is also FILTER_WEIBO_ADVERTISEMENT, which defaults to false and exists because the Weibo list contains promoted entries.

Installing DailyHotApi with Docker Compose or pnpm

The repository ships a Dockerfile and a docker-compose.yml, and the compose file is the shortest path. It builds the runner target, maps port 6688, mounts ./logs, sets PORT=6688, and runs as user 114514 with restart: always.

yaml
services:
  DailyhotApi:
    build:
      context: .
      target: runner
    ports:
      - "6688:6688"
    volumes:
      - "./logs:/app/logs"
    environment:
      - PORT=6688
    user: "114514"
    restart: always

Run docker compose up --build from the repository root and the service should listen on port 6688. The Dockerfile itself is a two-stage build on node:20-alpine: the builder installs pnpm globally, copies package files, tsconfig.json, pnpm-lock.yaml and .env.example, copies src and public, copies .env.example to .env if no .env exists, then runs pnpm install, pnpm build and pnpm prune --production. The runner stage creates a hono user with uid 1001, creates /app/logs, symlinks /logs to it, copies node_modules, dist, public, .env and package.json, switches to that user, exposes 6688 and starts node /app/dist/index.js.

For a local run without Docker, the package.json scripts are the guide. The dev script uses tsx watch with --no-cache, and dev:cache is the same without that flag.

bash
pnpm install
pnpm dev
pnpm build
pnpm start

pnpm build runs tsc --project tsconfig.json, and pnpm start runs node dist/index.js with NODE_ENV=development. The README does not document a production start command distinct from that script, so if you run it outside Docker, check what NODE_ENV you actually want before copying the script verbatim.

Configuration comes from .env, seeded from .env.example:

bash
PORT=6688
ALLOWED_DOMAIN="*"
DISALLOW_ROBOT=true
REDIS_HOST="127.0.0.1"
REDIS_PORT=6379
REDIS_DB=0
CACHE_TTL=3600
REQUEST_TIMEOUT=6000
USE_LOG_FILE=true
RSS_MODE=false

ALLOWED_HOST is empty by default and the comment states that filling it in makes the service ignore ALLOWED_DOMAIN. DISALLOW_ROBOT defaults to true. Once the process is up, a first real call is a plain GET against a route name from the table, for example http://localhost:6688/weibo, which should return the Weibo hot list as JSON. Set RSS_MODE=true and restart if you want the same path as a feed.

Where DailyHotApi breaks: scraping, caching and the public demo

Routes depend on external services or endpoints that the project does not control. HTML parsing and API calls can fail when upstream formats, access policies or network conditions change. When one of them changes, that route returns errors or empty lists while the rest of the service looks healthy. The README acknowledges this indirectly: the interface table is annotated with live website badges per route, which is a per-route health signal rather than a guarantee, and the demo section warns that the example site may be unreachable because of traffic or lack of maintenance.

The README also states that the demo site runs on an overseas server and that some domestic sites may be inaccessible from it, with 请以实际情况为准. That warning applies to your own deployment too. If you host outside mainland China, expect some upstreams to be slow or blocked, and note that REQUEST_TIMEOUT is 6000 ms by default, so a slow route fails rather than waiting.

Caching is the second boundary. CACHE_TTL=3600 means an hour of staleness by default, which is fine for a trends widget and wrong for anything that needs to react within minutes. Lowering it increases load on the upstream sites and raises the chance of being rate-limited or blocked. The default cache store is node-cache, which is in-process, so it does not survive a restart and is not shared across replicas; Redis can share eligible cache entries, but persistence across a restart depends on Redis's own configuration; the inspected code does not send buffer data to Redis.

Finally, this is a current-state service. Nothing in the project describes storage or history, so if you need to know what was trending yesterday, this is the wrong tool.

DailyHotApi compared with writing your own scrapers or using a feed bridge

The realistic alternative is not another aggregator with the same name; it is either hand-rolled scrapers or a general feed-generation tool such as RSSHub. The difference is scope and control.

Hand-rolled scrapers give you exactly the sources you need and nothing else. You own the parsing, so you can adapt the moment a site changes, and you can cache in whatever store your stack already uses. The cost is that you reimplement the boring parts: user-agent rotation, encoding handling, timeout policy, cache keys, and a consistent response shape across sources. DailyHotApi has already made those decisions, and its dependency list shows the shape of them.

RSSHub takes the opposite approach: it is a much broader route catalogue aimed at generating feeds from many kinds of sites, not specifically at Chinese trending lists. If your need is a handful of Chinese hot lists with a JSON option, DailyHotApi's table is a closer fit and its route naming is simpler. If your need is feeds from arbitrary sites, DailyHotApi's table will not cover it, and check both projects' current route catalogues and test the sources you need.

The honest framing is that DailyHotApi is a maintained set of scrapers with a uniform surface. You are trading control for a head start, and you take on the same upstream fragility either way. What you gain is that a fix to a popular route is a change someone else may already have made.

Maintenance, licence and what a fork implies

The repository is not archived, and the last push was on 2026-03-11. The most recent release is v2.0.8, dated 2025-08-20, following v2.0.7 on 2024-12-12 and v2.0.6 on 2024-11-19. So the release cadence is uneven: two releases in late 2024, then a gap of roughly eight months to v2.0.8, with commits continuing after that release. Treat the project as maintained but not on a schedule, and plan for route fixes to arrive when someone has time rather than on a cadence.

The licence is MIT, stated in package.json and present as LICENSE at the repository root. In practical terms that permits use, modification and redistribution with the licence text retained. It does not give you any rights to the upstream data, and the hot lists themselves remain subject to each platform's own terms. If you redistribute the output, that is a question about the sources, not about this code. This is a description of the licence text, not legal advice.

Upgrade cost is low by design. The service uses cache and logs, with Redis optional. Before upgrading, review configuration, dependencies, route behavior and deployment changes; check your .env against .env.example, since the Dockerfile copies .env.example into the image when no .env is present. If you fork to patch a broken route, you are now maintaining that route yourself, and the tsconfig plus eslint and prettier configs in the repository are what you inherit for doing so.

Editorial conclusion

DailyHotApi can provide a common interface to selected trending lists. Test the routes you need from your deployment network, review upstream usage terms, and plan for source changes. The inspected cache code tries Redis lazily and also maintains an in-process cache; sharing and persistence depend on Redis configuration and the type of data. Add your own archival storage if you need reliable history, and restrict access appropriately before exposing the service.

Frequently asked questions

How do I install and run DailyHotApi?

Clone the repository and either run docker compose up --build, which builds the runner target and listens on port 6688, or install dependencies with pnpm install and start the development server with pnpm dev. For a compiled run, pnpm build then pnpm start executes dist/index.js.

Can DailyHotApi return RSS instead of JSON?

Yes. RSS_MODE in .env defaults to false, and setting it to true serves the same routes as feeds rather than JSON. The README lists RSS mode as one of the project's features alongside JSON mode.

Does DailyHotApi need Redis to work?

The inspected cache implementation attempts a lazy Redis connection and falls back to in-process NodeCache when Redis is unavailable. Redis can share eligible entries across instances, but survival across restarts depends on Redis persistence configuration and cached data type; test your deployment.

Why does a DailyHotApi route return an error or an empty list?

Routes depend on external sites or endpoints. Changes, anti-bot measures, service errors and network restrictions can affect individual routes; inspect logs and test the route from your own deployment environment.

Official sources

  1. imsyy/DailyHotApi on GitHub
  2. Issues
  3. License: MIT
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/imsyy-dailyhotapi.svg)](https://hysenlabs.com/projects/imsyy-dailyhotapi)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/imsyy-dailyhotapi.svg)](https://hysenlabs.com/projects/imsyy-dailyhotapi)

Was this useful?