📑Whitepaper

CodexField: The Truly Decentralized Platform to Store, Share and Trade Code

Git, created by Linus Torvalds in 2005, has become one of the most widely-used version control systems in both open-source and commercial fields. It has become an essential tool for modern software development. However, while Git's remote repositories are stored in a centralized platform GitHub, users may face restrictions when accessing repositories due to external factors, such as political restrictions. As we know, in its history, GitHub has banned numerous developers' accounts and limited access to Github's open-source projects. This has sparked heated discussions about the idea of open source truly having no borders? Avoiding centralized control of code assets has become a hot topic.

As the Web3 field continues to grow, more and more people are recognizing the significance of ownership. To avoid being at the mercy of centralized platforms, many users are opting to store their data in decentralized storage networks. The Greenfield storage network, recently introduced by BNB Chain, has emerged as a powerful player in this space. It offers not only decentralized data storage but also unique permission management features. Furthermore, its cross-chain programming model with the BSC network opens up a world of possibilities for this ecosystem.

CodexField has emerged as an innovative solution that allows developers to save their code on the decentralized storage network Greenfield, the code saved on Greenfield will be distributed throughout the Storage Provider network, enabling it to resist censorship while being readily accessible, which provides developers with complete ownership of their codes.

CodexField is a decentralized platform aimed at developers, which provides a fully compatible experience with Git, allowing developers to use the toolset to develop and upload code to Greenfield. Furthermore, CodexField proposes an innovative solution for trading codes named Code Marketplace, which is a platform where developers can sell their code saved on Greenfield at their own prices. To ensure quality, CodexField also introduces a rating mechanism, which enables users to rate the codes, creating a reputation-based trading platform for developers on the blockchain.

CodexField

CodexField mainly includes three components: the Gitd tool, the CodexSync plugin, and the CodexField frontend.

Gitd means “Git for CodexFiled”, or in other words, “Git for Decentralized Storage”. The Gitd tool is fully compatible with Git's functionality and usage, enabling developers to use Gitd for version control and code submission.

The CodexSync plugin facilitates one-click migration of user-submitted code from Github to CodexField, saving it on the Greenfield network.

CodexField frontend is a web-hosted frontend page setup on Greenfield, which allows users to view and manage code stored in Greenfield through Gitd.

By default, the code uploaded through Gitd is set to private access, visible only to the author. However, users can choose to make their code public, which will be displayed on CodexField and visible to all users. Moreover, users can list their private code for sale on the Code Marketplace.

Code Marketplace

CodexField has proposed a Code Marketplace that uses on-chain reputation to create a high-quality platform for trading code. Currently, developers lack a platform to monetize their valuable code assets, and their only option is to open-source their code to gain reputations. With the introduction of Code Marketplace, developers can manage and trade their code assets, while also earning reputations by contributing high-quality code. This platform also benefits code demanders, who can easily find and select the code they need, creating a mutually beneficial relationship between buyers and sellers.

Code Marketplace is a completely decentralized trading platform that has two main components: the code marketplace contracts deployed on BNB Smart Chain (BSC) and the Code Marketplace frontend page integrated with CodexField. All transactions that take place on Code Marketplace are completed via on-chain smart contracts, with no human intervention. The transaction process is as follows.

For Code Providers:

  1. Developers upload their code to Greenfield using Gitd.

  2. Developers list their code for sale on the Code Marketplace and set the price.

For Code Consumers:

  1. Consumers search for code on CodexField that meets their needs and then filter through different code providers.

  2. If the public code already meets their requirements, they can use it directly without purchasing. If not,

  3. Consumers can purchase access to the code via the Code Marketplace. After a successful purchase, they can access the code.

  4. Users can rate and give feedback on the purchased code.

Economic Model

CodexField is a decentralized platform that provides code developers with decentralized code management capabilities for free. Uploading code to the Greenfield network requires sending a transaction, and users need to pay gas fees for the transaction. Additionally, users' code is stored in the Greenfield network, which incurs storage and read traffic fees for the files stored. Users are responsible for paying this fee, which is typically very low due to the small size of code files. Pricing details can be found on Greenfield's website.

In the Code Marketplace, code transactions are settled in BNB. Code providers set the pricing for their codes, and buyers can gain access to the code by paying the corresponding fee. During this process, the platform charges a certain percentage of the trading fee, which is governed by a chain parameter set at an initial value of 5%.

CodexField plans to launch tokens in the future to incentivize early contributors to the project through airdrops. Holding these tokens can also provide users with specific discounts when purchasing codes. More details about this will be disclosed later on.

Not Just Code

CodexField is a decentralized application developed on top of BNB Greenfield and BNB Smart Chain (BSC). Its main goal is to tackle the issue of code ownership for developers, giving developers a platform to monetize their code assets in a new way. In the future, it also plans to launch blog and course features. This platform allows developers to accumulate professional knowledge and generate income through knowledge assetization, and aims to build a high-quality, completely decentralized knowledge payment platform by leveraging on-chain reputation systems and SocialFi capabilities.

Last updated