Username
The Username system on Lens offers a flexible and customizable approach to user identities. While there is a global namespace like "lens", applications can deploy their own namespaces, such as app/username, allowing them to create unique username ecosystems and even generate revenue. This hierarchical structure enables apps to align usernames with their brand and community, fostering a more personalized user experience.
Usernames are deployed as individual contracts, which are tokenized for tradable access. Developers can set minting rules such as charging a fee or requiring ownership of a specific NFT—using the modular rule system. Additional features include defining minimum and maximum username lengths, setting secondary royalties compliant with EIP-2981, and managing admin access. This comprehensive system provides both flexibility and control over how usernames are created and managed within the network.