finds.dev← search

// the find

mirshko/next-web3-boilerplate

★ 605 · TypeScript · updated Sep 2023

Slightly opinionated Next.js Web3 boilerplate built on ethers, web3-react, Typechain, and SWR.

A Next.js starter wired up with web3-react, ethers.js, SWR, and TypeChain for building Ethereum dapps. The author has explicitly abandoned it — the README says it's dead and points you elsewhere. Only look at this if you want to study the pattern, not use it.

- TypeChain integration is the right call: auto-generated types from ABI JSON means contract function signatures are checked at compile time, not discovered at runtime.

- useKeepSWRDataLiveAsBlocksArrive hook is a genuinely useful pattern — polling SWR on new blocks rather than on a timer avoids stale reads without hammering the RPC.

- Splitting ethers.js imports by subpackage for tree-shaking was ahead of its time when this was written; still the right instinct.

- web3-react v6 is the dependency here, which predates the v8 rewrite that changed the connector model entirely. Any migration to a maintained stack means rewriting all the connector and hook code.

- Abandoned by the author — the README explicitly tells you to use wagmi or ConnectKit instead. This is not a soft deprecation; it's a redirect sign.

- No wallet abstraction beyond MetaMask onboarding: no WalletConnect, no Coinbase Wallet, nothing that covers what users actually have in 2024+.

- Zero test coverage in the visible structure — no tests directory, no testing setup. For code that handles wallet state and token balances, that's a real gap.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →