We Received A Grant To Port Our Web App To The Internet Computer
July 06, 2021 · 5 min read
Source: DFINITY press kit + DeckDeckGo logo
In the coming weeks we will build a proof of concept to validate the feasibility of the project. Here are some insights about the scope, goal and milestones of this inspiring project.
DeckDeckGo is a web open source editor for slides. Unlike other tools, presentations can be published and viewed online or shared as Progressive Web Apps (PWA). The editor works on all devices (laptop, mobile, etc.), decks can be remotely controlled and interactions with the audience through live polls are also supported.
DeckDeckGo is a side project that my friend Nicolas and I - together with our community (2000+ registered users) and help of our contributors - have been working on for the last 2.5 years. Here are our values: open source, transparency and knowledge sharing.
The DFINITY Foundation is a not-for-profit scientific research organization based in Zurich, Switzerland, that oversees research centers around the globe. The Foundation’s mission is to build, promote, and maintain the Internet Computer. Its team is committed to building advanced experimental technologies to improve the public internet (source).
The Internet Computer extends the functionality of the public Internet so that it can host backend software, transforming it into a global compute platform.
It seeks to address serious long-standing problems that bedevil IT, including system security, and to provide a means to reverse and undo the ever increasing monopolization of internet services, user relationships and data, and restore the Internet to its permissionless, innovative and creative roots.
The Internet Computer is formed by an advanced decentralized protocol called ICP (Internet Computer Protocol) that independent data centers around the world run to combine the power of individual computers into an unstoppable seamless universe where internet native software is hosted and run with the same security guarantees as smart contracts (source).
In Other Words
The description above is the official one but, let me try to synthesize my understanding:
The Internet Computer is a decentralized blockchain network on which you can run smart contracts that can host web applications. To my mum I would even say it is like bitcoin and cloud providers had a baby. In that way, you get best of both worlds and therefore open a new whole area of possibilities, what DFINITY calls the "Blockchain Singularity". In addition, they aim to try to challenge the monopolistic position of the GAFAM.
At this stage, our one and only goal is to test the feasibility of the concept: can our platform run and interact** with the Internet Computer? Even if we are really optimistic and everything we read and tried so far seems to validate the hypothesis, the ICP and its infrastructure are still young, it has “only” been officially launched a few weeks ago, on May 7th.
By run* I mean can we host our Progressive Web Apps, our editor, on the Internet Computer and by interact** I mean can it persist and read data, the decks and slides of the users.
To fulfill the proof of concept, and to get our grant 😜, we have defined the following three milestones which must be completed to be able to decide if yes, or no, DeckDeckGo can be migrated to the Internet Computer.
Milestone 1 — Offline First & Hosting
Intrinsically and because it is still young too, we won’t be able to perform as much HTTP queries as we currently do, because they might be, at least for the time being, a bit slower than our current solution with Firestore. That’s why, we will have to approach the persistence of the data differently.
After some brainstorming, we decided that the most sustainable solution would be to transition from an online first to an offline first strategy. We are going to convert our editor to work primarily with IndexedDB and, to optionally replicate these data to the cloud, ultimately to the Internet Computer.
This also will have the advantage to let anyone use our editor in standalone mode, for example with a Docker container, and will also make more sense for those getting our application through the Google Play or Microsoft stores.
Finally, in the same challenging milestone, we also aim to deploy our Progressive Web Apps as a static asset on the Internet Computer.
Milestone 2 — Authentication
The Internet Computer introduces a new secure method of cryptographic authentication that eliminates the ability for service providers to steal data, or track movements (source).
In short: no more passwords at all 🤯!
That is something we are eager to try, because we're super curious about it and because it does sound super cool.
Of course, from a project perspective, we do need an authentication workflow to persist the users’ data on the network. That’s the cherry on top of the fun 😉.
Milestone 3 — Data Persistence
Unlike the common web solution to query data through HTTP, there is no such function as
fetch on the Internet Computer.
The Internet Computer is primarily a distributed and decentralized platform for running software. Therefore, to persist data and run programs on it, the applications have to be deployed as WebAssembly modules. These are executed inside of a conceptual computational unit called a software canister.
Once deployed, end-users can interact with the software canister by accessing the entry point functions defined for that canister through a front-end client such as a browser (source).
Summarized: We will have to write some WebAssembly functions to get and set our data in the Internet Computer. From our editor developed with StencilJS, we will then interact with these through async callbacks.
Keep In Touch
I play it cool but, I am fully aware it is quite a tremendous opportunity and challenging project. Time to hack!
To dfinity and beyond.