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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@elastic/asset-collection

v0.6.0

Published

This package faciliates collecting asset data for K8s across several cloud providers. Currently, it can do the following:

Readme

@elastic/asset-collection

This package faciliates collecting asset data for K8s across several cloud providers. Currently, it can do the following:

  • Collect from AWS EKS, per AWS region
  • Collect from Azure AKS, per Azure subscription ID
  • Collect via the K8s API directly, depending on what access your local kubectl config has

Installation and Usage

Option 1: Global npm

$ npm install -g @elastic/asset-collection@latest
$ elastic-assets

Option 2: Local build

Checkout the latest of this repo, then:

$ cd _collector-npm
$ npm install
$ npm run build
$ node ./dist/bin/load.js

Environment variables

Set the following:

# ES credentials for where you want to write ES data
ELASTICSEARCH_HOSTS=http://localhost:9200
ELASTICSEARCH_USERNAME=elastic
ELASTICSEARCH_PASSWORD=changeme

# set this to 0 if you are using Elasticsearch with SSL, but with self-signed certs in dev
ELASTICSEARCH_REJECT_UNAUTHORIZED_TLS=0

# defaults to "assets", you probably don't need to set this
ASSETS_DATASTREAM

For AWS K8S collection:

AWS_REGIONS=us-east-1,us-east-2

For Azure K8S collection:

AZURE_SUBSCRIPTION_ID=123abcdefg

Detailed Usage

Run help to see available options:

$ elastic-assets help

Elastic asset collection load script. Please specify the type of load you would like to perform.

  help            Print this menu

  k8s             Cycle through all K8s clusters you have access to via your kube config file
                  and loads k8s assets from those clusters

  aws-k8s         Connect to AWS EKS and pulls cluster info from the specified region, e.g.
                  AWS_REGIONS=us-east-1,us-east-2 elastic-assets aws-k8s

  azure-k8s       Connect to Azure AKS and pulls cluster info from the specified subscription,
                  e.g. AZURE_SUBSCRIPTION=xyz123 elastic-assets azure-k8s

  all             Collect all of the above assets (remember to set all necessary env vars)