common storage models for various storj services

Usage no npm install needed!

<script type="module">
  import storjServiceStorageModels from '';


Storj Service Storage Models

Build Status Coverage Status GitHub license

Common storage models for various Storj services

npm install storj-service-storage-models --save
var Storage = require('storj-service-storage-models');
var db = new Storage(
  auth: {
    user: 'myuser',
    pass: 'mypassword'
  mongos: {
    ssl: true
  logger: myAwesomeLogger

db.models.User.findOne({ email: '' }, function(err, user) {
  if (err) {
  } else {;

Coinpayments Integration

You'll have to set Coinpayments environment variables CP_PUBLIC_KEY and CP_SECRET_KEY in order to get coinpayments client working with the payment processor adapter.

Billing Specific

If using billing functionality, be sure to include your own .env file with necessary environment variables.