···92929393### Custom badges
94949595-You can add custom npmx badges to your markdown files using the following syntax: `[](https://npmx.dev/package/YOUR_PACKAGE)`
9595+You can add custom npmx badges to your markdown files using the following syntax:
9696+`[](https://npmx.dev/package/YOUR_PACKAGE)`
9797+9898+> [!IMPORTANT]
9999+> 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`).
100100+101101+#### Available Badge Types
102102+103103+- **version**: Shows the latest or specific version of the package. 
104104+- **license**: Displays the package license (e.g., MIT, Apache-2.0). 
105105+- **size**: Shows the install size (via Bundlephobia) or unpacked size. 
106106+- **downloads**: Displays monthly download statistics. 
107107+- **downloads-day**: Displays daily download statistics. 
108108+- **downloads-week**: Displays weekly download statistics. 
109109+- **downloads-month**: Alias for monthly download statistics. 
110110+- **downloads-year**: Displays yearly download statistics. 
111111+- **vulnerabilities**: Shows the number of vulnerabilities found via OSV.  / 
112112+- **dependencies**: Lists the total count of package dependencies. 
113113+- **created**: Displays the date the package was first published. 
114114+- **updated**: Displays the date of the most recent modification. 
115115+- **engines**: Shows the supported Node.js version range. 
116116+- **types**: Indicates if TypeScript types are included.  / 
117117+- **maintainers**: Displays the total count of package maintainers. 
118118+- **deprecated**: Shows if the package is active or deprecated.  / 
119119+- **quality**: NPMS.io quality score based on linting and tests. 
120120+- **popularity**: NPMS.io popularity score based on downloads and stars. 
121121+- **maintenance**: NPMS.io maintenance score based on activity. 
122122+- **score**: The overall NPMS.io combined score. 
123123+- **name**: Simple badge displaying the package name. 
961249797-Do not forget to replace `YOUR_PACKAGE` with the actual package name.
125125+#### Examples
981269999-Here are some examples:
127127+```markdown
128128+# Version Badge
100129101101-```
102102-# Default
103103-[](https://npmx.dev/package/nuxt)
130130+[](https://npmx.dev/package/nuxt)
104131105105-# Organization packages
106106-[](https://npmx.dev/package/@nuxt/kit)
132132+# License Badge
107133108108-# Version-specific badges
109109-[](https://npmx.dev/package/nuxt/v/3.12.0)
134134+[](https://npmx.dev/package/vue)
135135+136136+# Monthly Downloads
137137+138138+[](https://npmx.dev/package/lodash)
139139+140140+# Scoped Package (Install Size)
141141+142142+[](https://npmx.dev/package/@nuxt/kit)
143143+144144+# Specific Version
145145+146146+[](https://npmx.dev/package/react)
147147+148148+# Quality Score
149149+150150+[](https://npmx.dev/package/pinia)
110151```
152152+153153+#### Customization Parameters
154154+155155+You can further customize your badges by appending query parameters to the badge URL.
156156+157157+##### `color`
158158+159159+Overrides the default strategy color. You can pass a standard hex code (with or without the `#` prefix).
160160+161161+- **Default**: Depends on the badge type (e.g., version is blue, downloads are orange).
162162+- **Usage**: `?color=HEX_CODE`
163163+164164+| Example | URL |
165165+| :------------- | :------------------------------------ |
166166+| **Hot Pink** | `.../badge/version/nuxt?color=ff69b4` |
167167+| **Pure Black** | `.../badge/version/nuxt?color=000000` |
168168+| **Brand Blue** | `.../badge/version/nuxt?color=3b82f6` |
169169+170170+##### `name`
171171+172172+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.
173173+174174+- **Default**: `false`
175175+- **Usage**: `?name=true`
176176+177177+| Type | Default Label | With `name=true` |
178178+| :------------ | :------------ | :--------------- | ------- | ------- |
179179+| **Version** | `version | 3.12.0` | `nuxt | 3.12.0` |
180180+| **Downloads** | `downloads/mo | 2M` | `lodash | 2M` |