Skip to content

Scratch stats per user #1751

@Bl00D4NGEL

Description

@Bl00D4NGEL

Is your feature request related to a problem? Please describe.
As an (active) user of the platform I would love to have some sort of stats regarding the scratches I have created / solved either visible for myself or on my "public" profile (i.e. https://decomp.me/u/Bl00D4NGEL) for everyone to see.

Describe the solution you'd like
When I visit my profile I would love to have stats like (including but definetely not limited to):

  • "# of scratches created"
  • "# of scratches 100% matched"
  • "# biggest scratched matched (based on asm lines?)"

These could be "total" stats as well as per preset / platform (in a perfect world it'd be all of them)

Describe alternatives you've considered
I would've scraped the API myself and built something but that's not possible due to Cloudflare. I also don't think this is an approach that's usable for the general public (or would go in line with decomp.me's ToS?!).

Additional context
These metrics' may or may not have to be cached depending on how resource intensive the queries turn out to be. I may be able to tinker around with this feature myself if given some directions as to how this could be approached from an architectural pov.

This feature could later on be extended to create embeddable badges on e.g. Github "user README pages", ref https://github.com/alexandresanlim/Badges4-README.md-Profile for examples of these badges although I do understand possible limitations with this in regards to rate limiting etc.

These stats might also be handy / interesting to make available on a per-preset / platform basis instead of a per-user basis (e.g. a preset has a total of x scratches out of which y have been 100% matched, z have been created/matched in the last x interval, x users have created scratches for this preset/platform, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions