music-metadata-ipfs
v1.0.22
Published
metadata for music nfts with easy IPFS hosting.
Downloads
33
Maintainers
Readme
Music NFT IPFS Metadata
Standard for musicians pioneered by Catalog & Mint Songs.
Compatible with contracts created by:
- WARNING: this code is unaudited
Get Started
To add music NFT metadata to your next music NFT drop, just
install with NPM
npm i music-metadata-ipfs
or install with Yarn
yarn add music-metadata-ipfs
Configure your API key
- set your
.env.local
file withNEXT_PUBLIC_NFT_STORAGE_API_KEY=YOUR_API_KEY
- get a free API key from nft.storage
Usage
import { MusicMetadataProvider } from 'music-metadata-ipfs'
- wrap your Music Metadata Form in a
<MusicMetadataProvider>
. import { useMusicMetadata } from 'music-metadata-ipfs'
const { metadata, setMetadata, createIpfsMetadata } = useMusicMetadata()
- modify music metadata:
onChange={(e) => setMetadata({ ...metadata, image: e })}
- upload your metadata to IPFS:
const ipfs = await createIpfsMetadata()
- take your music metadata to any ERC721 token contract (Catalog, Manifold, Zora, Sound, etc.)
Example Music NFT:
import MusicMetadataForm from '...'
import { MusicMetadataProvider } from 'music-metadata-ipfs'
const MusicNFTMinter = () => {
return (
<MusicMetadataProvider>
<MusicMetadataForm />
</MusicMetadataProvider>
)
}
export default MusicNFTMinter
- 73 Music NFT attributes stored on chain in your music nft metadata.
You Newest Tool for Music NFTs (decentralized on IPFS)
- Your Music NFT Smart Contract (ERC721).
- Your Music NFT in OpenSea
- Works out of the box.
- 100% free CC0 technology (MIT License - use this w/o crediting me).
How to deploy
yarn build && npm publish
Credits:
- kadajett.eth (co-author) - @JSTechThing
- DanielAbalde/NFT-On-Chain-Metadata
- Zora Editions
- Nouns DAO #177
More info
Checkout our Github for the latest changes.