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

@zbo14/sourcery

v0.2.0

Published

A CLI that starts a Chromium browser window and parses URLs, domains, and endpoints from response payloads

Downloads

7

Readme

sourcery

A command-line utility that spins up a Chromium browser window and parses URLs, domains, and endpoints from source files and other response payloads.

Why?

Source files (e.g. JavaScript-s) often contain information about subdomains and endpoints that's difficult to discover via other enumeration/brute-forcing methods. A single webpage may require dozens of scripts, each containing tens of thousands of lines of code. There are existing tools to crawl sites and parse endpoints from these large files, but these tools aren't always free or easy to integrate with existing workflows.

If you're a bug-bounty hunter or web security researcher, chances are you're spending a lot of time in the browser. While you navigate around a web application and test different functionality,sourcery parses URLs, domains, and endpoints from all the files and response payloads it sees. It writes this information to a directory you specify.

Install

npm i @zbo14/sourcery

Usage

  _____  ___   __ __  ____      __    ___  ____   __ __
 / ___/ /   \ |  T  T|    \    /  ]  /  _]|    \ |  T  T
(   \_ Y     Y|  |  ||  D  )  /  /  /  [_ |  D  )|  |  |
 \__  T|  O  ||  |  ||    /  /  /  Y    _]|    / |  ~  |
 /  \ ||     ||  :  ||    \ /   \_ |   [_ |    \ l___, |
 \    |l     !l     ||  .  Y\     ||     T|  .  Y|     !
  \___j \___/  \__,_jl__j\_j \____jl_____jl__j\_jl____/


Usage: sourcery [options]

Options:
  -V, --version                      output the version number
  -d, --domains <list>               comma-separated list of root domains; sourcery looks for results under these domains
  -e, --extensions <list>            comma-separated list of extensions; sourcery parses results from files with these extensions
  -f, --file <file>                  file containing URLs to visit (overrides -u)
  -o, --output <dir>                 path to output directory (default: "$PWD")
  -p, --pause                        pause on last page
  -u, --url <url>                    single URL to visit (implies -p)
  -x, --proxy <[proto://]host:port>  use a proxy (e.g. Burp) for Chromium
  -h, --help                         display help for command

sourcery expects a single --url or --file of URLs and visits them in serial. You can instruct sourcery to pause on the last webpage with the -p option, in case you want to manually navigate/test functionality. sourcery will continue to find endpoints, subdomains, and URLs that fall under the specified --domains.