Skip to content
JS
Comparison

viem vs typechain

Blockchain and Web3Package data 25 Sept 2026
viemv2.56.9, 24 Sept 2026

TypeScript Interface for Ethereum

$ npm install viem
typechainv8.3.2, 15 Oct 2023

🔌 TypeScript bindings for Ethereum smartcontracts

$ npm install typechain
MetricviemtypechainDifference
Weekly downloads4,500,353321,456viem 14.0x higher
12-month download growth+110%+12%viem +98 pts
Gzip size---
Minified size---
Dependencies810typechain 2 more
Unpacked size26.0 MB118 kBtypechain 226.1x smaller
Latest release2.56.9, 24 Sept 20268.3.2, 15 Oct 2023viem 2.9 years more recent
Releases, last 12 months1080viem 108 more
First published11 Jun 20222 Sept 2017typechain 4.8 years earlier
GitHub stars3,5672,790viem +28%
Open issues2102typechain 100 more
Open pull requests1325typechain 12 more
Contributors---
Commits, last 52 weeks1,0380viem higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM + CommonJSSame
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

viem4.5m latest weektypechain321.5k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

viem

Major versions
  1. 0.0.011 Jun 2022
  2. 1.0.06 Jun 2023
  3. 2.0.03 Jan 2024
Last 5 releases
  1. 2.56.924 Sept 2026
  2. 2.56.818 Sept 2026
  3. 2.56.717 Sept 2026
  4. 2.56.616 Sept 2026
  5. 2.56.513 Sept 2026
625 releases in total, 108 in the last 12 months

typechain

Major versions
  1. 0.0.12 Sept 2017
  2. 1.0.020 Oct 2019
  3. 2.0.03 May 2020
  4. 3.0.011 Oct 2020
  5. 4.0.04 Nov 2020
  6. 5.0.09 May 2021
  7. 6.0.027 Oct 2021
  8. 7.0.010 Jan 2022
  9. 8.0.024 Mar 2022
Last 5 releases
  1. 8.3.215 Oct 2023
  2. 8.3.124 Jul 2023
  3. 8.3.017 Jul 2023
  4. 8.2.117 Jul 2023
  5. 8.2.024 May 2023
78 releases in total, 0 in the last 12 months
viem

-

typechain

-

viem

-

typechain

-

  • Module formatBoth ESM + CommonJS
  • Need TypeScript types in the package itselfBoth
  • Need the more recent releaseviem (2.56.9 on 24 Sept 2026 vs 8.3.2 on 15 Oct 2023)
  • Higher weekly npm downloadsviem (4.5m vs 321.5k)

Each line is generated from the data above.

viem: viem npm registry, viem npm downloads, viem GitHub, viem jsDelivr. Data fetched 25 Sept 2026.
typechain: typechain npm registry, typechain npm downloads, typechain GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.