You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/2.guide/1.features.md
-114Lines changed: 0 additions & 114 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,117 +88,3 @@ Quick access to online development environments detected from package READMEs:
88
88
|:icon{name="i-lucide:pen-tool"}[CodePen](https://codepen.io)| Social development environment for front-end |
89
89
|:icon{name="i-simple-icons-jsfiddle"}[JSFiddle](https://jsfiddle.net)| Online editor for web snippets |
90
90
|:icon{name="i-simple-icons-replit"}[Replit](https://replit.com)| Collaborative browser-based IDE |
91
-
92
-
### Custom badges
93
-
94
-
You can add custom npmx badges to your markdown files using the following syntax:
95
-
96
-
```md
97
-
[](https://npmx.dev/package/YOUR_PACKAGE)
98
-
```
99
-
100
-
::tip
101
-
Make sure to replace `TYPE` with one of the options listed below and `YOUR_PACKAGE` with the actual package name (e.g., `vue`, `lodash`, or `@nuxt/kit`).
102
-
::
103
-
104
-
#### Available Badge Types
105
-
106
-
-**version**: Shows the latest or specific version of the package. :img{src="https://img.shields.io/badge/%233b82f6-3b82f6"class="inline align-middle h-5 w-14"}
-**downloads-month**: Alias for monthly download statistics. :img{src="https://img.shields.io/badge/%23f97316-f97316"class="inline align-middle h-5 w-14"}
-**vulnerabilities**: Shows the number of vulnerabilities found via OSV. :img{src="https://img.shields.io/badge/%2322c55e-22c55e"class="inline align-middle h-5 w-14"} / :img{src="https://img.shields.io/badge/%23ef4444-ef4444"class="inline align-middle h-5 w-14"}
115
-
-**dependencies**: Lists the total count of package dependencies. :img{src="https://img.shields.io/badge/%2306b6d4-06b6d4"class="inline align-middle h-5 w-14"}
116
-
-**created**: Displays the date the package was first published. :img{src="https://img.shields.io/badge/%2364748b-64748b"class="inline align-middle h-5 w-14"}
117
-
-**updated**: Displays the date of the most recent modification. :img{src="https://img.shields.io/badge/%2364748b-64748b"class="inline align-middle h-5 w-14"}
118
-
-**engines**: Shows the supported Node.js version range. :img{src="https://img.shields.io/badge/%23eab308-eab308"class="inline align-middle h-5 w-14"}
119
-
-**types**: Indicates if TypeScript types are included. :img{src="https://img.shields.io/badge/%233b82f6-3b82f6"class="inline align-middle h-5 w-14"} / :img{src="https://img.shields.io/badge/%2364748b-64748b"class="inline align-middle h-5 w-14"}
120
-
-**maintainers**: Displays the total count of package maintainers. :img{src="https://img.shields.io/badge/%2306b6d4-06b6d4"class="inline align-middle h-5 w-14"}
121
-
-**deprecated**: Shows if the package is active or deprecated. :img{src="https://img.shields.io/badge/%2322c55e-22c55e"class="inline align-middle h-5 w-14"} / :img{src="https://img.shields.io/badge/%23ef4444-ef4444"class="inline align-middle h-5 w-14"}
122
-
-**quality**: NPMS.io quality score based on linting and tests. :img{src="https://img.shields.io/badge/%23a855f7-a855f7"class="inline align-middle h-5 w-14"}
123
-
-**popularity**: NPMS.io popularity score based on downloads and stars. :img{src="https://img.shields.io/badge/%2306b6d4-06b6d4"class="inline align-middle h-5 w-14"}
124
-
-**maintenance**: NPMS.io maintenance score based on activity. :img{src="https://img.shields.io/badge/%23eab308-eab308"class="inline align-middle h-5 w-14"}
125
-
-**score**: The overall NPMS.io combined score. :img{src="https://img.shields.io/badge/%233b82f6-3b82f6"class="inline align-middle h-5 w-14"}
[](https://npmx.dev/package/nuxt)
134
-
135
-
# License Badge
136
-
137
-
[](https://npmx.dev/package/vue)
138
-
139
-
# Monthly Downloads
140
-
141
-
[](https://npmx.dev/package/lodash)
142
-
143
-
# Scoped Package (Install Size)
144
-
145
-
[](https://npmx.dev/package/@nuxt/kit)
146
-
147
-
# Specific Version
148
-
149
-
[](https://npmx.dev/package/react)
150
-
151
-
# Quality Score
152
-
153
-
[](https://npmx.dev/package/pinia)
154
-
```
155
-
156
-
#### Customization Parameters
157
-
158
-
You can further customize your badges by appending query parameters to the badge URL.
159
-
160
-
##### `labelColor`
161
-
162
-
Overrides the default label color. You can pass a standard hex code (with or without the `#` prefix). The label text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
163
-
164
-
-**Default**: `#0a0a0a`
165
-
-**Usage**: `?labelColor=HEX_CODE`
166
-
167
-
##### `label`
168
-
169
-
Overrides the default label text. You can pass any string to customize the label displayed on the badge.
170
-
171
-
-**Default**: Depends on the badge type (e.g., "version", "downloads/mo").
172
-
-**Usage**: `?label=YOUR_LABEL`
173
-
174
-
##### `color`
175
-
176
-
Overrides the default strategy color. You can pass a standard hex code (with or without the `#` prefix). The text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
177
-
178
-
-**Default**: Depends on the badge type (e.g., version is blue, downloads are orange).
When set to `true`, this parameter replaces the static category label (like "version" or "downloads/mo") with the actual name of the package. This is useful for brand-focused READMEs.
description: Generate modern markdown badges with the npmx.dev API
4
+
navigation:
5
+
icon: i-lucide:badge
6
+
---
7
+
8
+
npmx.dev offers many different SVG badges with stats about any package via its API. You can get the Markdown code to display an accessible badge which links to the package URL on npmx.dev with the following interactive generator:
9
+
10
+
:badge-generator
11
+
12
+
## Available Badge Types
13
+
14
+
-**version**: Shows the latest or specific version of the package. :img{src="https://img.shields.io/badge/%233b82f6-3b82f6"class="inline align-middle h-5 w-14"}
-**downloads-month**: Alias for monthly download statistics. :img{src="https://img.shields.io/badge/%23f97316-f97316"class="inline align-middle h-5 w-14"}
-**vulnerabilities**: Shows the number of vulnerabilities found via OSV. :img{src="https://img.shields.io/badge/%2322c55e-22c55e"class="inline align-middle h-5 w-14"} / :img{src="https://img.shields.io/badge/%23ef4444-ef4444"class="inline align-middle h-5 w-14"}
23
+
-**dependencies**: Lists the total count of package dependencies. :img{src="https://img.shields.io/badge/%2306b6d4-06b6d4"class="inline align-middle h-5 w-14"}
24
+
-**created**: Displays the date the package was first published. :img{src="https://img.shields.io/badge/%2364748b-64748b"class="inline align-middle h-5 w-14"}
25
+
-**updated**: Displays the date of the most recent modification. :img{src="https://img.shields.io/badge/%2364748b-64748b"class="inline align-middle h-5 w-14"}
26
+
-**engines**: Shows the supported Node.js version range. :img{src="https://img.shields.io/badge/%23eab308-eab308"class="inline align-middle h-5 w-14"}
27
+
-**types**: Indicates if TypeScript types are included. :img{src="https://img.shields.io/badge/%233b82f6-3b82f6"class="inline align-middle h-5 w-14"} / :img{src="https://img.shields.io/badge/%2364748b-64748b"class="inline align-middle h-5 w-14"}
28
+
-**maintainers**: Displays the total count of package maintainers. :img{src="https://img.shields.io/badge/%2306b6d4-06b6d4"class="inline align-middle h-5 w-14"}
29
+
-**deprecated**: Shows if the package is active or deprecated. :img{src="https://img.shields.io/badge/%2322c55e-22c55e"class="inline align-middle h-5 w-14"} / :img{src="https://img.shields.io/badge/%23ef4444-ef4444"class="inline align-middle h-5 w-14"}
30
+
-**quality**: NPMS.io quality score based on linting and tests. :img{src="https://img.shields.io/badge/%23a855f7-a855f7"class="inline align-middle h-5 w-14"}
31
+
-**popularity**: NPMS.io popularity score based on downloads and stars. :img{src="https://img.shields.io/badge/%2306b6d4-06b6d4"class="inline align-middle h-5 w-14"}
32
+
-**maintenance**: NPMS.io maintenance score based on activity. :img{src="https://img.shields.io/badge/%23eab308-eab308"class="inline align-middle h-5 w-14"}
33
+
-**score**: The overall NPMS.io combined score. :img{src="https://img.shields.io/badge/%233b82f6-3b82f6"class="inline align-middle h-5 w-14"}
[](https://npmx.dev/package/nuxt)
42
+
43
+
# License Badge
44
+
45
+
[](https://npmx.dev/package/vue)
46
+
47
+
# Monthly Downloads
48
+
49
+
[](https://npmx.dev/package/lodash)
50
+
51
+
# Scoped Package (Install Size)
52
+
53
+
[](https://npmx.dev/package/@nuxt/kit)
54
+
55
+
# Specific Version
56
+
57
+
[](https://npmx.dev/package/react)
58
+
59
+
# Quality Score
60
+
61
+
[](https://npmx.dev/package/pinia)
62
+
```
63
+
64
+
## Customization Parameters
65
+
66
+
You can further customize your badges by appending query parameters to the badge URL.
67
+
68
+
### `labelColor`
69
+
70
+
Overrides the default label color. You can pass a standard hex code (with or without the `#` prefix). The label text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
71
+
72
+
-**Default**: `#0a0a0a`
73
+
-**Usage**: `?labelColor=HEX_CODE`
74
+
75
+
### `label`
76
+
77
+
Overrides the default label text. You can pass any string to customize the label displayed on the badge.
78
+
79
+
-**Default**: Depends on the badge type (e.g., "version", "downloads/mo").
80
+
-**Usage**: `?label=YOUR_LABEL`
81
+
82
+
### `color`
83
+
84
+
Overrides the default strategy color. You can pass a standard hex code (with or without the `#` prefix). The text color is automatically chosen (black or white) based on WCAG contrast ratio, so the badge remains readable.
85
+
86
+
-**Default**: Depends on the badge type (e.g., version is blue, downloads are orange).
When set to `true`, this parameter replaces the static category label (like "version" or "downloads/mo") with the actual name of the package. This is useful for brand-focused READMEs.
0 commit comments