MegaSkins
- 13 Devlogs
- 36 Total hours
A big Minecraft skin database and probably the only one with an api
A big Minecraft skin database and probably the only one with an api
I’ve added Minecraft skin heads to the OpenGraph preview so it doesn’t look boring anymore.
If you’ve not read the previous devblogs already: OpenGraph is the cool thing that allows you to display a preview in apps such as Twitter(X), Discord, Whatsapp, Slack, etc.
Previously there was only a description inside that preview. Now I’ve added the head of the skin to that preview.
Want to try out the feature? Post a link from a skin such as https://nuc.de.majic.rs/megaskins/skin/103605da15e8ba3e73de52e20bd96227bc258eabc3f65797a3a1d6f8ca7fdf4b inside any chat (you can also send this to yourself on Slack)
In case you need the skin head yourself you can get a png with the following format: https://nuc.de.majic.rs/api/megaskins/skin/head?hash=[hash]&scale=[scale,optional]
The scale must be between 1.0 and 64.0
Or if you like the Api-Tester 3000 I’ve added yesterday, you can test it out at the bottom of the page (beginning of the video)
Feedback? I am open to suggestions in the comments ♥️
Yes, you’ve heard it right. The MegaSkins public API ( https://nuc.de.majic.rs/api/megaskins/ ) is now much easier to learn.
I’ve added documentation and interactive demos to every page.
There is also a page that contains all API usage demos: https://nuc.de.majic.rs/megaskins/api
On this page you can experiment with the MegaSkins API inside the web browser without using specialized tools such as Insomnia.
Info: API usage limits also apply to the website (I doubt that it is possible to reach limits with legitimate request)
Next steps:
Feedback? I am open to suggestions in the comments ♥️
Skin Safety details can now be viewed from the web browser. This feature uses the skin safety api.
The safety API has a rate limit of 3 requests per second per ipv4 (Good luck hitting that limit bro).
The value the user receives is between 0 and 1, the same as on the API.
Even if a skin displays 404, you can try the button because it downloads the skin from Mojang’s servers if it isn’t in the db.
0 = completely safe
1 = seriously unsafe, exact match
Want to try out the feature? https://nuc.de.majic.rs/megaskins/skin/10594735a3796fa80b9aad48fc013f1af831735bc968c7d870c036b367db02ae
The recommended threshold for declaring a skin unsafe is 0.95 (95%)
Feedback? I am open to suggestions in the comments ♥️
Added native light mode support for the header now :D. Previously it was completely dark when light mode was enabled.
Also the header should look better on dark mode.
this isn’t an excuse to use light mode because dark mode is a billion times better
Next steps:
You can search for Minecraft skins inside the web browser now.
Search in the browser has the same rate limit as the search API (the page uses the search API)
Also, the UI should look much better on vertical monitors.
Example search: https://nuc.de.majic.rs/megaskins/search/police
In case you prefer the api (max 10 results): https://nuc.de.majic.rs/api/megaskins/skin/search?query=police
Feedback? I am open to suggestions in the comments <3
Safety? Ever wanted to have a skin filter on your Minecraft server?
Now you are able to check if a Minecraft skin is sus (aka. not child friendly). The system detects how similar a skin is to an existing flagged skin in the database.
The only thing you provide is the skin hash (the id Mojang gives your skin) and then the server tries to find it locally. If it can’t be found locally then the skin is downloaded directly from Mojang. After that step each pixel that is valid for a skin is compared against every pixel of flagged skins and a percentage value is calculated from 0 to 1.
Meanings:
0.95 = 95% similarity
This system will be improved in future to be more reliable against false positives. I am planning to create a Minecraft plugin that does this job for you
Ahh btw. The server takes ~10-20ms to process one request at the moment. (it is a really old one haha)
Current false positives:
You can see more details in the screenshot!
You can try it yourself with for example: https://nuc.de.majic.rs/api/megaskins/skin/safety?hash=101f6e9ae23fe8997d9fdf2c1409d97e7270b32f0590c1111eea1e04d1e05d4
If you have any questions or feedback then you can leave a comment or contact via Slack 😀
Good night <3
OpenGraph? What’s that open thingy?
It’s a pretty cool thingy!
What is OpenGraph?
Why is it cool?
Plans for the OpenGraph feature:
Feedback? I am open to suggestions in the comments <3
MegaSkins has a public search & description API now! No auth needed!
GET https://nuc.de.majic.rs/api/megaskins/skin/search?query=WORDS
and
GET https://nuc.de.majic.rs/api/megaskins/skin/description?hash=SKIN_HASH
Requests return HTTP 429 after reaching the limit. [each type has its own limits depending on how demanding they are and how much of value a resource is (I don’t want people bombarding the server with hundreds of requests per seconds just to build a copy 😭)]
Deployed on https://nuc.de.majic.rs/megaskins
Add a counter of current skins in the database 💯
The website is mobile friendly now. What’s missing: search, site stats, safety API
The main page and everything else is deployed on https://nuc.de.majic.rs/megaskins/ . Time to continue cooking!
Doing some (not) serious frontend stuff now. Now i remember why I hate frontend… Luckily my focus isn’t on frontend haha
Hello, World! I think I have good progress! :D
Building a database of Minecraft skins that allows automated usage