Overview of CyberConnect on-chain protocol and explore the potential use cases
Tags: beginners, tutorial, blockchain, web3
Published: 2022-11-16 14:40:41

**Overview**

**This guide will be covering:**

- How Does Composable Middleware Accelerate dApps in Web3?
- What is CyberConnect?
- Use Cases 
- CyberConnect SDK
- What to build with CyberConnect?

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nhyygt5blvnkxhru2195.png)

**How Does Composable Middleware Accelerate dApps in Web3?**

The term "middleware" refers to a versatile part of the web3 building block that embraces Composability and Pluggability and allows it to quickly and intelligently inform other parts of the entire construction. As an illustration, if we consider EVM to be an infrastructure, then the [Cyberconnect](https://cyberconnect.me/), APIs for a thriving decentralised environment, will serve as a Middleware.

**Infrastructure integration in a manner of longboard effect**

Each tool is extremely effective in the current infrastructure situation, but there is no way to combine their functions. There are numerous toolkits that, despite having a similar appearance, approach the subject from various perspectives. For instance, Next.ID focuses on syncing Web2 and Web3 profiles as well as full persona ownership when processing Cross-chain Channel-based DID, .bit concentrates on Cross-chain behaviour aggregating, especially for non-EVM footprints and social recovery and CyberConnect is committed to permissionless on-chain relational solutions to maximise social network expansion.
We are missing a one-place integration of middlewares to empower more advanced web3 use cases. We think that the Longboard Effect is the core. Individual applications should play their most robust part in the construction of web3 development.

**Comprehensive Ecosystem loops**

As soon as cross-platform data collaboration is established, sustainability concerns are very simple to overlook. The first step in the data enabling process is data extraction using ETLs (Extract, transform, load) and indexation from full nodes; the second stage is data pre-processing through clustering and tagging; the third stage is through AI, scoring, and credit programmes; the final step is matching interactions to dApps or user protocol. However, just because a process is complete does not mean the entire task has been completed. Re-examining the logic of the entire logic and adaptive learning, or fitting it to the optimal logic, is often the most important and easily overlooked course. Here is a picture of how the loop looks.

**What is CyberConnect?**

CyberConnect is a blockchain-based open-source social graph (A map represents social relations between users) created to reshape the future of social media concepts in the era of Web3 and decentralization. 

CyberConnect is intended to be permissionless and capable of empowering content creators to "own their digital roots" and enable people to uncompromisingly own the connections between themselves and the communities, in contrast to contemporary Web2 social media platforms like Twitter or Facebook that use social graphs to develop interconnections among users of social networks only in a centralised manner.

The development of the CyberConnect resulted in the emergence of a decentralised social graph that users completely own, regaining control over their information and links as well as giving them access to features that allow them to monetize their content. It empowers users to truly own their social identities, contents, and connections in a social network and provides developers with a rich set of tools to build applications with meaningful social experiences.

As the next stage of web3 begins to take shape, the CyberConnect protocol will offer decentralized options for how data is used and perceived with the following features:

**Publicly accessible**: All dApps will have open access to the decentralised social graph data as an optional feature, allowing developers to take advantage of user connections to expand beyond their current user base.

**Self-sovereign**: Only users have complete control over their own social graphs, even though the social graph data is accessible to everyone (i.e., adding, deleting, and updating the connections)

**Blockchain-agnostic**: The protocol is designed for a multi-blockchain ecosystem to support connections from anywhere rather than being tied to a single blockchain.

**Decentralized governance**: CyberConnect will adhere to the principles of shared security, permissionless systems, and decentralised governance, which will influence the roadmap and development of the protocol. CyberConnect is motivated by Ethereum's vision.

**Token-incentivized**: CyberConnect will introduce a token-incentivized model in the early stages to fairly reward all contributors who help bootstrap the social graph in order to support the long-term development of the CyberConnect Protocol.

**Options for privacy-preserving features**: CyberConnect is actively looking into technical solutions to enable privacy-preserving features in the future because it is aware that some users care more about their connection data than others do.

**CyberConnect use cases**

**Build a decentralized social graph database**

At the heart of CyberConnect is a tamper-proof data structure that efficiently facilitates the creation, update, query and verification of user-centric data. Long-term data retention on CyberConnect is guaranteed through Ceramic’s blockchain anchoring and a custom data pinning service. 

**Multi-account identity**

Optimize identity management in a multi-account environment with a simplified single sign-on experience, user provisioning, and password management for your dApp

**Identity index for composability**

identity protocol, for easy user data indexing and integration with other protocols and applications.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/taqbh06ie148skilapmd.png)

