Search code examples
node.jsnpmrepositorysinopia

Sinopia(Local NPM registry)-Database


Sinopia seems so cool for having a local npm registry. I have a couple of questions in terms o f this module:

Sinopia Documentation says "Sinopia keeps its own small database"; so what database is being used?

On the other hand it is mentioned "If you want to use a database instead, ask for it, we'll come up with some kind of a plugin system." So is any database being used or not? Is there any plugin which uses the database and they mentioned now? It seems that now all info is being saved in config.yaml as opposed to a DB, am I right?


Solution

  • sinopia saves repositories directly in filesystem as you can see here and the tokens/users are saved in a JSON file. So, no, there is not a SQL or NoSQL database as you know it.

    But you really don't need it, I'm using it with 30 devs on a small server and we haven't got any issue so far.