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

@beesolve/cdk-constructs

v0.1.30

Published

Various CDK constructs built at BeeSolve.

Readme

@beesolve/cdk-constructs

Various CDK constructs built at BeeSolve.

Installation

npm i @beesolve/cdk-constructs

Nodejs24Function

Deploys a Node.js 24 Lambda with opinionated defaults: ARM64, esbuild ESM bundling, JSON logging, and a managed log group with 2-week retention.

// Build from TypeScript source
new Nodejs24Function(this, "Api", {
  entry: "src/handlers/api.ts",
});

// Pre-built ZIP or directory — handler is required
new Nodejs24Function(this, "Api", {
  entry: "dist/api.zip",
  handler: "api.handler",
});

tagFunctionsWithRevision

Tags every Function in the stack with the current git commit hash. Useful alongside external source maps for tracing Lambda errors back to the exact revision.

tagFunctionsWithRevision(stack, {});

SqsWithDlq

SQS queue + dead-letter queue pair. Defaults: SQS-managed encryption, SSL enforced, 14-day retention, 5 max receive count.

const { queue, dlq } = new SqsWithDlq(this, "Jobs");

// FIFO
const fifo = new SqsWithDlq(this, "OrderedJobs", {
  queue: { fifo: true, contentBasedDeduplication: true },
});

asLambdaInput

Wires the queue as an SQS event source on a Lambda function. Sets the visibility timeout to 6× the Lambda timeout (capped at 12 hours). Emits a CDK warning if the cap is applied.

SqsWithDlq.asLambdaInput({
  lambda: myFunction,
  batching: { batchSize: 10, maxBatchingWindow: Duration.seconds(30) },
});

// Pause consumption during maintenance
SqsWithDlq.asLambdaInput({ lambda: myFunction, disabled: true });

StaticWebsite

CloudFront + S3 static website with security headers (CSP, HSTS, X-Frame-Options), optional custom domain with SSL, optional basic auth, and SPA/MPA mode.

refererId is a shared secret placed in the CloudFront origin request header and the S3 bucket policy — choose a long random string.

new StaticWebsite(this, "Website", {
  mode: "singlePageApplication",
  source: Source.asset("dist"),
  refererId: "a3f8...long-random-secret...c9d2",
  contentSecurityPolicy: {
    connectSrc: ["https://api.example.com"],
    scriptSrc: ["'self'", "https://cdn.example.com"],
  },
  domain: {
    name: "example.com",
    certificate: "arn:aws:acm:us-east-1:...",
    redirect: "enforceNonWww",
  },
  basicHttpAuthentication: {
    username: "admin",
    password: "secret",
  },
});

CloudFrontAccessLoggingSettings

Creates an S3 log bucket for CloudFront access logs, with optional AWS Glue + Athena for SQL queries.

const logging = new CloudFrontAccessLoggingSettings(this, "Logging", {
  logFilePrefix: "cf-logs/",
  athena: {
    account: this.account,
    glueDbName: "cf_logs_db",
    columns: ["date", "c-ip", "sc-status", "cs-uri-stem"],
  },
});

new StaticWebsite(this, "Website", {
  // ...
  logging: logging.cloudFrontLoggingSettings,
});

esmBuild / esmBuildSync

Low-level esbuild wrapper producing ESM output targeting Node.js 24, with CommonJS polyfills, minification, tree-shaking, and external source maps.

// Async
await esmBuild({ entryPoints: ["src/index.ts"], outDir: "dist" });

// Sync (for use during CDK synth)
esmBuildSync({ entryPoints: ["src/index.ts"], outDir: "dist" });