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 🙏

© 2025 – Pkg Stats / Ryan Hefner

node-red-contrib-aws-s3-pro

v1.0.16

Published

A Node-RED node for Amazon S3 operations with production-grade connection pooling. Supports all S3 operations via AWS SDK v3.

Downloads

1,386

Readme

node-red-contrib-aws-s3-pro

A Node-RED node for Amazon S3 operations with production-grade connection pooling.

Key Features:

  • Connection Pooling - Shared connections across all nodes for optimal performance
  • AWS SDK v3 - Latest AWS SDK with modern architecture
  • All S3 Operations - Support for 100+ S3 API operations
  • Automatic Connection Management - TTL-based refresh and cleanup
  • HTTP Keep-Alive - Reuses TCP connections for better performance

Install

Run the following command in the root directory of your Node-RED install

    npm install node-red-contrib-aws-s3-pro

Usage

Configuration Node (aws-s3-config)

Configure your AWS credentials and connection settings. Supports:

  • Access Key ID and Secret Access Key (from string, msg, flow, global, or env)
  • IAM Role authentication (recommended for EC2/ECS/Lambda)
  • Custom endpoints (for S3-compatible services)
  • Region configuration

Note: All nodes using the same configuration share the same connection pool automatically.

Amazon S3 Node (aws-s3) - Generic API Node

A generic node that supports all S3 operations using AWS SDK v3. This node provides access to the complete S3 API including bucket management, object operations, multipart uploads, and advanced features.

Features:

  • ✅ Supports all 100+ S3 operations (ListBuckets, GetObject, PutObject, DeleteObject, etc.)
  • Connection pooling - Automatically shares connections with other nodes
  • ✅ Parameters provided via message object (msg.Bucket, msg.Key, etc.)
  • ✅ Automatic JSON parsing for complex objects
  • ✅ Special handling for GetObject streaming (returns buffer in msg.payload)
  • ✅ Dual output: success (first output) and error (second output)

Usage Examples:

ListBuckets - List all buckets:

No parameters needed

ListObjects - List objects in a bucket:

msg.Bucket = "my-bucket"
// Optional: msg.Prefix = "folder/"

GetObject - Download a file:

msg.Bucket = "my-bucket"
msg.Key = "path/to/file.txt"
// Result: msg.payload contains the file content as buffer
//         msg.s3Metadata contains file metadata

PutObject - Upload a file:

msg.Bucket = "my-bucket"
msg.Key = "path/to/file.txt"
msg.payload = "file content" // or Buffer
// Optional: msg.ContentType = "text/plain"

DeleteObject - Delete a file:

msg.Bucket = "my-bucket"
msg.Key = "path/to/file.txt"

CopyObject - Copy a file:

msg.Bucket = "destination-bucket"
msg.CopySource = "source-bucket/source-key"
msg.Key = "destination-key"

For complex parameters, provide JSON strings in the message - they will be automatically parsed.

Connection Pooling

How it works:

  • All nodes using the same AWS configuration share a single connection pool
  • Connections are automatically reused across multiple requests
  • Connections refresh after 30 minutes (TTL) to ensure freshness
  • Automatic cleanup of expired connections every 5 minutes
  • HTTP keep-alive enabled for optimal TCP connection reuse

Benefits:

  • Reduced connection overhead
  • Better performance for high-frequency operations
  • Lower memory usage
  • Automatic connection lifecycle management

Example: If you have 10 aws-s3 nodes using the same aws-s3-config, they all share the same connection pool automatically.