'How can i implement an NPM compatible package registry from scratch? [closed]

I would like to implement my own NPM compatible package registry, like 'github packages'.

Where can i find documentation of how this is done?


For example;

npm login --registry https://myregistry.com

and

npm install

will both send post/get request to the registry. Where can i find documentation on how to implement those endpoints? Is this public information?



Solution 1:[1]

The documentation for the response from the npm registry is located at github:

https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 johann1301s