@verdaccio/core - Verdaccio Core Components
Note: This package is mostly for internal use by Verdaccio and is only intended to be used with Verdaccio 6.x.
Overview
The @verdaccio/core package provides the foundational constants, error utilities, and shared modules used throughout the Verdaccio ecosystem. It serves as the base dependency for most other Verdaccio packages.
Installation
npm install @verdaccio/core
Usage
import {
API_ERROR,
DIST_TAGS,
HEADERS,
HTTP_STATUS,
constants,
errorUtils,
validationUtils,
} from '@verdaccio/core';
Constants
HTTP_STATUS- HTTP status code constantsAPI_ERROR- API error message constantsAPI_MESSAGE- API response message constantsHEADERS- HTTP header constantsDIST_TAGS- Distribution tag constants (latest, etc.)TOKEN_BASIC,TOKEN_BEARER- Authentication token typesPLUGIN_CATEGORY,PLUGIN_PREFIX- Plugin system constantsDEFAULT_USER,ANONYMOUS_USER- Default user constantsHtpasswdHashAlgorithm- Supported hash algorithms for htpasswd
Utility Modules
errorUtils- Error creation and handling utilitiesvalidationUtils- Package name and manifest validationcryptoUtils- Hashing and random generationfileUtils- Temporary folder and storage creationpkgUtils- Package operationssearchUtils- Search indexing utilitiesstreamUtils- Stream handling utilitiesstringUtils- String manipulation utilitiesauthUtils- Package access matching, token creationpluginUtils- Plugin types and interfacestarballUtils- Tarball operationswarningUtils- Warning emission
Donations
Verdaccio is run by volunteers; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - your logo might end up in this readme.
Donate starting from $1/month or just one single contribution.
Report a vulnerability
If you want to report a security vulnerability, please follow the steps which we have defined for you in our security policy.
Open Collective Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Open Collective Backers
Thank you to all our backers! [Become a backer]
Special Thanks
Thanks to the following companies to help us to achieve our goals providing free open source licenses.
Contributors
This project exists thanks to all the people who contribute. [Contribute].
FAQ / Contact / Troubleshoot
If you have any issue you can try the following options. Do not hesitate to ask or check our issues database. Perhaps someone has asked already what you are looking for.
License
Verdaccio is MIT licensed
The Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch files within the /assets folder) are Creative Commons licensed.

