As the team builds the protocol’s user interface, it is very important to research deeply into which external libraries to include. The user interface must have a rich user experience & also very light weighted.
Every DApp must find a way to connect to users’ wallet without compromising privacy and security. Fortunately, we found many matured and well-developed libraries such as web3modal (previously web3connect), web3-wallets-kit (by Akropolis), bnc-onboard (by BlockNative) & many more.
After a careful analysis of these existing solutions, we found reasons which discouraged us from using them. A major reason was the bloat in library size, other reasons included an incomplete library or having to pay for usage in the case of BloackNative bnc-onboard.
Our final resort was to build a library exactly how we wanted it, thankfully, the initial version of LibertyPie Wallet Provider is successfully published on npm (https://www.npmjs.com/package/@libertypie/wallet-provider).
LibertyPie Wallet Provider was built to provide extra advantages over other libraries, a detailed comparison has been given below.
Size (according to Bundlephobia.com)
LibertyPie Wallet Provider — 6.9kb minified +gzipped
Web3Modal — 195kb minified + gzipped
bnc-onboard — 65.1kb minified + gzipped
web3-wallets-kit — 784.4kb minified + gzipped
As seen from the data above, LibertyPie Wallet Provider has many merits compared to the other libraries.