**Universal social graph index**

CyberConnect also collects and organises social graph data from websites such as Twitter, Foundation, and Rarible, among others. The combination of all this information results in a rich and distinctive user experience. Consider a social network that can automatically generate a "suggested user list" for each user based on their historical purchases of NFTs, their past transactions (sending and receiving tokens or NFTs), and the people they follow on other websites like Twitter and Rarible. This is vastly different from the majority of modern centralised architecture-based new social platform creations, where you start from scratch whenever a chance arises.

CyberConnect also indexes higher dimensional network data, which allows it to generate new connection suggestions based on existing social graphs. This curation and indexing aims to combine both the user-owned publicly accessible social graph with other off-chain data from across web2 and web3 applications.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wbli0wwpw4xfl38cpmi7.png)

An API gateway makes this global social graph index available to app developers. Without worrying about creating and maintaining the corresponding database to store contact lists and followers, developers can quickly create a new "instagram for NFTs." Because of this, CyberConnect shortens the time it takes for application developers to see results, enabling them to concentrate on developing content curation and recommendation systems based on social graph data. CyberConnect allows users to import their existing friend lists, allowing developers to concentrate on the gaming experience rather than the social aspects.

**CyberChat**

A trustless, decentralized chat app that helps round out the social ecosystem for web3. CyberChat enables users to log in with a blockchain wallet, create their user profile based on on-chain data, and frictionlessly send chat messages while interacting with the blockchain. With CyberChat, decentralized projects and DAOs can now manage their communities on a crypto-native basis.

**CyberConnect SDK**

Developer- friendly gateway to help write social connection data to decentralized datastores.

Ways to connect

- JS SDK
- Follow Button
- Social Verifier

**CyberConnect SDK - Data Standard**

```
type Proof = {
   /** Name of the operation. E.g, Follow */
   name: string; 
   /** State of the operation, E.g, true or false for following or not */
   state: boolean; 
   /** The originator address */ 
   from: string;
   /** The target address */
   to: string;
   /** Which dApp is this connection originated */
   namespace: string: 
   /** Which network is this connection on */ 
   network: string; 
   /** timestamp */ 
   timestamp: number;
};
```
**What to build with CyberConnect?**

**Blogging with crowdfunding**

With the help of the CyberConnect protocol, developers can create social dApps that store and manage user social data like profiles, posts, and content decentralized. Additionally, users can monetize their data by publishing it in NFT format on a chosen blockchain. For instance, the content creator could charge 14 $CYBER tokens for each of the 100 editions of their blog and only permit subscribers to NFT-collect such content.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6d00jjia2rjucv1t19kj.png)

**SBT/NFT issuing platform**

Top Web3 projects frequently and successfully use airdrops and tokens to entice early adopters, convert them to contributors, and keep them engaged with rewards like badges. With the help of the protocol, communities can create sizable audiences using social data that resides as ERC-721 NFTs on CyberConnect. Applications for community tooling use CyberConnect to power community profiles and give members badges for participating in activities.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xl9xa5ah1wuqvjpgyvsb.png)

**Recommendation**

