GithubHelp home page GithubHelp logo

aranyia / nft-indexer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

Indexing & searching NFTs (concept demo)

Python 50.79% JavaScript 8.52% CSS 3.02% HTML 37.67%
indexer indexing nft nft-collections nfts search search-interface searching sharding

nft-indexer's Introduction

NFT metadata indexing & searching

A proof of concept project focused on processing and indexing Non-Fungible Tokens (NFTs) for search functionality. Here's a breakdown of what each script does:

  1. nft_search.py: This script fetches NFTs, generates descriptions and keywords for each NFT using AI models, and then indexes these NFTs in a Trie data structure. The index is then serialized and saved to a file.

  2. nft_index_sharder.py: This script loads the serialized index from the file, shards the index into smaller sub-indexes based on the first character of the keywords, and then saves each shard to a separate file.

  3. nft_search_web_swarm.py: This script is a Flask web application that provides a search interface for the NFTs. It loads the sharded indexes from the Swarm network (a decentralized storage and communication network), performs search queries on these indexes, and returns the results. The search functionality is designed to work with sharded indexes, which allows it to efficiently search across multiple shards.

  4. nft.py: This script is responsible for interacting with the OpenSea API to fetch NFTs and their associated metadata. It also uses AI models to generate descriptions and keywords for each NFT. The script is built around a Flask application that provides several routes for different AI functionalities such as describing an image, listing dominant colors, generating a short poem, and generating free text based on a given instruction. The fetched NFTs and their AI-generated descriptions are stored and can be accessed via the Flask app.

In summary, it is the basis of a system that uses AI to generate descriptions and keywords for NFTs, indexes these NFTs for efficient search, shards the index for distributed storage, and provides a web interface for searching the NFTs.

nft-indexer's People

Contributors

aranyia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.