Simon Tan
Musings of a curious developer ت
Private Messenger
A p2p messenger built with PeerJS.

I recently completed a course on web development and wanted to apply the new skills I learnt to build something cool!

As we progress further into the age of information, a growing fear of mine is that we become too reliant on technology giants like Google and Facebook. We believe that these companies will do the right thing and most of the time they do, but for the times when they don’t, our personal information gets leaked. A recent example of this is the scandal involving the popular ToTok application.

Many of us are worried about our physical privacy but often overlook our digital privacy. It is scary how much our digital privacy (or lack thereof) and digital footprint reveals about us so I wanted to try build something related to privacy.

I decided to try my hand at building a privacy focused messenger application. After a few weeks of hacking together something, I finally completed a proof of concept web app using metamask, web3 and peerjs. The frontend framework I opted to use for this project is vue.js with veutify for the prebuilt UI components.

You would first connect to this messenging application with your Ethereum address on Metamask. After “signing in”, you can initiate a peer to peer connection with another client application with their Ethereum address. Once the connection is established, you can begin your conversation!

I know that it is ironic that I ask you not to trust these tech giants but instead, to trust this naïve implementation of a privacy focused chat app that was hacked together across multiple weeks by a random developer on the internet, the relatively simple (I hope lol) implementation of this poc allows any technically inclined user to verify the source code.

You can try out the demo here but I highly recommend using it locally instead i.e. clone the repo, spin up a local instance and voilà! The source code for the poc can be found here!

Last modified on 22 August 2020