Pubblicazioni
What building NFT marketplaces taught me
Four NFT projects in under a year, from a marketplace template to a synthwave landing page, and what I learned building them.
Pubblicato
Tempo di lettura
3 minuti
Articolo
Between November 2021 and this summer I worked on four NFT projects, back to back. Some were landing pages, some were full marketplaces, and all of them were built at the speed the market was moving at the time, which was fast. Now that things have calmed down (a lot), it feels like a good moment to look back at what I actually learned.
Build the template once
The first one was Farm Planet. I started with an app shell, home, collection and filter pages, in React (opens in a new tab), then turned it into a marketplace template on Next.js (opens in a new tab) with Chakra UI (opens in a new tab) and web3.js (opens in a new tab). A month later, Crypto Katana needed a marketplace, and that template is what it was built on.
Every marketplace needs the same skeleton: a grid of items, filters on the side, a page per item and a page for what a wallet owns. Writing it once, properly, and shaping it for each client is the habit I’d keep from that period.
A marketplace is mostly filters
In Crypto Katana, a play-to-earn game, every katana is an NFT put together from four parts: a blade, a handle, a hand guard and a scabbard, each with its own rarity. On top of that, every katana has attack, skill damage, durability and dexterity. Players want to filter by any of it, and combine the filters freely.
So most of the work wasn’t the blockchain at all, it was the filtering: keeping it fast, keeping the state in one place (Redux (opens in a new tab), in that case), and making the results make sense when someone picks six filters at once.
The wallet is the account
There is no sign-up in these apps. You connect a wallet, and the collection page reads what that wallet owns. Building a user’s page without a user table also means a lot less to store and a lot less to secure on our side.
Landing pages sell a mood
Yukiments and Cybertown were mostly about the look. Yukiments was soft, clouds, rainbows and sparkles drifting around its showcase, tokenomics, roadmap and FAQs. Cybertown was the opposite: a synthwave city in parallax, with the collection, the roadmap and the team framed in augmented-ui (opens in a new tab)’s angled cyberpunk panels, and React Spring (opens in a new tab) and tsParticles (opens in a new tab) doing the motion.
With pages like these, the code is the easy part. The hard part is getting the feeling right, and keeping all that motion smooth on a cheap phone. I designed both of them myself, so the feeling was mine to get right.
Wrapping up
Some of the projects launched and some were short-lived, but the deadlines were relaxed and the clients were chill, so working with them was easy.
The market turned this spring, and the hype is mostly gone. What stays is the work itself: a reusable marketplace, a lot of practice with heavy filtering and animation, and Cybertown, which is open source on my GitHub (opens in a new tab) if you want to take a look. Looking back, I was on the fence about NFTs, but curiosity is what got me to take those projects in the first place.
Successivo
A year leading development for a gaming communityoTutte le 21 pubblicazionioA casooHome