Web3.js vs Ethers.js

 

The Team Behind It

Web3.js: It is a project of the Ethereum Foundation (a non-profit organization). With an entire organization behind a project, there are more developers offering support. Unfortunately, this also means that there is no clear responsibility as to who should ensure that all is in order.
 
Ethers.js: It was developed and is maintained by Richard “RicMoo” Moore. This clearly puts full responsibility on RicMoo.

Quantitative comparison


web3.jsethers.js
Date of first releaseFeb 2015Jul 2016
GitHub stars13.4k4k
GitHub contributors*16**1
Bundle size***590.6kB116.5kB

*GitHub contributors from March 1, 2021 to March 1, 2022
**16 contributors, but only 2 had more than 10 commits in the one year period

Advantages of Ethers.js over Web3.js


1. Ethers.js has pre-written tests with proper documentation. So,it is better for testing smart contracts. Ether.js is only 77kb compressed. So it is very light.

2. ENS name can be used in place of contract address.

3. Separate handling of key-management and state(provider) which increases security.

No comments:

Theme images by merrymoonmary. Powered by Blogger.