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

siege-crawler

v1.1.7

Published

This CLI tool will find same domain urls in a web page and requesting them to find even more urls until server crash (or at the end of benchmark). It is used to test maximun capacity of server or finding for glitches that users might encounter.

Downloads

14

Readme

siege-crawler

This CLI tool will find same domain urls in a web page and requesting them to find even more urls until server crash (or at the end of benchmark). It is used to test maximun capacity of server or finding for glitches that users might encounter.

Installation

npm i -g siege-crawler

Usage

siege-crawler https://google.com 
# requesting `https://google.com` with default rate 50/sec until ^c is fired
siege-crawler --duration 5 --rate 10 https://google.com 
# or          -d 5 -r 10
# requesting `https://google.com` with custom rate 10/sec for 5 secs or ^c is fired

Skip Specific URLs

Rule out urls by regular expression. Notice, regex will match full url not just path.

siege-crawler --ruleout /google\.com\/search/ https://google.com 
siege-crawler --ruleout /^https://google\.com\/search\?.+$/i https://google.com 

Ouput

[google.com] rate: 5/sec, duration: 5 secs, ruleout: /google\.com\/search/i

Sent: 26, Received: 26, Lost: 0 (0.00% loss)
Data received: 5,614,377 bytes
Response Time(ms): Max = 544, Min = 219, Avg = 311.00

Request Log

siege-crawler will generate a complete log in current directory listed all the requested urls, status and response time in real order.

 Status | Time(ms) | URL
     OK |      284 | https://google.com
     OK |      339 | https://google.com
     OK |      234 | https://google.com
     OK |      304 | https://google.com/
     OK |      246 | https://google.com/advanced_search?hl=en-US&fg=1
     OK |      396 | https://google.com/history/privacyadvisor/search/unauth?utm_source=googlemenu&fg=1
     OK |      319 | https://google.com/history/optout?hl=en-US&fg=1
     OK |      219 | https://google.com
     OK |      283 | https://google.com/
     OK |      246 | https://google.com/advanced_search?hl=en-US&fg=1
     OK |      485 | https://google.com/history/privacyadvisor/search/unauth?utm_source=googlemenu&fg=1
     OK |      265 | https://google.com/webhp?tab=ww
     OK |      318 | https://google.com/preferences?hl=en-US
     OK |      309 | https://google.com/history/optout?hl=en-US&fg=1
     OK |      265 | https://google.com/history/optout?utm_source=search-privacy-advisor
     OK |      230 | https://google.com
     OK |      265 | https://google.com/
     OK |      235 | https://google.com/advanced_search?hl=en-US&fg=1
     OK |      416 | https://google.com/history/privacyadvisor/search/unauth?utm_source=googlemenu&fg=1
     OK |      298 | https://google.com/webhp?tab=ww
     OK |      305 | https://google.com/preferences?hl=en-US
     OK |      301 | https://google.com/history/optout?hl=en-US&fg=1
     OK |      241 | https://google.com/webhp
     OK |      544 | https://google.com/support/websearch?p=ws_cookies_notif&hl=en-US
     OK |      265 | https://google.com/history/optout?hl=en-US
     OK |      474 | https://google.com/intl/en-US/help.html