Discuss Scratch

SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

I made a little neat scratch user statistics site that you can find here!
https://scratchstats.pages.dev

Feel free to suggest any potential ideas or improvements you would like to see on the site!

Q&A:
Q: Why don't you add user follower count
A: Scratch has an inefficient system which does not have an endpoint for simply the follower count. Instead the inefficient solution would be fetch:
api.scratch.mit.edu/users/griffpatch/followers

Which returns the first 20 of @griffpatch's followers which also returns the data for the users as well. You can use as an example ‘?offset=21’ to get the next 20. Then after we continue grabbing more users, we offset it by 21 each time. Before then finally getting the length of the jsons in the array. As you can imagine this will be a problem, assuming @griffpatch has approx. 600k followers, we'd have to make nearly 30,000 API requests for just one user! This is the reason why I have not implemented follower count yet. Please let me know if there are any better methods out there!

Example:

Last edited by SSSouple (March 21, 2025 23:04:05)

SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

bump
SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

bump
SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

bump
Mr-Mathmatical
Scratcher
95 posts

ScratchStats - Find the statistics of your favorite scratchers!

A faster way to get the follower count would be to use a binary search. We know the user must have between 0 and 600,000 followers. So first check if the user has 300,000 followers, if not, check 150,000, if yes, check 450,000, and repeat. Actually, since we know that the follower count of users on Scratch is not uniform, we could approximate the distribution as exponential maybe and take the quantiles instead.

Btw, you can also do https://api.scratch.mit.edu/users/SSSouple/followers/?limit=40&offset=0 to get 40 users instead of 20
IAmANewbieTrustMe
Scratcher
100+ posts

ScratchStats - Find the statistics of your favorite scratchers!

this is a pretty cool website! one thing though, can you add a dark mode? kinda hurts my eyes looking at this white..

Last edited by IAmANewbieTrustMe (March 30, 2025 12:54:01)

SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

IAmANewbieTrustMe wrote:

this is a pretty cool website! one thing though, can you add a dark mode? kinda hurts my eyes looking at this white..




also griffpatch fell off /j
I'd be happy to add that!
SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

bump
NightCat28
Scratcher
16 posts

ScratchStats - Find the statistics of your favorite scratchers!

This is awesome! My buddy @DuckGoose9254 showed me it and I gotta say, I love the nostalgic theming of the site! I will be bookmarking it and checking for updates. Keep up the good work

Oh, one last thing. When you do eventually add follower counts, will you be adding ranks? (ex: 1,000th most followed globally, 232nd in country, etc)

Last edited by NightCat28 (April 1, 2025 17:17:17)

DuckGoose9254
Scratcher
54 posts

ScratchStats - Find the statistics of your favorite scratchers!

I love this site. If possible, would you be able to load more than 5 projects in each row? That would add a lot to the site!

Thanks!!
-sbossbattle_
Scratcher
100+ posts

ScratchStats - Find the statistics of your favorite scratchers!

it doesn't work for me
SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

core1223e wrote:

It is blocked for me
Try this instead!
SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

-sbossbattle_ wrote:

it doesn't work for me
Could you elaborate?
DuplexCode
Scratcher
20 posts

ScratchStats - Find the statistics of your favorite scratchers!

Looks great and I really like the design! I’d love to see global and regional follower rankings too as @NightCat28 said, but it’s still awesome
BriIIiantScratcher
Scratcher
100+ posts

ScratchStats - Find the statistics of your favorite scratchers!

it blocked

SSSouple wrote:

core1223e wrote:

It is blocked for me
Try this instead!
it blocked for me on that website
LionCoder10
Scratcher
1000+ posts

ScratchStats - Find the statistics of your favorite scratchers!

cool site! my suggestions are: top user/project rankings (suggested by few already), and heart-to-view ratio (and ranking) (like this one here, another scratch stats site I found!). other than that, sweet!
PineappleBlueberry16
Scratcher
100+ posts

ScratchStats - Find the statistics of your favorite scratchers!

Number of Comments probably.
PineappleBlueberry16
Scratcher
100+ posts

ScratchStats - Find the statistics of your favorite scratchers!

oh, if you can put follower count eventually, make it so you can see how connected to any Scratcher

eg,. This person follows you, which has this person following them, which has griffpatch following them.

And you're most famous followers as well!
SSSouple
Scratcher
48 posts

ScratchStats - Find the statistics of your favorite scratchers!

bump
Zippy02
Scratcher
36 posts

ScratchStats - Find the statistics of your favorite scratchers!

Powered by DjangoBB