When creating your social dApp, you can use CyberConnect to obtain interesting recommendation data. The protocol, for instance, can produce a list of suggested users to follow based on users' connections and social data from both off-chain and on-chain sources. Additionally, a list of suggested token purchases can be created by modelling trading activity and holdings in relation to other addresses (i.e. collaborative filtering model).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fhqnk1w7w5e73170jsng.png)

**CONCEPT**

To get an idea of what it would look like to build on the CyberConnect protocol, let's first understand CyberConnect's concepts and key features.

**Schema**

CyberConnect has the indexed data schema designed as below that represents social relationships on Link3. You can find the more detailed gql schema on our API Playground and query subfields that all start from the wallet address.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/073vmhgikogujkydd8w0.png)

**Identity**

Users can aggregate their identities across various platforms and applications by using a decentralised social graph. This enables developers to get access to more detailed information about a user's address, like:

Their ENS or Solana Domain
Their NFTSs
Their Avatar
Their verified WEB2 social account
Their first ON-CHAIN Transaction 
Their followers/followings

**Profile**

A CyberConnect profile is similar to a profile in Web2 social applications because it is the starting point for every on-chain action. Each profile is an ERC-721 NFT and is the owner of its content and paid subscribers. Additionally, each user may have multiple profiles. As of right now, the protocol only permits people to mint profiles through Link3 on Ethereum; however, on the testnet, minting profiles is free.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6nnoo9xqlma7qv7x1e98.png)

**Content**

Content created by users, including blogs, videos, and publications. We also examine how users interact with this content in novel ways enabled by smart contracts, such as by supporting public goods, giving to charities, and governing. Users must first create their profiles before they can create content because each piece of content is linked to a profile in order to establish authority and trust. Each piece of content can be gathered using dynamic rules.
Users can begin developing their on-chain social network by creating "content" after creating their profiles. Content in CyberConnect can be anything a user develops, issues, or builds. Through this design, dynamic use cases like:

1. Creators posting short-form content on video platforms,
2. Event organizers issuing reward/recognition badges for participation, or
3. Universities issuing verifiable credentials like diplomas for students.

All content is represented in the format of an ERC-721 token called EssenceNFT. The content itself can be stored on different storage platforms like IPFS or Arweave, depending on the developer’s discretion.

Additionally, Collect Middleware Contracts are provided by the protocol. Thus, each profile owner can add unique functionality regarding the nature of the token and the "collecting" conditions (such as pay to collect or hold NFT to collect)

The protocol also offers Collect Middleware Contracts. Thus, each profile owner can add unique functionality regarding the nature of the token and the "collecting" conditions (such as pay to collect or hold NFT to collect) (e.g. transferable or non-transferable). Link3 is an illustration. EssenceNFT is used by the Web3 social network of verifiable identities to enable organisation profiles to issue badges/SBTs for attendance. EssenceNFT is used by our own demo app to represent a post.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxqaaoryltl1w0uvfx4q.png)

**Subscribe**

Web3 users can enable paid subscriptions to their profiles using CyberConnect's Smart Contract Protocol. Rules for profile subscriptions will need to be established, and our Subscribe Middleware Contracts will be crucial for this. Upon successful subscription, each subscriber will receive a SubscribeNFT.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ifbtun9ovoc8e6x6mjoa.png)

**Interaction**

A general interaction is illustrated in the diagram below:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0l2plprt7nadg6eg2w1o.png)

**Further Readings**

- [CyberConnect Docs](https://docs.cyberconnect.me/)
- [CyberConnect Github](https://github.com/cyberconnecthq/cybercontracts)
- [Getting started with CyberConnect API](https://cyberconnect.hashnode.dev/getting-started-with-cyberconnect#heading-build-a-simple-content-app-with-cyberconnect)

That’s it for this guide! Hope you found it useful and thanks for reading 😁. For more information, read the official white paper on the [CyberConnect](https://cyberconnect.me/) website. Follow the team on [Twitter](https://twitter.com/CyberConnectHQurl) or join their communities in [Discord](https://discord.com/invite/bYJ3cB7bbC) & Telegram to stay up-to-date!