npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

minimum-viable-nft

v1.0.0

Published

Contracts for a minimum viable NFT compatible with Opensea Polygon

Downloads

3

Readme

Deploying an NFT (or how the shovel is built)

  1. install text editor if you don't have one. I use Sublime Text, and like that it works the same way on all major operating systems: https://www.sublimetext.com/3, but any of them will work. In a pinch, you can get by with the defaults for your operating system, which are notepad (Windows), nano (Linux) and textedit (osx).

  2. verify that everything is installed - you can do this by opening a terminal and typing node -v and git --version. It should print the version number in both cases

  3. from a terminal in some convenient place, clone the example code repo: git clone https://github.com/ana0/MinimumViableNFT.git

  4. move into the folder you just cloned cd MinimumViableNFT

  5. install the dependencies: npm ci (this might take awhile)

  6. make a .env file with cp .env.example .env. On windows, use copy .env.example .env instead. Open this file in your text editor, and put the 12 word seed phrase from your metamask in there. Be careful with this step! If you're working inside this repo, the .env file is in the .gitignore, and won't get committed - but if you move this project or any code snippets elsewhere, be sure to check! If your 12 word seed is committed to github, any funds/assets in that account will likely be stolen

  7. make an account on pinata (https://pinata.cloud)

  8. upload an image to pinata (please use one you own), and be sure to check the box to "preserve filename"

  9. again using your text editor, edit the file metadata.json to include the link to your image. You can also change the name and description to be anything you want

  10. again using your text editor, edit the file contract-metadata.json to include the link to your image, name and description you want. seller_fee_basis_points is the percentage you will receive if the work is resold, and fee_recipient is the address that will receive it.Do not set the seller_fee_basis_points higher than 3000 (30%), as this is not supported by Opensea

  11. upload the metadata and contract-metadata files to pinata, again being sure to check the box to "preserve filename", and get the CID

  12. using your text editor, change the CID in the file migrations/02_deploy_main_contract.js

  13. from your terminal open in the MinimumViableNFT folder, run: npm run deploy

  14. go to opensea and create an account, this will ask you to sign a message with metamask. you should see your NFT in your wallet

  15. if you want to mint further NFTs, transfer these NFTs to other people, there's an example script in transfer.js. You can run it from a terminal open in this repo with node transfer.js