Gathering detailed insights and metrics for @maxrakkar/nestjs-sqs
Gathering detailed insights and metrics for @maxrakkar/nestjs-sqs
Gathering detailed insights and metrics for @maxrakkar/nestjs-sqs
Gathering detailed insights and metrics for @maxrakkar/nestjs-sqs
A project to make SQS easier to use within NestJS, with decorator-based handling and seamless NestJS-way integration.
npm install @maxrakkar/nestjs-sqs
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
243 Stars
60 Commits
57 Forks
9 Watchers
1 Branches
17 Contributors
Updated on Jul 10, 2025
Latest Version
1.3.0-awsv3-3
Package Id
@maxrakkar/nestjs-sqs@1.3.0-awsv3-3
Unpacked Size
23.65 kB
Size
6.85 kB
File Count
15
NPM Version
9.3.1
Node Version
18.14.0
Published on
Mar 21, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Tested with: AWS SQS and ElasticMQ.
Nestjs-sqs is a project to make SQS easier to use and control some required flows with NestJS. This module provides decorator-based message handling suited for simple use.
This library internally uses bbc/sqs-producer and bbc/sqs-consumer, and implements some more useful features on top of the basic functionality given by them.
1$ npm i --save @ssut/nestjs-sqs
Just register this module:
1@Module({ 2 imports: [ 3 SqsModule.register({ 4 consumers: [], 5 producers: [], 6 }), 7 ], 8}) 9class AppModule {}
Quite often you might want to asynchronously pass module options instead of passing them beforehand.
In such case, use registerAsync()
method like many other Nest.js libraries.
1SqsModule.registerAsync({ 2 useFactory: () => { 3 return { 4 consumers: [], 5 producers: [], 6 }; 7 }, 8});
1SqsModule.registerAsync({
2 useClass: SqsConfigService,
3});
1SqsModule.registerAsync({ 2 imports: [ConfigModule], 3 useExisting: ConfigService, 4});
You need to decorate methods in your NestJS providers in order to have them be automatically attached as event handlers for incoming SQS messages:
1@Injectable() 2export class AppMessageHandler { 3 @SqsMessageHandler(/** name: */ 'queueName', /** batch: */ false) 4 public async handleMessage(message: AWS.SQS.Message) { 5 } 6 7 @SqsConsumerEventHandler(/** name: */ 'queueName', /** eventName: */ 'processing_error') 8 public onProcessingError(error: Error, message: AWS.SQS.Message) { 9 // report errors here 10 } 11}
1export class AppService { 2 public constructor( 3 private readonly sqsService: SqsService, 4 ) { } 5 6 public async dispatchSomething() { 7 await this.sqsService.send(/** name: */ 'queueName', { 8 id: 'id', 9 body: { ... }, 10 groupId: 'groupId', 11 deduplicationId: 'deduplicationId', 12 messageAttributes: { ... }, 13 delaySeconds: 0, 14 }); 15 } 16}
See here, and note that we have same configuration as bbc/sqs-consumer's.
In most time you just need to specify both name
and queueUrl
at the minimum requirements.
This project is licensed under the terms of the MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 13/30 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More