Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » [Servers Stopped!] SUI v5.0 - Scratch Username Index API
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
(#221)Yeah. I know that. Indexing usernames on Scratch is hard. I wonder how ScratchDB finds new users. I have limited resources to run my server.3.7M+ users!That's a lot of users. Unfortunately, that's only like 5% of the 110,051,160 users registered SUI indexed more than
But the indexing amount seems less. Any more ways to index more users?
But my program almost upserts (updates + inserts) 600,000 users every day!
- ajskateboarder
-
1000+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
You could expedite the process by running multiple instances of SUI at once. What are your server's specs?Yeah. I know that. Indexing usernames on Scratch is hard. I wonder how ScratchDB finds new users. I have limited resources to run my server. That's a lot of users. Unfortunately, that's only like 5% of the 110,051,160 users registered
But my program almost upserts (updates + inserts) 600,000 users every day!
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
(#223)
What are your server's specs?
Hmm… I'm using a free hosting service but here is a small info about it:

(#223)I can do that. But don't you think that it will over-spam the Scratch API? Also, there are already 3 threads running:
You could expedite the process by running multiple instances of SUI at once.
- Username Indexer - It indexes the followers and following of famous Scratchers…
- Project Indexer - It indexes the project author and the author's followers…
- Studio Indexer - It indexes the managers and curators in a studio…
- ajskateboarder
-
1000+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
You could make it so the additional threads index at a slower rate, like 1 request per second, while the main threads run as usual. I can do that. But don't you think that it will over-spam the Scratch API?
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
(#225)Hmm… Maybe I can make that. I will try that soon…You could make it so the additional threads index at a slower rate, like 1 request per second, while the main threads run as usual. I can do that. But don't you think that it will over-spam the Scratch API?
Thank you for the suggestion and idea!
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
I am going to re-write the SUI API according to this flowchart (I made that flowchart just for fun and to test the features of https://tldraw.com and it's actually the most complex flowchart I created till now…)
BTW The flowchart is read-only, you can't edit it…
BTW The flowchart is read-only, you can't edit it…
- SCRATCH---PIXEL
-
57 posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
How do you store data? In MongoDB?
How much memory it takes you to store 3.7 million users IDs + usernames? (I don't think it's 40 MiB)
Before inserting user it checks whether there is already such user, I guess
How much memory it takes you to store 3.7 million users IDs + usernames? (I don't think it's 40 MiB)
Before inserting user it checks whether there is already such user, I guess
Last edited by SCRATCH---PIXEL (July 17, 2023 17:45:50)
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
How do you store data? In MongoDB?
How much memory it takes you to store 3.7 million users IDs + usernames? (I don't think it's 40 MiB)
Before inserting user it checks whether there is already such user, I guess
Yes the data is stored in MongoDB…
Check the /get_data endpoint to know how the data is stored…
The total size of all the data (3.8M+ users) is roughly around 114.05 MB.
The previous versions of SUI used to check if the user exists but now it just upserts (updates + inserts) the user data which makes it more faster…
- HPF2IH05
-
2 posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
I did it and then bitdefender said it was dangerous so if it's okay can you take this down before others get scammed.
- DifferentDance8
-
1000+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
Sid72020123 is a trustworthy figure in the AT scene (Advanced Topics, the subforum you just posted in). Why I did it and then bitdefender said it was dangerous so if it's okay can you take this down before others get scammed.would he scam others?
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
Wait. This cannot be true. It's maybe because of the “.space” domain or “.eu I did it and then bitdefender said it was dangerous so if it's okay can you take this down before others get scammed.
.org” one. The API is completely safe and it is just used to get the data stored in the DB.
Last edited by Sid72020123 (July 19, 2023 10:21:04)
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
Sid72020123 is a trustworthy figure in the AT scene (Advanced Topics, the subforum you just posted in). Why I did it and then bitdefender said it was dangerous so if it's okay can you take this down before others get scammed.would he scam others?
Oh. Thank you so much

This day is one of the happiest days of my life since I joined Scratch.I am happy that someone trusts me.
- mybearworld
-
1000+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
(#230)Website scanners have a lot of false positives because they have to in order to catch most bad sites. SUI isn't dangerous.
I did it and then bitdefender said it was dangerous so if it's okay can you take this down before others get scammed.
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
(#227)I will start working on this soon when I get time…
I am going to re-write the SUI API according to this flowchart (I made that flowchart just for fun and to test the features of https://tldraw.com and it's actually the most complex flowchart I created till now…)
BTW The flowchart is read-only, you can't edit it…
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
I am going to rewrite the API code (it may take over a month) and add new features to it. Also due to upcoming updates to Scratch and the API, I may completely pause the indexing program from 10th of August and resume it directly after 27th of August. During this period, you can still access and request the API to get the data…
- josueart
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
Um, what about brute-forcing usernames? Nvm, there are like 40.481.239.792.225.648.784.462.962.744.968 possibilities.
Sadly, there are accounts with no connections, no followers, no following anyone, no projects shared, not in any studio, etc. How do you plan to index them?
Sadly, there are accounts with no connections, no followers, no following anyone, no projects shared, not in any studio, etc. How do you plan to index them?
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
(#237)
Um, what about brute-forcing usernames? Nvm, there are like 40.481.239.792.225.648.784.462.962.744.968 possibilities.
Sadly, there are accounts with no connections, no followers, no following anyone, no projects shared, not in any studio, etc. How do you plan to index them?
IDK. Anyways I've got so busy these days that I didn't even saw the status of the API.
And I forgot to announce that I stopped the main indexing program a few days ago because I didn't maintained it since months and it was bugging out…
I plan to re-write the API (with the development on Sunday every week for only 1 hour)
- josueart
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
You should open-source the rewritten API so others can contribute.
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
You should open-source the rewritten API so others can contribute.
I have not started working on that yet…
- Sid72020123
-
500+ posts
[Servers Stopped!] SUI v5.0 - Scratch Username Index API
Should I completely stop the indexing program? Anyways nobody uses this API…