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

@aligent/nx-cdk

v0.0.1

Published

The `@aligent/nx-cdk` package provides Nx generators for AWS CDK development. It helps you scaffold new CDK projects and services within an Nx monorepo structure.

Readme

Nx Cloud Development Kit

The @aligent/nx-cdk package provides Nx generators for AWS CDK development. It helps you scaffold new CDK projects and services within an Nx monorepo structure.

Generators

Preset Generator

The preset generator initializes a new CDK project with a complete workspace structure, including configuration files, build tools, and an application scaffold.

Usage

npx create-nx-workspace@latest --preset=@aligent/nx-cdk

Options

| Option | Type | Required | Default | Description | | ------------- | ------ | -------- | --------- | -------------------------------------------------------------------------------- | | name | string | Yes | - | The name of the project/application (alphanumeric and dashes only) | | nodeVersion | string | No | 24.11.0 | The target Node.js version for the project (must be valid semver, e.g., 22.10.0) |

What it creates

The preset generator scaffolds:

  • Root configuration files:

    • eslint.config.mjs - ESLint configuration
    • prettier.config.mjs - Prettier configuration
    • rolldown.config.base.mjs - Base Rolldown configuration
    • vitest.config.base.mjs - Base Vitest configuration
    • vitest.global.setup.mjs - Global Vitest setup
    • tsconfig.json - Root TypeScript configuration
    • nx.json - Nx workspace configuration
    • package.json - Project dependencies and scripts
    • cdk-config.yml - CDK configuration
    • LICENSE - Project license
  • Application folder (application/):

    • cdk.json - CDK app configuration
    • cdk.context.json - CDK context
    • bin/main.ts - CDK app entry point
    • lib/service-stacks.ts - Service stacks definition
    • TypeScript configurations (tsconfig.json, tsconfig.lib.json, tsconfig.spec.json)

Service Generator

The service generator creates a new CDK service within the services/ folder of your existing CDK project. Each service is configured as a separate package with its own build configuration and testing setup.

Usage

npx nx g @aligent/nx-cdk:service <service-name>

Options

| Option | Type | Required | Description | | ------ | ------ | -------- | ------------------------------------------------------------------------- | | name | string | Yes | The name of the service (cannot contain 'Stack' or 'Service' in the name) |

What it creates

The service generator creates a new service in services/<service-name>/ with:

  • Service files:

    • src/index.ts - Service entry point
    • package.json - Service-specific dependencies
    • README.md - Service documentation
    • eslint.config.mjs - ESLint configuration
    • rolldown.config.mjs - Rolldown configuration
    • vitest.config.mjs - Vitest configuration
    • TypeScript configurations (tsconfig.json, tsconfig.lib.json, tsconfig.spec.json)
  • Root updates:

    • Adds the service to the root tsconfig.json references for proper TypeScript project references
  • Application updates:

    • Adds the stack to the main CDK application

Example

# Create a new service named "user-management"
npx nx g @aligent/nx-cdk:service user-management

# Create a new service named "payment-processing"
npx nx g @aligent/nx-cdk:service payment-processing

Project Structure

After using both generators, your project structure will look like:

my-cdk-app/
├── application/
│   ├── bin/
│   │   └── main.ts
│   ├── lib/
│   │   └── service-stacks.ts
│   ├── _internal/
│   │   ├── version-functions-aspect.ts
│   │   ├── nodejs-function-defaults-injector.ts
│   │   ├── step-function-defaults-injector.ts
│   │   ├── log-group-defaults-injector.ts
│   │   └── microservice-checks.ts
│   ├── cdk.json
│   ├── cdk.context.json
│   └── package.json
├── services/
│   ├── user-management/
│   │   ├── src/
│   │   │   └── index.ts
│   │   ├── package.json
│   │   └── ...
│   └── payment-processing/
│       ├── src/
│       │   └── index.ts
│       ├── package.json
│       └── ...
├── nx.json
├── package.json
└── tsconfig.json

License

MIT