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

xzerox-executor

v1.0.10

Published

Toolkit to simplify writing parsers, scrapers, bots and use HTTPs layer in order with parallel job execution in mind.

Downloads

214

Readme

Coverage Status Downloads Install size

xzerox-executor

Toolkit to simplify writing parsers, scrapers, bots and use HTTPs layer in order with parallel job execution in mind.

Own written subprojects can be used from command-line (it makes possible to write any kind of GUI you wish)

You need to write only single job processing.

You don't need to think "how to parallelize jobs" or "how to write thread-safe execution" they are solved.

Important Please do not use in any unauthorized or illegal purpose. This is the wish of the author and non-binding.

Highlights

Install

npm install -g typescript ts-node
npm install xzerox-executor --save

Quickstart

Read quickstart here xzerox-executor-quickstart

Features

  • Http/Https proxy support
  • Thread-safe parallelized job execution.
  • Loading jobs from file
  • Saving job result to files
  • Do not execute already processed jobs by file-based cache system.
  • Handful functions to look more than browser, android, ios device.
  • Covering by tests in mind. It solves many design problems and makes code more stable.

Why nodejs/typescript

pluses:

  1. Its more web-friendly language. For example JSON workflow is ugly in some strong-typed languages.
  2. It contains friendly sync/async workflow.
  3. Any usage are thread safe.

minuses:

  1. 1 cmd process = 1 cpu core (or virtual core)
  2. nodejs will lose competition with compilable languages in speed comparison (for example nodejs md5 x5 times slower than similar code for golang) but its enough for scrappers/parsers.
  3. If you are far from async/await/promises it might look strange first times.

How to run tests?

npm i -D
npm run cover

Supported platforms

Windows/Linux/MacOs.

if you have been faced with installation problems create the issue, and I will try to help.

Contributing

Contributing possible by several ways:

  • make the issue under github
  • by pull request
  • by discussions page

License

MIT License.

TODO

  • Faker.ts coverage
  • own user-agent lists usage