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.js | ethers.js | |
---|---|---|
Date of first release | Feb 2015 | Jul 2016 |
GitHub stars | 13.4k | 4k |
GitHub contributors* | 16** | 1 |
Bundle size*** | 590.6kB | 116.5kB |
**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: