Skip to content

Trending crates section #1796

@tkaitchuck

Description

@tkaitchuck

Currently the homepage of crates.io has sections for:

  • New Crates
  • Just Updated
  • Most Downloaded
  • Most Recent Downloads

The new crates and just updated are not very interesting because the crates listed are just whatever happens to have been uploaded before you loaded the page.
The Most Downloaded and Most Recent downloads tend to be fairly static lists, as the list of mainstream widely used crates don't change very rapidly.

This leaves open an area for crates that have recently become popular. Two new sections that could be created without tracking any new statistics are:

  • "Newly popular crates" defined as taking the top crates when sorted by: Some constant * Number of downloads in the last 90 days - Number of prior downloads. This would give a list of crates that have just recently become popular. (With a constant probably somewhere between 1 and 10 depending on desired rate of turnover.)
  • "Trending crates" defined as taking the top crates when sorted by: Number of downloads in the last 90 days * (Download rate in the last 90 days / Download rate over crate lifetime) which simplifies to ((Downloads in 90 days)^2 / (Total downloads)) * (age in days/90). This would give a list of popular crates whose popularity is increasing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions