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

@tim-code/test-lambda

v0.1.7

Published

A script to test a "local" (via Docker) or "remote" lambda with as little configuration as possible.

Readme

test-lambda

A script to test a "local" (via Docker) or "remote" lambda with as little configuration as possible.

Supports running state machines as well.

Setup

npm install @tim-code/test-lambda

Running

test-lambda local|remote [<search-string>]

where "search-string" is an optional filename in the events directory without ".json" extension, which will be run instead of all lambdas.

Environment Variables

OUTPUT_DIR specifies where to put the responses of each lambda invocation. Makes this directory recursively if needed.

EVENTS_DIR specifies a directory of JSON files. Each JSON file name should correspond to the end of a CodeURI in template.yaml OR a logical ID. For example, if EVENTS_DIR contained a JSON file called "query.json" and template.yaml contained "CodeUri: dist/options-query", then the script will associate calling that lambda with the event in the JSON file. Be careful that only one CodeUri matches for each JSON file (no same name but different directory support).

TEMPLATE_PATH specifies the path to find the template.yaml file.

STACK_NAME specifies a prefix to the function name, which is used when looking up the deployed lambda using the function name written in template.yaml.

STAGE specifies a suffix to the stack name. This supports the common case of having multiple stacks representing different environments.

USE_PACKAGE_NAME: if true and STACK_NAME is not defined, uses the npm_package_name environment variable defined by npm instead of STACK_NAME. This works when your package's name is your stack's name. Default is true.