# Code Registry and Indexing

The IP Commons maintains a decentralized registry of all code NFTs minted and traded on the platform, using a combination of on-chain and off-chain data indexing techniques. The registry stores the essential metadata and references to the code assets, allowing for efficient querying and retrieval.

Off-chain indexing services, such as TheGraph or ElasticSearch, are used to provide fast and flexible search capabilities across the code registry. These services index the code metadata and content, and expose GraphQL or REST APIs for developers to query and filter code assets based on various criteria.

{% hint style="info" %}
The IP Commons also integrates with decentralized naming and numbering systems, such as ENS and Ultimate Digits, to provide human-readable and memorable representations for code assets and their creators. These names can be resolved to the corresponding code NFT addresses or IPFS hashes, enabling easier discovery and sharing of code.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flexecosystem.gitbook.io/flex-docs/protocol/flex-commons/code-registry-and-indexing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
