New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

storj

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storj

implementation of the storj protocol for node.js and the browser

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-74.19%
Maintainers
1
Weekly downloads
 
Created
Source

Storj JS

Build Status Coverage Status NPM


This package exposes a module that provides all of the tools needed to integrate with the Storj network.

Complete documentation can be found here.

Quick Start

Install locally with NPM:

npm install storj --save

Import the storj module, generate a key pair, configure your persistence layer, and join the network in just a few lines of code:

var storj = require('storj');

var keypair = new storj.KeyPair(/* existing_key */);
var store = new storj.FSStorageAdapter('/path/to/datadir');
var manager = new storj.Manager(store);

var network = new storj.Network({
  keypair: keypair,
  manager: manager,
  contact: {
    address: 'ip.or.hostname',
    port: 4000
  },
  loglevel: 3,
  datadir: '/path/to/datadir',
  farmer: false
});

network.join(function(err) {
  if (err) {
    return console.log('Failed to join network, reason: %s', err.message);
  }

  console.log('Connected to the Storj network!');
});

Once you are connected to the network, you can store, audit, and retrieve arbitrary data shards.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Keywords

FAQs

Package last updated on 25 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc