Giter Site home page Giter Site logo

ims's Introduction

ims

Install My Stuff - an opinionated npm module installer

npm install -g ims

IMS is a npm module installer that uses a p2p cache hosted on the Dat network to resolve all dependencies as fast as possible.

The cache is stored in a hypertrie which makes it fast to update and always get the latest version while minimising the amount of roundtrips, compared to npm install.

The module tarballs themself are still downloaded from the npm registry

Usage

# installs hypercore to ./node_modules
ims hypercore

For more options do ims --help

Usage: ims <package-name?> [options]

  --save, -s        saves the dep to package.json
  --save-dev, -S    saves the dev dep to package.json
  --global, -g      installs as a cli tool
  --production, -p  skip dev dependencies
  --update, -u      force update the cache
  --quiet, -q       do not print anything
  --seed            seed all metadata on the dat network

If <package-name> is omitted the deps from package.json is used

IMS stores its cache in ~/.ims.

Note that it uses sparse files for its database format so use ls -sh to list the actual size of the cache.

License

MIT

ims's People

Contributors

aks- avatar asbjornenge avatar mafintosh avatar mcollina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ims's Issues

Instructions on how to peer

I assume there is a way users can setup their machine to peer the modules they have installed. Is there a place to find instructions on this? Or could we add some to the readme?

module not found

$ ims
Connected to 1 peer(s) (Latest version: 6410719)
Downloaded 0 new module tarballs
Installed 2067 modules to ./node_modules
/Users/matteo/.nvm/versions/node/v8.12.0/lib/node_modules/ims/install.js:269
  if (err) throw err
           ^

Error: Module pino-pretty@^2.2.0 not found
    at /Users/matteo/.nvm/versions/node/v8.12.0/lib/node_modules/ims/index.js:181:30
    at loop (/Users/matteo/.nvm/versions/node/v8.12.0/lib/node_modules/ims/index.js:252:27)
    at nextDone (/Users/matteo/.nvm/versions/node/v8.12.0/lib/node_modules/ims/node_modules/nanoiterator/index.js:96:3)
    at _combinedTickCallback (internal/process/next_tick.js:142:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

[email protected] is on the registry.

How to seed as server

Not sure if I get how the project works, but how could I download all npm packages and start a daemon?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.