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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@csense/npm-token

v0.0.2

Published

Public package to inject NPM_TOKEN environment variable from a given store

Readme

This package is published as public and should never contain sensitive information or expose resources.

This is a module that is used to set your ~/.npm_token file and NPM_TOKEN to the correct current version of the NPM_TOKEN which is stored in the parameter store.

Usage withing any rep will be AWS_PROFILE=[dev | staging] . update-token see 2) for more details

  1. In you ~/.bash_profile make sure you have a line as follows

. "$HOME/.npm_token"

The . is very important

  1. From any api run AWS_PROFILE=[dev | staging] . update-token

Now the current terminal and all new terminals will have the new NPM_TOKEN set correctly. For any other terminals that you have open, want to keep open and have the new NPM_TOKEN you will need to AWS_PROFILE=dev . update-token

Getting api's and repos to use prodigy-npm-token

Copy update-token.tmpl and rename it to update-token

Read vs Write Tokens

Almost everyone should have the read token

If you need the write token it means you intend to publish from your local machine as opposed to having a pipeline do it automatically for you. This is almost never desired but if you do need the write token make sure

export NPM_REQUEST_WRITE_TOKEN=true

is set in your ./bash_profile and you have sourced it . ~/.bash_profile

For Devops

app-local

app-local will need the build to be as follows

Stage

app-stage will need something similar

Dockerfile

Every Dockerfile will need

ARG NPM_TOKEN=
ENV NPM_TOKEN=${NPM_TOKEN}

Codebuild:

All codebuilds should have their environment include /_global/npm_read_token or /_global/npm_write_token from the parameter store as NPM_TOKEN evironment variable. Which to choose depends on whether the codebuild needs to publish

Buildspec for codebuild will need to have an NPM_TOKEN build arg
--build-arg NPM_TOKEN=$NPM_TOKEN