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

@pipeline-builder/pipeline-events

v3.4.69

Published

AWS Lambda handler for Pipeline Builder that ingests CodePipeline state-change events from EventBridge and forwards normalized payloads to the reporting service.

Readme

@pipeline-builder/pipeline-events

📖 View documentation

AWS Lambda handler for Pipeline Builder that ingests CodePipeline state-change events from EventBridge and forwards normalized payloads to the reporting service.

Internal workspace package. This is not imported by other packages — it is deployed as a Lambda by the CLI's setup-events command, which provisions the full EventBridge → SQS → Lambda stack (rule, queue, dead-letter queue, IAM, and this handler).

Responsibilities

  1. Receives CodePipeline (pipeline / stage / action) events delivered as an SQS batch sourced from EventBridge.
  2. Classifies each record into a normalized event type (PIPELINE, STAGE, ACTION) and derives status, start/completion times, run duration, and — on failures — the errorMessage (from the action's execution-result.external-execution-summary).
  3. Resolves each pipeline's stable PIPELINE_EVENT_ID tag (applied at CDK synth = the platform pipelineId) via codepipeline:ListTagsForResource, cached per pipeline. The ARN and AWS account never leave AWS, so there is no masking/secret to manage. Untagged (unregistered) pipelines are skipped.
  4. Posts the normalized batch (keyed by pipelineId) to the reporting service via POST /api/reports/events.

CodeBuild Build State events are skipped: a build project can be shared across pipelines, so there is no clean 1:1 mapping to a pipeline id.

Key exports

| Export | Purpose | |---|---| | handler(event: SQSEvent) | The Lambda entry point. Parses + resolves the SQS batch and POSTs normalized events to the reporting service. |

Runtime

  • Lambda Node.js runtime, using the runtime-provided @aws-sdk/client-codepipeline.
  • Triggered by an SQS queue fed by an EventBridge rule matching the aws.codepipeline source; processes events in batches and POSTs them in a single request per invocation.
  • Requires PLATFORM_BASE_URL (set by setup-events).
  • IAM: the execution role must allow codepipeline:ListTagsForResource. An AccessDenied is logged as an error and fails the batch, so a missing grant is visible rather than silent.
  • Authenticates with either PLATFORM_TOKEN (a JWT set directly) or PLATFORM_SECRET_NAME (a Secrets Manager secret holding accessToken, created via pipeline-manager store-token); the resolved token is cached across invocations.

Development

pnpm build   # projen build (compile + lint + test + package)
pnpm test    # run the Jest test suite

License

Apache-2.0. See LICENSE.