mfers
v3.1.0
Published
quick and easy access to mfers metadata
Maintainers
Readme
Looking for JSON data files? Check here
Install
Via Bun:
bun install mfersimport { getMfers, findMfers, describe } from 'mfers';API
getMfers()
returns an ordered array of mfer metadata. Index in array = mfer token id (mfer #6308 ~> mfers[6308])
import { getMfers } from 'mfers';
let mfers = getMfers()
mfers[6308].id // ~> 6308
mfers[6308].traits
// {
// background: "blue",
// type: "plain mfer",
// eyes: "regular eyes",
// "hat under headphones": "bandana dark gray",
// headphones: "black headphones",
// mouth: "flat",
// smoke: "cig white",
// }
// shortcut to iterate over traits
for(let [trait,variant] of mfers[6308]){
console.log({ trait, variant })
}
traits
An object containing all possible variations for each trait
import { traits } from 'mfers';
Object.keys(traits)
// ~> [ "chain", "hat over headphones", "short hair", ... ]
traits['chain']
// ~> [ "silver chain", "gold chain" ]
traits['hat over headphones']
// ~> [ "cowboy hat", "top hat", "hoodie", "pilot helmet" ]describe(trait_obj)
A function that describes arbitrary trait combinations using plain english, ideal for LLMs and GPTs. This was used for MferGPT
Why?
mfers is an NFT collection that lives on the Ethereum blockchain with metadata stored on IPFS. Instead of manually downloading and parsing 10k JSON files, you can just import this library! The metadata is stored in a compressed format, reducing the network payload by 100x
Use Case Inspiration
- Tailored media generators
- mfer dapp theming (color schemes + trait-specific designs)
- Derivative projects
- Sniping aesthetic trait combinations
Acknowledgements
mfers (by sartoshi) is a cc0 project, giving creators and developers the freedom to build things like this. Enjoy mfers ~
