Vercel AI SDK vs Mastra vs LangChain.js: Mastra tops growth

Vercel AI SDK leads npm downloads at 48.5M, about 12 times LangChain.js or Mastra. Mastra narrowly leads GitHub stars; its 7-day and 30-day growth is highest.

Vercel AI SDK, LangChain.js and Mastra appear in both the npm downloads for AI and developer tools dataset and the GitHub stars for AI and developer tools dataset. Side by side, the leading tool changes with the metric. Vercel AI SDK has the most downloads over the last 7 days, at 48.5M. Mastra has the most GitHub stars, at 29,764. Mastra has the highest download growth over both 7 days and 30 days. Vercel AI SDK added the largest number of downloads.

Download volume: Vercel AI SDK leads by a wide margin

Comparison: Downloads, last 7 daysnpm downloads for AI and developer toolsSource: npm download counts API · as of 2026-11-22
Vercel AI SDK: 48.5MVercel AI SDK48.5MLangChain.js: 4.2MLangChain.js4.2MMastra: 4MMastra4M
Vercel AI SDK: 48.5MVercel AI SDK48.5MLangChain.js: 4.2MLangChain.js4.2MMastra: 4MMastra4M
Vercel AI SDK: 48.5MVercel AI SDK48.5MLangChain.js: 4.2MLangChain.js4.2MMastra: 4MMastra4M
View as table
Comparison: Downloads, last 7 days
RankItemValue
1Vercel AI SDK48.5M
2LangChain.js4.2M
3Mastra4M

Vercel AI SDK recorded 48.5M downloads over the last 7 days. That ranks No. 21 among all 59 items in npm downloads for AI and developer tools. LangChain.js recorded 4.2M downloads, No. 38 overall. Mastra recorded 4M downloads, No. 39 overall. Vercel AI SDK has 44.3M more downloads than LangChain.js and 44.5M more than Mastra. As a multiple, it has about 12 times as many downloads as each of the two.

Within the Agent Frameworks category, Vercel AI SDK ranks No. 2, LangChain.js No. 3 and Mastra No. 4. LangChain.js and Mastra also sit right next to each other in the overall ranking.

Recent trend: Mastra leads growth rate, Vercel AI SDK leads volume added

Trend: Downloads, last 7 daysnpm downloads for AI and developer tools, last 359 days, weeklySource: npm download counts API · as of 2026-11-22
010M20M30M40M50MJan2026AprJulOctVercel AI SDKLangChain.jsMastra
010M20M30M40M50MJan2026MarMayJulSepNovVercel AI SDKLangChain.jsMastra
010M20M30M40M50MDec2025Jan2026FebMarAprMayJunJulAugSepOctNovVercel AI SDK 48.5MLangChain.js 4.2MMastra 4M
View as table
Trend: Downloads, last 7 days
DateVercel AI SDKLangChain.jsMastra
2026-11-2248.5M4.2M4M
2026-11-1545.8M4M3.4M
2026-11-0845.3M4.1M3.2M
2026-11-0142.6M4.1M3M
2026-10-2540.8M4.3M3.1M
2026-10-1838.9M3.9M2.9M
2026-10-1137.5M3.8M2.7M
2026-10-0434.5M3.8M2.2M
2026-09-2730.4M3.2M2M
2026-09-2027.5M3.2M1.8M
2026-09-1326.2M3M1.8M
2026-09-0626.2M3.2M1.8M
2026-08-3023.6M3M1.6M
2026-08-2322.4M2.9M1.5M
2026-08-1621.8M2.9M1.5M
2026-08-0920.6M2.9M1.3M
2026-08-0219.8M2.8M1.4M
2026-07-2618.8M2.8M1.3M
2026-07-1917.7M2.7M1.2M
2026-07-1217.1M2.7M1.2M
2026-07-0515.1M2.4M1M
2026-06-2815.8M2.5M1.1M
2026-06-2115.7M2.5M1.1M
2026-06-1415.1M2.4M1.1M
2026-06-0714.4M2.3M975.2K
2026-05-3113M2.2M892.7K
2026-05-2413.7M2.3M986.7K
2026-05-1713.2M2.2M962.8K
2026-05-1012.6M2.1M898.9K
2026-05-0312.1M2M806.9K
2026-04-2611.9M2.1M737.9K
2026-04-1911.5M2.2M698.6K
2026-04-1210.6M2.1M609.5K
2026-04-0510.1M2.1M583.5K
2026-03-2910.4M2.4M613.6K
2026-03-229.8M2.2M546.2K
2026-03-1510.1M2.2M538.8K
2026-03-089.9M2M531.4K
2026-03-018.7M1.9M512K
2026-02-228M1.6M436.2K
2026-02-157.8M1.7M435.4K
2026-02-087.6M1.7M429.3K
2026-02-017M1.6M396.9K
2026-01-256.4M1.6M368.6K
2026-01-186.2M1.4M320.8K
2026-01-115.6M1.4M262.6K
2026-01-042.8M771.8K141.3K
2025-12-283.1M836.5K168.4K
2025-12-215.3M1.3M309.2K
2025-12-145.2M1.4M314.2K
2025-12-075.5M1.3M296.2K
2025-11-304.9M1.2M244.6K

