npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

parabot

v1.0.2

Published

PoC that parallelism could work for npm; however, this is likely to eat your dog

Downloads

6

Readme

parabot

proof-of-concept for parallel npm install (a "Para(llel) Bot" to install your packages)

what it does

Attempts to install your npm packages listed in package.json in parallel. Defaults to 10 parallel jobs, but can be instructed via the -j commandline parameter, eg:

 parabot -j 2 ;# installs with max two concurrent jobs
 parabot -j all   ;# spawns one job per package you depend on. Beware! May be more ferocious than you want.

why?

Because npm install is slow -- and it's mainly http latency whilst it works its magic. This is a well-known situation and the reason why you have workarounds like freight. There are suggestions to suppress npm progress -- they're bunk. Doing so gains you a few seconds, but that's not the bulk of the problem.

so you think you've solved it, huh?

No. I think I've proved that it can be solved. There are likely bugs and use-cases I've missed but I think that the point becomes clear when you time running "npm install" vs "parabot". I've seen a preliminary install go from 3 minutes down to 1 -- and that was a small package.

What I'm really hoping is that this package might get noticed and someone might be bothered to update npm itself.

so why not fork and PR npm?

good point. I guess I just wanted to try it out first -- I suppose I should really get off my ass and fork / PR. Thanks. Now I have more work to do :/

but... this is an npm package? How will that help me?

You could, for example, install globally. But the most useful place for this is on your CI server, where you might replace the pre-build "npm install" step with two steps:

 npm install
 ./node_modules/.bin/parabot  ; # or node_modules\.bin\parabot on windows