Lens Protocol
Modular Smart-Contracts Architecture of Lens Protocol
Learn about the modular smart-contracts architecture of the decentralized social graph 🌿
Lens Protocol is an exciting experiment. Building a decentralized social graph was a crazy idea not long ago. Now, it’s not an idea it’s reality.
The protocol allows people to own their online identity and content. It provides the infrastructure to build apps we use every day. Your audience stays the same across all the apps since you own it. Same for content.
As a developer, I was hooked from day one. I got really curious about their architecture and infrastructure. It’s not an easy task to have relational user data on-chain and build this in a modular way to allow further functionality.
In short, profile-related data is stored on-chain and content can be stored on decentralized storage solutions like FileCoin and Arweave. The team created an indexer and store the data on Redis. They serve it through a GraphQL API as a convenience for app developers.
This is all great but it was not enough for me. I wanted to understand how all of this works behind the scenes. So, I decided to do a deep dive into the protocol’s smart-contracts.