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

@pwrdrvr/crush-test-cdk

v0.0.2

Published

CDK Construct for the Crush Test project

Readme

@pwrdrvr/crush-test-cdk

A CDK construct for deploying the Crush Test Lambda, enabling you to run high-performance load tests (using oha or k6) directly from AWS Lambda.

Key use case:
When running performance tests as part of CI/CD (e.g., GitHub Actions), you can use this construct to run your load tests in the same AWS Region as your deployed service. This ensures the most consistent and lowest round-trip time (RTT) between the test tool and the service being tested, avoiding the variability and latency of running tests from external GitHub Runners.


📖 API Reference

See the full API documentation in API.md.


🚀 Installation

npm install @pwrdrvr/crush-test-cdk
# or
yarn add @pwrdrvr/crush-test-cdk

🐳 How the Lambda is Packaged

  • The Lambda function is packaged as a Docker image.
  • The image is built automatically from the contents of the lambda directory and the included Dockerfile.
  • No manual Docker build or ECR push is required; the construct handles all packaging and deployment steps.

🏷️ Naming Conventions

  • By default, the Lambda function name is set by the AWS CDK as ${stackName}-${id}.
  • You can override the function name using the functionName property in the construct props.

🧩 Usage Example

Below is a minimal example of how to use the CrushTest construct in your own stack. For a more complete example, see the example stack.

import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { CrushTest } from '@pwrdrvr/crush-test-cdk';

export class MyLoadTestStack extends cdk.Stack {
  constructor(scope: Construct, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    // Deploy a single CrushTest Lambda with 2GB memory (default)
    new CrushTest(this, 'LoadTestFunction', {
      // functionName: 'my-custom-function-name', // Optional
      // environment: { KEY: 'value' },           // Optional
      // memorySize: 2048,                        // Optional, default is 2048
    });
  }
}

Example: Multiple Lambda Functions with Different Memory Sizes

The example app (packages/cdk/src/stack.ts) shows how to deploy multiple Lambda functions with different memory sizes:

// 2 GB Lambda (default)
new CrushTest(this, 'LoadTestFunction2GB', { memorySize: 2048 });

// 4 GB Lambda
new CrushTest(this, 'LoadTestFunction4GB', { memorySize: 4096 });

// 8 GB Lambda
new CrushTest(this, 'LoadTestFunction8GB', { memorySize: 8192 });

⚙️ Additional Configuration

  • Environment Variables: Pass custom environment variables using the environment prop.
  • Custom Docker Image: Optionally provide your own Docker image via the dockerImageCode prop.
  • Function Name: Override the default function name with the functionName prop.

See API.md for all available options.


🛠️ Prerequisites


📝 License

MIT License. See LICENSE for details.