Observed since 20 Oct, 22:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xc/serverless-offline-aws-sqs
AWS SQS 📤 Plugin for Serverless Framework ⚡️| Webpack support | Local ElasticMQ
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.
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
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;
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.
PLEASE HELP ME TO GET THIS DONE! EVERY PR IS WELCOME.
This is a custom fork from @meuschke/serverless-offline-aws-sqs Project
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
aws-sdkEnvironment{
"local_name": "aws-sdk",
"alias": false,
"peer_metadata": null
} | ^2.271.1 | runtime |
figuresEnvironment{
"local_name": "figures",
"alias": false,
"peer_metadata": null
} | ^2.0.0 | runtime |
lodashEnvironment{
"local_name": "lodash",
"alias": false,
"peer_metadata": null
} | ^4.17.10 | runtime |
serverless-offlineEnvironment{
"local_name": "serverless-offline",
"alias": false,
"peer_metadata": null
} | 4.0.0 | runtime |
Source distribution
{
"integrity": "sha512-M6T+CyoULMF9j0BB5e2meB0TWjSovdtEyHeuvs8MPInPLuBULn4CoN+CxhDaLvqshE3aRzddKoZHBf5nat/6Wg==",
"shasum": "40c101f844f843158dd9a9e2ce636ca10af018ec",
"tarball": "https://registry.npmjs.org/@0xc/serverless-offline-aws-sqs/-/serverless-offline-aws-sqs-1.0.0.tgz",
"fileCount": 3,
"unpackedSize": 11577,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeC5inCRA9TVsSAnZWagAAa38P/iUqTkyOkDZ9UuLr/khp\nYlOralBfHYeXYIxHZC32xf96AraYi1cV5IXZPGhlIs5KjUf5xRwLXAKOY8eJ\nLCxXiOlA0TDyb9jVM37TTh0lAkhMCPbbcsTJw5/qf9+n5ZQxAigusVvBdIU2\nSsF1rtteaNKupJ9zRjOTuBQ7igC0+Xf4MfoB3xFhmcNX+G/M1G7VOxC3y4EX\np/7jlVeT26qPnn8NDNs4/p8ISfu737WR1ksctjKZVm+x7FqeIL73LAD1OEgA\nTl8PH8srtt8Xcbj20Nu/Ud/fLBF2JE0cILPaz0VCLcNjdu9pUEnIyM3Z85ag\n0boy1nZxziQdtYsa0OfudzZBDFVnv5jyI52iVL5P+OPk/Rp8I7SjAgYbNT7q\nZWr57tHNPlIUeuVw1uCaSNiFKibcK7OiO6peIuvmypuzR25j8suUeWi9BX3a\np4c73OfCpUMkAQn40yu/cWsxugqaOzwLSubZva7tK97PYyWBhUWBOxSjVXzF\nfVARCDE3ogMzMEzmvwt1g+KYAfwuljO43Jfw7XdInE/46eWcANqU/OHWlCY6\nSuOJKD3JaNgwLb0q8Mn/vUiUUyMI0/meEW2o/rPgXGgHgW3nvRguMk6lMU3g\nrqD1k4UcQW7Fa8WSGuw8begFPGzApBjEi+K7cY6yUH4JFYr4iDvD8SrpgcXf\nJ1qZ\r\n=lKRH\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCyakNolL1LJCIH3wGiJg3nQ7r2GvU27V+avpYgOFpkNwIgOSPAcd3VRlASnsWqBriePS9TOEePsqIAW+aSAVKYSE4="
}
]
}Shared repository data · GitHub
Shared repository data · GitHub
Public sponsor counts have not been collected. These signals belong to the repository owner.
github · 1 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-21 | 0 | 2026-10-21T12:54:46.3685866Z |
Observed since 20 Oct, 22:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:11e052cff55166153a854fee68e899d623c704f47678cc0f70cf11f17fd3941f