JavaScriptNPMWeb DevelopmentNodejsOpen Source How to embed an npm downloads badge on your website
Eric Will
6 min read5 hours ago
You can embed an npm downloads badge on any website to show how often your package is installed.
If you maintain an npm package — a CLI tool, a React component library, a build plugin, a utility — your weekly download count is one of the first things many developers look at when judging whether a package is actively used. Putting that number on your website (not just your npm page) is a quick addition to a package landing page, a docs site, a product page or a portfolio.
This guide walks every option — Shields.io’s badge, npm-stat.com’s chart, and a one-line drop-in pill — and shows which to pick.…