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

serverless-llrt-analyzer

v0.1.1

Published

Serverless Framework plugin to flip Lambda functions to AWS LLRT (llrt: true) for ~10x faster cold starts, with a deploy-time compatibility guard powered by llrt-analyzer.

Readme

serverless-llrt-analyzer

Serverless Framework plugin to flip Lambda functions to AWS LLRT (QuickJS, ~10x faster cold starts) with one line per function — plus a deploy-time compatibility guard so you can't ship an incompatible function.

Thin Serverless adapter over the @davidwells/llrt-analyzer core.

Install

npm i -D serverless-llrt-analyzer   # pulls in @davidwells/llrt-analyzer

Use

plugins:
  - serverless-esbuild        # (your bundler, if any)
  - serverless-llrt-analyzer

custom:
  llrt:
    layerArn: arn:aws:lambda:us-east-1:xxxx:layer:llrt-arm64:1   # required
    verify: true              # default true — fail the deploy on a real blocker

functions:
  api:        { handler: src/app.handler, llrt: true }   # -> provided.al2023 + arm64 + LLRT layer
  warmer:     { handler: src/warmer.warm, llrt: true }
  processImg: { handler: src/img.handler }               # stays nodejs (mixed-runtime is fine)

Reverting is deleting the llrt: true line.

What it does at package time

For each llrt: true function:

api  ->  runtime: provided.al2023   architecture: arm64   layers: [ <llrt layer> ]

Unflagged functions are untouched.

The guard (custom.llrt.verify, default on)

Before packaging, it runs llrt-analyzer's static tier against each flagged function and aborts the deploy on a fatal blocker:

Error: [llrt] function "api" is NOT LLRT-compatible:
    - node:crypto.timingSafeEqual: LLRT's node:crypto does not export
      "timingSafeEqual" — use a supported alternative or keep this on Node.
  Remove `llrt: true` or fix the blocker(s). (set custom.llrt.verify:false to bypass)

For the definitive verdict (actually runs the handler under the LLRT binary and diffs behavior), run the core in CI: llrt-analyzer <service> --local.

Getting the layer ARN (one command)

llrt-analyzer publish-layer --arch arm64 --region us-east-1 \
  --ssm /my-svc/prod/llrt-layer-arn

This downloads the pinned LLRT lambda bootstrap, publishes it as a layer, prints the ARN, and (with --ssm) writes it to SSM — then reference it as custom.llrt.layerArn: ${ssm:/my-svc/${self:provider.stage}/llrt-layer-arn}. llrt-analyzer init prints the whole snippet to paste.

Bundler wiring (automatic)

If you use serverless-esbuild, the plugin auto-wires it for LLRT: it marks @aws-sdk/* / @smithy/* / @aws-crypto/* external (LLRT ships its own SDK) and sets format: esm. These are safe for the Node functions too (the Lambda Node runtimes also provide @aws-sdk), so llrt: true really is the whole change. Opt out with custom.llrt.autoEsbuild: false.