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

@node-yalc/aws-helpers

v0.3.7

Published

Yalc Node module

Readme

npm version License

🚀 Installation

npm install @node-yalc/aws-helpers
# or
yarn add @node-yalc/aws-helpers
# or
pnpm add @node-yalc/aws-helpers

☁️ AWS SDK v3 Utilities (@node-yalc/aws-helpers)

💡 1. What It Is & Architectural Purpose

@node-yalc/aws-helpers provides high-performance, modular wrappers around the official AWS SDK v3 for JavaScript/TypeScript. Its architectural purpose is to streamline interaction with AWS cloud services - such as Amazon S3, AWS SSM Parameter Store, and AWS Lambda - while providing native retry policies, exponential backoff, secret masking, and zero framework lock-in.


⚙️ 2. What It Does & Key Features

  • S3 Bucket Operations (YalcS3Client): Streaming file uploads, signed URL generation, and multipart transfer orchestration.
  • SSM Parameter Store Client (YalcSSMStore): Secure parameter fetching with automatic in-memory TTL caching and decryption of SecureString parameters.
  • Lambda Event Adapters: Normalization of API Gateway v1/v2 and Application Load Balancer (ALB) event objects.

🔬 3. How It Works Under the Hood

flowchart TD
    AppCall["YalcSSMStore.getParameter('/prod/db/secret')"]
    MemoryCache["In-Memory Cache Check (TTL 300s)"]
    AWSCall["AWS SSM GetParameterCommand (SDK v3)"]
    DecryptedVal["Decrypt SecureString KMS"]

    AppCall --> MemoryCache
    MemoryCache -->|Cache Hit| ReturnVal["Return Cached String"]
    MemoryCache -->|Cache Miss| AWSCall
    AWSCall --> DecryptedVal
    DecryptedVal --> CacheSet["Update TTL Cache"]
    CacheSet --> ReturnVal

🧠 4. Why It Was Designed This Way (Modular SDK v3 vs Legacy SDK v2)

| Aspect | ☁️ @node-yalc/aws-helpers (SDK v3) | 🐢 Legacy AWS SDK v2 | |---|---|---| | Bundle Footprint | Tree-shakeable (Imports only required clients) | Monolithic ~15MB SDK Bundle | | Secret Protection | In-Memory Encrypted TTL Caching | Raw Uncached SSM Calls | | Retry & Backoff | Exponential Backoff with Full Jitter | Basic Retries |


🚀 5. Practical Usage Guide & Extended Code Examples

import { YalcS3Client, YalcSSMStore } from '@node-yalc/aws-helpers';

async function executeCloudOperations() {
  // 1. Fetch Secure Database Password from AWS SSM Parameter Store with 5-minute caching
  const dbPassword = await YalcSSMStore.getParameter('/prod/database/password', {
    decrypt: true,
    cacheTtlSeconds: 300
  });

  console.log('Successfully retrieved SSM parameter (Masked):', dbPassword.substring(0, 3) + '***');

  // 2. Upload Document Buffer to Amazon S3
  const s3 = new YalcS3Client({ region: 'eu-west-1' });
  const fileBuffer = Buffer.from('PDF Report Content');

  const uploadResult = await s3.uploadFile({
    bucket: 'acme-enterprise-reports',
    key: '2026/quarterly_report.pdf',
    body: fileBuffer,
    contentType: 'application/pdf'
  });

  console.log('S3 Upload Successful. File ETag:', uploadResult.ETag);
}

executeCloudOperations().catch(console.error);

⚠️ 6. Anti-Patterns: How NOT to Use It

  1. ❌ DO NOT fetch SSM parameters on every HTTP request without caching: Making uncached AWS SSM API calls inside high-frequency request paths will hit AWS API Rate Limits (ThrottlingException). Always use cacheTtlSeconds.

💡 7. Pro-Tips & Best Practices

[!TIP] AWS IAM Role Authentication: Omit explicit AWS credentials in client initializations when deploying to AWS ECS, EKS, or Lambda - the helper automatically assumes the IAM Instance Role.


🔗 Cross-References

To see how this module integrates with the rest of the Ferrox architecture, refer to the following documentation:


📚 Ecosystem Documentation

This module is a core component of the Ferrox enterprise microservice architecture.

👉 Read the Full Documentation on Ferrox-Rust.dev