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

@alma-cdk/construct-library

v2.3.0

Published

Projen custom project to build Alma CDK construct libraries

Readme

Stability: Stable Versioning: SemVer 2.0.0 release Quality Gate Status Coverage

Custom Projen Project Type to manage all the alma-cdk/* CDK construts.

Installation

  1. Install with npm:

    npm i -D @alma-cdk/construct-library
  2. If existing project, install npm i -D [email protected] or newer

  3. Import the custom Projen project type:

    - import { AwsCdkConstructLibrary } from 'projen/lib/awscdk';
    + import { cdk } from "projen";
    + import { AlmaCdkConstructLibrary } from "@alma-cdk/construct-library";
  4. Initialize and define (at least) minimum required configuration:

    const project = new AlmaCdkConstructLibrary({
      name: "@<SCOPE>/<PACKAGE_NAME>", // or "<PACKAGE_NAME>"
      author: "<AUTHOR_ORGANIZATION_NAME>",
      authorAddress: "<AUTHOR_ORGANIZATION_EMAIL>",
      description: "<PACKAGE_DESCRIPTION>",
      repositoryUrl: "https://<GIT_URL>.git",
      stability: cdk.Stability.EXPERIMENTAL, // or STABLE or DEPRECATED
      majorVersion: 0, // 1, 2, ...
      releaseEnvironment: "production",
    });
    
    project.synth();
  5. Fnm use 24

  6. Install pnpm

  7. Run projen with pnpm:

    pnpm exec projen
  8. Ensure correct Node version: fnm use

  9. Remove old node_modules, yarn.lock, and/or package-lock.json files

  10. Reinstall everything with pnpm install

Release branches

majorVersion is required and defines what the default main branch releases as latest. From it the library also derives a release branch for the next major version, published as a beta prerelease under the beta npm dist-tag – so work on the next major can ship without moving latest:

const project = new AlmaCdkConstructLibrary({
  // ...
  majorVersion: 3, // `main` releases 3.x as `latest`, `4.x` branch releases 4.0.0-beta.N as `beta`
});

Anything passed in releaseBranches is merged on top of that default, keyed by branch name:

releaseBranches: {
  // added alongside the generated `4.x` branch
  "legacy-2.x": { majorVersion: 2, npmDistTag: "legacy" },
},

Using the next major branch name as the key replaces the generated configuration for it (the entry is taken as-is, not merged field by field):

releaseBranches: {
  // replaces the default `4.x` beta configuration
  "4.x": { majorVersion: 4, prerelease: "rc", npmDistTag: "next" },
},

Note: downstream projects that previously declared the ${MAJOR_VERSION + 1}.x branch by hand can now drop it – the generated default is identical.

Upgrading pnpm

The pnpm version is pinned by this library – both in the package.json packageManager field (used locally) and in the CI workflows – so it upgrades together with the library:

  1. Upgrade the dependency: pnpm exec projen upgrade (or merge the automated upgrade PR)

  2. Regenerate the packageManager field and workflows:

    pnpm exec projen
  3. Install with the new version, which pnpm self-downloads and switches to:

    pnpm install
  4. Commit the regenerated files: package.json, .github/workflows/* and pnpm-lock.yaml

Notes:

  • On a pnpm major upgrade node_modules is recreated; without a TTY to confirm, use CI=true pnpm install.

  • pnpmSettings only accepts settings that the pinned pnpm still supports, so options dropped by pnpm v11 are rejected at synth. Most notably, replace onlyBuiltDependencies with allowBuilds: { '<package>': true } – pnpm v11 ignores the former, skipping the builds (which fails the install under strictDepBuilds).

Upgrading downstream packages

pnpm add -D @alma-cdk/[email protected] [email protected] [email protected]