Ethers.js is a library that allows us to connect with the Ethereum Blockchain and its ecosystem. We can use ethers to connect to Ethereum nodes through JSON-RPC, Infura, Alchemy, Cloudflare, or Metamask. Alchemy also has an ethers.js SDK which is a superset of the ethers.js provider and directly interacts with its APIs like JSON RPCs and NFT APIs. Alchemy is free to use.
Crypto wallets like Metamask, Coinbase, TrustWallet, and Phantom are used to connect to the blockchain. They provide an entry point to every decentralized application. We can install crypto wallets as add-ons or plugins to our browsers.
When we add crypto wallets as an extension to our browsers, they automatically inject themselves into the browser window object. For example, If we add the Metamask extension, it injects an ethereum object into the browser window.
Ethers.js library makes it easy to connect to any node in a blockchain. We can either use the default provider given by the browser extension or third-party RPC providers like Alchemy, Infura, and Moralis.