Menu

1 / 2

How to embed an npm downloads badge on your website

JavaScript in Plain English - Medium·Eric Will·10 days ago
#i6NtTVvs
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.