Composability: Unlocking Web3 for JS Developers - Nik Kalyani
web3con 2022 · 6 Mar 2022 · 14:54
Nik Kalyani, founder and CEO of Decentology, argues that composability can do for web3 what APIs did for web2. The talk describes the friction JavaScript developers face with new languages, immutable code, weak documentation, poor discoverability and misaligned audit incentives. It then introduces smart modules, single-purpose on-chain building blocks that are audited with staked tokens and wrapped in familiar JavaScript, as a way to let web developers build sophisticated apps across several chains.
Speakers
Topics
From web3con 2022, hosted by Developer DAO.
Transcript
[Music] hi my name is nick kaliani and i'm the founder and ceo of decentology and today i'd like to talk to you about composability and how we are unlocking web3 for javascript developers let's first start by talking about web2 in web 2 the success was largely driven by the advent of apis application programming interfaces for instance if you wanted to integrate payment into your application you would use stripe just a couple of lines of code and you'd
be done if you want to integrate messaging you'd use twilio same with storage you could use aws and mapping you could use google maps of course this led to an explosion of apis and there are now literally thousands of apis to do just about anything you want to in web 2 for your application what this did is made web 2 really open for developers it became super simple to build applications and developers could focus on the creativity and the actual use case of the application instead of solving all kinds of ancillary problems now the nice thing about apis is even though it was open because there were good standards around it you could do
this you could build apps that integrated those apis without compromising security this was a really important thing because a lot of developers would not adopt apis if they resulted in their apps becoming unsecure what this eventually resulted in is the ability for millions of developers to unlock the opportunity of web 2 and what that did was give them a path to income so today many web developers are able to build applications and make a livelihood just because they have access to these apis and they can take their craft they can take the knowledge of javascript html css and build fairly
sophisticated applications this is the power of composability the ability of all these apis to exist such that any developer with basic javascript skills can create very sophisticated applications is a huge unlock and makes so much opportunity possible now let's look at what's happening in web 3 in web 3 there is a tremendous amount of friction for developers and there's many reasons for this but the main one is that in order to progress in web 3 today you need to know how to build smart contracts which requires fairly advanced
skills you need to learn new languages like solidity or cadence or rust or go and these are just really really hard in addition you have to learn new programming paradigms you need to think like a smart contract developer which is very different from thinking like a web developer you have to think about code execution cost you have to think about security and more importantly you have to write this code and make sure it's secure from the get go because once you deploy it it's immutable you can't go and fix bugs now you have to do all this in an environment where the code libraries because of the nascent and fast-moving nature of the ecosystem the code
libraries are often broken and to compound things the documentation is usually incomplete or out of sync with the libraries so this continues to add a fair bit of friction for developers and even when you are successful in building smart contract code what you end up doing is essentially duplicating code that's already been written by other people and deploying that this is against the ethos of blockchain the whole idea was that you wouldn't continually deploy the same code again and again it's not web 2 where there's lots of storage available for cheap the storage is very expensive and so when duplicated smart contracts are used it's really very wasteful of
resources the other thing is as developers who are just getting into this who are learning how to build smart contracts they're building these long monolithic smart contracts and in the process creating vulnerabilities making insecure smart contracts so this is another problem that developers today face the biggest problem i think is also about smart contract discoverability the fact that you have created a smart contract that solves a particular problem it's on chain it's available but there's no way for me or any other developer to find about its existence maybe if you've written a blog post about it maybe there's a link in there we might find about it but otherwise it's almost impossible to find
existing smart contracts other than the ones that are super popular and this is all compounded with the situation around auditing while there is auditor auditing capabilities and auditors available for smart contracts one of the fundamental problems is that the incentives are misaligned auditors today have no accountability they charge a large amount of money for auditing smart contracts provide a report have the developers fix it but then once the contract is deployed and a future vulnerability is discovered the auditors have just no accountability at all so this is a fundamentally broken model all of these together these all these factors
together have created a problem of adoption web 3 adoption is slow by developers because of all these problems and we need to fix that and that's what we are doing at decentology our solution consists of taking the fact that there are a few contract developers who have these advanced skills so if you look at the broader market there's a lot of developers who are coming into this marketplace but there's a few that are already there who've been there from the beginning and who have advanced skills so what we want to do is leverage these skills and what we want to have these developers do is instead of working on creating monolithic smart contracts
instead create smart contract code that is modular and in doing this we also want them to have some standards where they can build in discoverability into these uh modular smart contracts using metadata and we want to create a model where auditors are accountable for their work so they literally have to audit work and stake tokens stake money indicating the confidence and trust they have in the code so that if there is a problem that's discovered in the future then that money is slashed that stake is slashed causing them financial loss this aligns the incentives between the developers and
the auditors so finally what we want to do is bring to web3 the web 2 concept of apis as i mentioned earlier apis were really very successful in causing an explosion of application development in web 2 the likes of which has never been witnessed before and we want to reproduce the exact same thing in web3 our solution is smart modules so let's look at what that actually means so the idea is that instead of developers creating smart contracts that are entire applications have built them as smart modules which are smart contract building blocks so
each smart module does one thing really well so if this is sounds familiar it it's because it is so if you look at apis in web 2 most apis do one thing really well and if you want to do something else you use a different api so if you bring that model to web3 that equivalent would be smart modules which are on chain smart contracts that are essentially building blocks so what this can do now is open up opportunity for millions of javascript devs and give them the same ability to grow and flourish and thrive in web 3 as they did in web 2.
the ability to build decentralized apps that are very complicated does not have to require advanced uh smart contract skills we believe that it is possible for javascript developers with the skills they have to build complex apps and keep the development process very simple so you don't have to learn these new languages you don't have to learn new programming paradigms you can stick with what you know and continue to have a simple development process yet build very sophisticated applications and that's the platform that we are building and ultimately we want to make sure that the applications you build are also very very secure and
uh that's part and parcel of what we are building into our platform we want to make sure that the ability for that web to unlock for a lot of developers to earn income uh is also available in web3 we want to make sure the opportunity that exists for developers with the skills they have with javascript to earn a livelihood can be replicated in web 3 also this is the power of composability we want to unleash the power of composability that led to so much success in web 2 in web 3.
our solution is called the hyperverse it's an open marketplace of community built audited and easy to discover smart modules so what it does is essentially make it super simple for web 2 devs to build apps without writing a single line of smart contract code let's see how that works so it starts off with the small number of developers who are experienced with smart contract code to build smart modules so as i mentioned earlier instead of having smart contracts that can do lots of things smart modules are single purpose smart contracts they're on chain they're
available they're deployed and they're ready to use they're analogous to apis so smart module developers build these and then through a community of registrars they validate the packages that have been built for example we want to make sure that a smart module has the correct metadata for discoverability that it has documentation it has examples uh it has uh usage and reference information and all of those things together to make sure that the package is usable and complete by other developers once that's done then a community of auditors starts taking a look at that code and they look at the code for security for
vulnerabilities etc and if they feel that the code is secure what they will do is take tokens uh as a form of their trust and confidence in that module this in effect acts as an insurance layer for these smart modules so this has never existed before and it's a great innovation that we are really really excited about the ability to have insurance on open source software and make it so that anyone using this software can trust it so once this is done these modules are on chain they are available on different blockchains uh hyperverse is a blockchain agnostic platform and so for different blockchains there will be different sets
of smart modules depending on the use cases that are prevalent for that particular blockchain but ultimately the hyperverse is about a collection of on-chain smart modules that have been reviewed that have been created by experts and that have been audited and are secure what does this result in well it makes it super simple for javascript developers because now with all these on-chain modules it becomes a simple task for us to create a javascript wrapper in react or in other frameworks that allow you to essentially use these smart modules on chain as if you were using javascript modules in fact
when you experience the hyperverse software you will see that it's exactly like that it's literally npm for smart contracts they've made it so easy that you don't need to learn any new programming languages you work with a familiar paradigm of npm you add javascript modules and all the hard work is done for you in terms of integrating with the blockchain smart contracts it's literally taking javascript modules that have connectivity to on-chain smart modules and using them like lego blocks to build sophisticated applications you don't need to learn anything new about how to build for web3 you have all the skills already present
in fact if you were to make an analysis of the market our guess is that roughly 20 percent of the developers in the market will end up writing smart modules uh because they are familiar with co solidity cadence rust typescript etc but the vast majority of you approximately 80 percent already have the skills you'll just be building client applications using html javascript and css and this is the huge unlock that hyperverse is bringing we are just getting started our mission is to onboard 10 million developers to web 3.
we have now created a preview of the hyperverse we've got a few modules going and we have a large number of bounties available for experienced smart module developers to build these smart modules so that the javascript developers can start building applications at scale we are working across multiple blockchains including flow uh evm blockchains like ethereum metis avalanche polygon we'll be adding solana and other blockchains our goal is to be the dominant way for developers to build for web3 and we welcome you to join us on this journey you can start building at decentology.com and join us in our community on discord at
discord.gigi decentology welcome to the hyperverse [Music]
