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

ssm-parameter-bridge

v0.2.4

Published

Small helpers for reading and writing AWS Systems Manager (SSM) Parameter Store parameters in AWS CDK v2, with a consistent tagging convention.

Readme

ssm-parameter-bridge

npm build license: Apache-2.0

Small helpers for reading and writing AWS Systems Manager (SSM) Parameter Store parameters in AWS CDK v2, with a consistent tagging convention. The public API uses readFrom*Parameter / writeTo*Parameter naming.

Features

  • Read SSM String parameters with readFromStringParameter (CloudFormation dynamic references; return value may be a CDK token)
  • Read SSM StringList parameters with readFromStringListParameter (return value may include CDK tokens)
  • Optionally validate Parameter Store value types at deploy time via ssm.ParameterValueType
  • Create String / StringList parameters with writeToStringParameter / writeToStringListParameter
  • Apply a default ssm:managed-by=ssm-parameter-bridge tag on created parameters, plus optional custom tags
  • Expand a StringList token into a fixed-length CloudFormation string[] with splitListTokenToStrings

Installation

Using npm:

npm install ssm-parameter-bridge

Using yarn:

yarn add ssm-parameter-bridge

Usage

import * as ssm from 'aws-cdk-lib/aws-ssm';
import { Stack } from 'aws-cdk-lib';
import {
  readFromStringListParameter,
  readFromStringParameter,
  splitListTokenToStrings,
  writeToStringListParameter,
  writeToStringParameter,
} from 'ssm-parameter-bridge';

const stack = new Stack();

// Read a String parameter (optionally typed)
const imageId = readFromStringParameter(stack, '/my/ami', ssm.ParameterValueType.AWS_EC2_IMAGE_ID);

// Read a StringList parameter (optionally typed). May contain a token.
const subnetsTokenList = readFromStringListParameter(stack, '/my/subnet-ids', ssm.ParameterValueType.STRING);

// If you need a fixed-length array at CloudFormation level:
const subnets = splitListTokenToStrings(subnetsTokenList, 3);

// Write parameters with default + custom tags
writeToStringParameter(stack, 'ParamString', {
  parameterName: '/my/app/value',
  stringValue: 'hello',
  tags: { env: 'dev' },
});

writeToStringListParameter(stack, 'ParamList', {
  parameterName: '/my/app/list',
  stringListValue: ['a', 'b'],
  tags: { team: 'platform' },
});

Options

readFromStringParameter(scope, parameterName, type?)

  • scope: construct scope used to bind the lookup token
  • parameterName: parameter name (for example, /my/app/value)
  • type (optional): ssm.ParameterValueType to validate at deploy time
  • returns: a string that may be a CDK token

readFromStringListParameter(scope, parameterName, type?)

  • scope: construct scope used to bind the lookup token
  • parameterName: parameter name (for example, /my/app/list)
  • type (optional): ssm.ParameterValueType to validate at deploy time
  • returns: a string[] that may contain CDK tokens

writeToStringParameter(scope, id, props)

  • scope: construct scope to define the parameter in
  • id: CDK construct id for the parameter resource
  • props.parameterName (required): parameter name (for example, /my/app/value)
  • props.stringValue (required): parameter value
  • props.description (optional): parameter description
  • props.tier (optional): SSM parameter tier (defaults to STANDARD)
  • props.tags (optional): additional tags to apply (in addition to ssm:managed-by)

writeToStringListParameter(scope, id, props)

  • scope: construct scope to define the parameter in
  • id: CDK construct id for the parameter resource
  • props.parameterName (required): parameter name (for example, /my/app/list)
  • props.stringListValue (required): list of strings
  • props.description (optional): parameter description
  • props.tags (optional): additional tags to apply (in addition to ssm:managed-by)

splitListTokenToStrings(listToken, length)

  • listToken: token list produced by an SSM StringList lookup
  • length (required): fixed output length; must be an integer (>= 0) and known at synth time
  • returns: a CloudFormation-level fixed-length string[]

Requirements

  • Node.js >= 20
  • aws-cdk-lib ^2.232.0
  • constructs ^10.5.1

License

This project is licensed under the (Apache-2.0) License.