Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@poprank/rankings
Advanced tools
This package holds PopRank's NFT rankings logic. Curious as to how we calculate our rarity and aesthetics scores? Well, we believe it should be transparent, so it's all laid out publicly here!
For a more hands-on example which involves pulling NFTs from OpenSea via their API and then calculating their rarity, check out the example in our @poprank/opensea package
Please join us in our Discord too, we'd love to chat with you.
Rarity Punks outlined the base of our "Trait Sum" rarity calculation, we're thankful for their stellar work and recommend you check them out!
Install via npm / yarn:
yarn add @poprank/rankings
In order to run the example, you need to have Node / NPM installed. To run a typescript file, we suggest installing npx
such that you can run npx ts-node <filename>.ts
.
There are numerous how-to's online about this that can explain it better than we can.
By default, our example.ts
will use our saved collection we use for tests, in the rarity/ folder, which is an array of our NftBase
type - NFTs with traits attached to them, but no rarity / trait counts calculated yet.
The example will calculate the rarity for the collection, saving the final rankings both in its JSON form, and a simple HTML file that'll show you visually the top 100 ranked NFTs!
You can make whatever edits you wish to our rarity algorithm and re-run the example.ts to see how it impacts the end result! We'd love to hear what you come up with :)
FAQs
PopRank's NFT rarity and aesthetic ranking logic
We found that @poprank/rankings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.