
Traits.xyz
A better way to explore NFT traits

Share learnings dealing with lots of data in Rails app
#traits twitter.com/marckohlbrugge/st…


Completely restructure data-model using a more OO approach. All collections/assets get imported from OpenSea API and saved without modification. Afterwards they get "replicated" to a native format. This will allow me to easily replace or mix multiple APIs
#traits


Load everything with Turbo Frames (to simplify controllers and different parts of the page to be loaded in parallel and cached easier)
#traits


Significantly speed up importing of new collections (possibly by ~100x) by using bulk insertion and by changing the order of how things are inserted
#traits


Move a lot of the dynamic data like counts to front-end rendering with JS, as it will allow us to re-use the same cached fragments
#traits


Add dark mode 🌗
#traits

@flyinghacker Thanks Rich! It's a lot of fun to work on. The birds I didn't design btw. It's just an example NFT collection I've been using to show off Traits. But the website works for any NFT collection made by anyone.