Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@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
The npm package @poprank/rankings receives a total of 92 weekly downloads. As such, @poprank/rankings popularity was classified as not popular.
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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.