Compared with the first day of the series, Mastra grew the fastest over 359 days. It went from 244.7K to 4M downloads, about 16 times its first-day level (+1532.4%). Over the same period, Vercel AI SDK reached about 9.9 times its first-day level and LangChain.js about 3.6 times. Against 30 days earlier, Mastra is +31.2%, Vercel AI SDK +20% and LangChain.js -1.9%.

Mastra also has the highest growth over the last 7 days, at +17.1% from 7 days earlier. Vercel AI SDK is at +6% and LangChain.js at +3.9%. In absolute terms, though, Vercel AI SDK added +2.7M downloads, more than the +583K added by Mastra. The gain against 30 days earlier follows the same order: Vercel AI SDK +8.1M, Mastra +949.8K.

LangChain.js added +156.8K downloads compared with 7 days earlier. Against 30 days earlier, however, its change is -79.3K. Its 30-day direction is the opposite of Mastra, its neighbor in the overall ranking. This data alone cannot explain why.

GitHub stars: Mastra leads narrowly

Comparison: StarsGitHub stars for AI and developer toolsSource: GitHub API · as of 2026-11-23
Mastra: 29,764Mastra29,764Vercel AI SDK: 28,147Vercel AI SDK28,147LangChain.js: 18,358LangChain.js18,358
Mastra: 29,764Mastra29,764Vercel AI SDK: 28,147Vercel AI SDK28,147LangChain.js: 18,358LangChain.js18,358
Mastra: 29,764Mastra29,764Vercel AI SDK: 28,147Vercel AI SDK28,147LangChain.js: 18,358LangChain.js18,358
View as table
Comparison: Stars
RankItemValue
1Mastra29,764
2Vercel AI SDK28,147
3LangChain.js18,358

Mastra has 29,764 stars. That ranks No. 68 among all 132 items in GitHub stars for AI and developer tools. Vercel AI SDK has 28,147 stars (No. 73), and LangChain.js has 18,358 stars (No. 88). The gap between Mastra and Vercel AI SDK is only 1,617 stars. Mastra has 11,406 more stars than LangChain.js, about 1.6 times as many.

Within the Agent Frameworks category, Mastra ranks No. 5, Vercel AI SDK No. 6 and LangChain.js No. 9. Vercel AI SDK has the most forks, at 5,698. LangChain.js follows with 3,496 and Mastra with 3,131. Mastra leads on stars and Vercel AI SDK leads on forks, so the lead is split.

Data and methodology

The comparison covers 3 tools, with data as of November 23, 2026. npm downloads come from the npm download statistics API, as of November 22, 2026. Daily download counts are summed into 7-day totals. Changes compare the latest 7-day total with the 7-day totals from 7 days and 30 days earlier. On days when several packages were recorded as 0 at the same time, the value is filled with the average of the same weekday in the weeks before and after. Values that drop or jump sharply within a single day are flagged as anomalies and are not used as the basis for commentary. Download counts are install counts and include automated installs from CI and mirrors, so they are not the number of actual users.

GitHub stars come from the GitHub API, as of November 23, 2026. Star and fork counts are collected once a day from the main repository of each tool in the registry. When a tool is split across several repositories, each language is counted separately. Stars are cumulative, so they reflect accumulated interest rather than usage. Projects whose development has stopped can still score high, so the data page also lists the last push date and archive status. Ranks are ranks within the items registered in each dataset and do not represent the whole ecosystem. Values from npm downloads and GitHub stars were not compared with each other.

See the full rankings and daily trends on the npm downloads for AI and developer tools, GitHub stars for AI and developer tools pages.