Catalog npm
PACKAGE EXPLORERView in registry

@0xc/serverless-offline-aws-sqs

npm

AWS SQS 📤 Plugin for Serverless Framework ⚡️| Webpack support | Local ElasticMQ

awselasticmqlambdalocalofflineserverlesssqs
Versions collected13
Direct dependencies4From release 2.0.3
Last observed20 Oct, 22:44 UTC

README

Current package documentation

builds.sr.ht status License: MIT

serverless-offline-sqs

This Serverless-offline plugin emulates AWS λ and SQS queue on your local machine by using ElasticMQ. To do so, it listens SQS queue and invokes your handlers.

Installation

First, add @0xc/serverless-offline-aws-sqs to your project:

yarn add @0xc/serverless-offline-aws-sqs

Then inside your project's serverless.yml file, add following entry to the plugins section before serverless-offline (and after serverless-webpack if presents): @0xc/serverless-offline-aws-sqs.

plugins:
  - serverless-webpack
  - "@0xc/serverless-offline-aws-sqs"
  - serverless-offline

Configure

Functions

Ths configuration of function of the plugin follows the serverless documentation.

functions:
  mySQSHandler:
    handler: handler.default
    events:
      - sqs:
          queueName: MyQueue
          arn:
            Fn::GetAtt:
              - MyQueue
              - Arn
resources:
  Resources:
    MyQueue:
      Type: AWS::SQS::Queue
      Properties:
        QueueName: MyQueue

Inside your functions you could use a wrapper to switch between local and (aws) production environment.

const AWS = require("aws-sdk");

let options = {};

// connect to local ElasticMQ if running offline
if (process.env.IS_OFFLINE) {
  options = {
    apiVersion: "2012-11-05",
    region: "localhost",
    endpoint: "http://0.0.0.0:9324",
    sslEnabled: false
  };
}

const client = new AWS.SQS(options);

export default client;

Local SQS (ElasticMQ)

The configuration of aws.SQS's client of the plugin is done by defining a custom: serverless-offline-sqs object in your serverless.yml with your specific configuration.

You could use ElasticMQ with the following configuration:

custom:
  "@0xc/serverless-offline-aws-sqs":
    apiVersion: "2012-11-05"
    endpoint: http://0.0.0.0:9324
    region: eu-west-1
    accessKeyId: root
    secretAccessKey: root
    skipCacheInvalidation: false

Before you start your serverless functions you ElasticMQ needs to run.

docker run -it -p 9324:9324 s12v/elasticmq:latest

Queues will be automatically created.

Roadmap

  • install ElasticMQ automatically or start docker automatically

PLEASE HELP ME TO GET THIS DONE! EVERY PR IS WELCOME.

Credits

This is a custom fork from @meuschke/serverless-offline-aws-sqs Project

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 13

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.3Registry latest12 Jun 20204
2.0.212 Jun 20204
2.0.111 Jun 20204
2.0.011 Jun 20204
1.2.311 Jun 20204
1.2.27 Feb 20204
1.2.17 Feb 20204
1.2.06 Feb 20204
1.1.14 Feb 20204
1.1.04 Feb 20204
1.0.531 Dec 20194
1.0.431 Dec 20194
1.0.031 Dec 20194

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
meuschke/serverless-offline-aws-sqs

Shared repository data · GitHub

License detected in repository
Not collected

Repository

ACCESSIBLE
tcarrio/serverless-offline-aws-sqs

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
master
Last push
17 Oct 2020
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots21 Oct 2026
10.50
2026-10-21: 0 · observed 2026-10-21T12:54:46.3685866Z
21 Oct21 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2102026-10-21T12:54:46.3685866Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:bb6f171a4a2abc19b2831ae0d0b3fd26b490df58296b0d6cda34d5eba0e958d7