Badges for npm packages — version, downloads, license, types, and more.
Display live stats for any npm package.
| Badge | Endpoint | Description |
|---|---|---|
| Version | /npm/{package} | Latest version |
| Downloads | /npm/dw/{package}, /npm/dm/{package}, etc. | Download counts |
| License | /npm/license/{package} | Package license |
| Node Version | /npm/node/{package} | Required Node.js version |
| Types | /npm/types/{package} | TypeScript types status |
| Dependents | /npm/dependents/{package} | Dependent package count |
For scoped packages like @types/react, use the full scope:
Use these sections when you need the exact URL shape or an interactive builder for a specific badge type. Most users only need the table and quick examples above.
This section covers the npm/dependents badge endpoint.
Show how many other packages depend on this package.
Path Parameters
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/dependents/react.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/npm/dependents/react.svg?mode=light"></picture>
/npm/dependents/{package}.svgDefault — ecosystem adoption signal
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/dependents/react.svg?mode=dark"><img alt="dependents" src="https://shieldcn.dev/npm/dependents/react.svg?mode=light"></picture>Outline with custom label — social proof for package pages
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/dependents/react.svg?variant=outline&label=used+by&mode=dark"><img alt="dependents" src="https://shieldcn.dev/npm/dependents/react.svg?variant=outline&label=used+by&mode=light"></picture>This section covers the npm/downloads badge endpoint.
Show weekly, monthly, yearly, or total download counts.
Path Parameters
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/dm/react.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/npm/dm/react.svg?mode=light"></picture>
| Period | Endpoint | Example |
|---|---|---|
| Weekly | /npm/dw/{package} | /npm/dw/react |
| Monthly | /npm/dm/{package} | /npm/dm/react |
| Yearly | /npm/dy/{package} | /npm/dy/react |
| Total | /npm/dt/{package} | /npm/dt/react |
| Legacy | /npm/{package}/downloads | /npm/react/downloads |
Default — monthly downloads as a growth signal
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/dm/react.svg?mode=dark"><img alt="monthly downloads" src="https://shieldcn.dev/npm/dm/react.svg?mode=light"></picture>Outline — long-term adoption signal
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/dt/react.svg?variant=outline&mode=dark"><img alt="total downloads" src="https://shieldcn.dev/npm/dt/react.svg?variant=outline&mode=light"></picture>This section covers the npm/license badge endpoint.
Show the license specified in a package's package.json.
Path Parameters
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/license/react.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/npm/license/react.svg?mode=light"></picture>
/npm/license/{package}.svgDefault — license badge for package pages
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/license/react.svg?mode=dark"><img alt="license" src="https://shieldcn.dev/npm/license/react.svg?mode=light"></picture>Ghost — subtle metadata badge for footer rows
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/license/react.svg?variant=ghost&mode=dark"><img alt="license" src="https://shieldcn.dev/npm/license/react.svg?variant=ghost&mode=light"></picture>This section covers the npm/node badge endpoint.
Show the Node.js version requirement from a package's engines.node field.
Path Parameters
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/node/react.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/npm/node/react.svg?mode=light"></picture>
/npm/node/{package}.svgOutline — good compatibility badge for libraries
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/node/next.svg?variant=outline&mode=dark"><img alt="node version" src="https://shieldcn.dev/npm/node/next.svg?variant=outline&mode=light"></picture>With Node.js logo — branded compatibility badge
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/node/next.svg?logo=nodedotjs&mode=dark"><img alt="node version" src="https://shieldcn.dev/npm/node/next.svg?logo=nodedotjs&mode=light"></picture>engines.node value from package.jsonThis section covers the npm/types badge endpoint.
Show whether a package includes TypeScript types or has types available via DefinitelyTyped.
Path Parameters
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/types/react.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/npm/types/react.svg?mode=light"></picture>
/npm/types/{package}.svg| Value | Meaning |
|---|---|
bundled | Package includes its own TypeScript definitions |
@types/{pkg} | Types available via DefinitelyTyped |
none | No TypeScript types available |
Blue theme — highlights TS support clearly
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/types/react.svg?theme=blue&mode=dark"><img alt="types" src="https://shieldcn.dev/npm/types/react.svg?theme=blue&mode=light"></picture>Branded with TypeScript logo — strong developer experience signal
This section covers the npm/version badge endpoint.
Show the current published version of a package.
Path Parameters
Unscoped (react) or scoped (@types/react).
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/react.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/npm/react.svg?mode=light"></picture>
/npm/{package}.svg/npm/v/{package}.svg/npm/v/{package}/{tag}.svgDefault — clean version badge for READMEs
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/react.svg?mode=dark"><img alt="npm version" src="https://shieldcn.dev/npm/react.svg?mode=light"></picture>Branded — npm's official red
Scoped package — secondary variant
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/npm/@types/react.svg?variant=secondary&mode=dark"><img alt="npm version" src="https://shieldcn.dev/npm/@types/react.svg?variant=secondary&mode=light"></picture>No API key required. Cached 1 hour.