A lightweight message queue library for Amazon Simple Queue Service (SQS) in Node.js. Version 2.0.2 provides a simple push/pull API with automatic queue creation, fault tolerance with retries, and env-based configuration. It is a minimal wrapper around AWS SQS, handling message deletion on callback and supporting JSON parsing or raw messages. Not to be confused with the official AWS SDK's SQS client; this is a higher-level abstraction. It lacks recent updates and may have limited support compared to the official SDK.
npm install sqsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an SQS queue instance with credentials from env vars, pushes a message, and pulls messages.
Pre-create queues via AWS console or SDK to ensure consistent configuration (e.g., dead-letter queues).
Consider migrating to @aws-sdk/client-sqs and implementing your own push/pull logic.
Set raw: true to receive message body as-is (string).
Verify SQS_ACCESS_KEY and SQS_SECRET_KEY are correct and not expired.
Ensure queue name exists and region is correct. The library creates queues on push, but may fail if queue name is invalid or permissions missing.
Use default import: import sqs from 'sqs';