Wiki Year in Review
VSCode + Volar (and disable Vetur).
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lintWe had to aggregate results across 12 months. We support all-days. It would be useful to also have all-months. e.g. https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia/all-access/2024/all-months/all-days
Right now it is only possible to get the top article per country for a certain day e.g. https://wikimedia.org/api/rest_v1/metrics/pageviews/top-per-country/{country}/{access}/{year}/{month}/{day}
It would be great to be able to categorize "Movies", "Music", as well as deaths. Only deaths has an appropriate category. We'd have to create a category tree. For example "2024 elections in Asia" rather than "2024 elections".
Could we make it possible to use API to get all parent categories as well as typical categories?
Editors would need to be involved in the process of creating the year in review to help add notes to why things trended and to also filter out random stuff e.g. Cleopatra.
Generating the page involves heavy use of API but could easily be run once and built as a static site.
If the page is presented in January, then all data is available. If before January, we'd need to regularly rebuild the data sources on a daily basis.
Not supported for "Get number of editors" (but supported for "number of new users").