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

@wheatstalk/cdk-unique-value-resource

v0.0.8

Published

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wheatstalk/cdk-unique-value-resource/CI-Construct?label=construct%20build) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wheatstalk/cdk-unique-value-resource

Readme

GitHub Workflow Status GitHub Workflow Status

CDK Unique Value Resource

This module provides a CloudFormation resource type that produces guaranteed-unique values. You may !GetAtt to fetch and use the unique values in your templates. We created this project to help manage dynamic ECS services behind a shared Application Load Balancer.

This project provides AWS CDK Constructs to increase ease of use in your CDK projects. You may install a shared version of the resource provider in a region by using the included CDK app. Or, you may embed and use the provider in your app without any sharing.

Features:

  • Create groups of unique values
  • Generate unique integers in a given range
  • Generate UUID1 and UUID4 values
  • Generate unique word combinations (think rustic-albatross or amazed-wallabies)

Getting Started

To install a shared version of the resource provider, install and bootstrap AWS CDK, then type the following command:

cdk --app 'npx @wheatstalk/cdk-unique-value-resource' deploy UniqueValueResource

Once this stack has deployed, you may add the dependency to your CDK app:

# Install with yarn
yarn add @wheatstalk/cdk-unique-value-resource
# Install with npm
npm install @wheatstalk/cdk-unique-value-resource

After which, you may start to use it immediately:

import {
  UniqueValueProvider,
  UniqueIntegerResource,
} from '@wheatstalk/cdk-unique-value-resource';

// Use the shared resource provider.
const provider = UniqueValueProvider.fromRegionalStack(this, 'UniqueValueProvider');

// Create a unique value
const uniqueInteger = new UniqueIntegerResource(this, 'UniqueInteger', {
  provider,
  // Guaranteed uniqueness in the group named 'testing'. You may use a fixed
  // string value as like shown. You may also reference another resource,
  // such as a load balancer listener rule's arn.
  group: 'testing',
  // Start at 10000, inclusive
  start: 10000,
  // Stop at 40000, exclusive
  stop: 40000,
  // Allocate unique numbers
  step: 1,
});

// Display the unique value
new CfnOutput(this, 'UniqueIntegerValue', {
  value: uniqueInteger.uniqueValue,
});

To remove the shared version of the resource provider, type the following:

cdk --app 'npx @wheatstalk/cdk-unique-value-resource' destroy UniqueValueResource

Note: By design, CloudFormation will prevent the deletion of the resource provider stack unless you remove all references to the provider's custom resource type.

Architecture Notes

  • CDK-based project
  • Lambda-backed custom resource provider
  • Lambda code written in Python
  • Allocated values are tracked in a DynamoDB table

Development Notice

This project is still in development. We do not recommend using it in production until it is stable version 1.0.0. We do not have any estimates on when this may be.

Contributing

We're open to feedback on this project.