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 🙏

© 2024 – Pkg Stats / Ryan Hefner

serverless-sqs-local

v1.1.2

Published

Serverless plugin for integrating with ElasticMQ when invoking functions locally

Downloads

4,441

Readme

Serverless SQS Local

A Serverless plugin for using ElasticMQ for local development with SQS.

It allows you to create and remove queues defined in your serverless.yml in a locally running ElasticMQ instance, so that you do not have to rely on AWS SQS while developing.

Usage

  1. Run ElasticMQ locally. Either directly or using docker. See the ElasticMQ docs for more information.
  2. yarn add -D serverless-sqs-local / npm install --save-dev serverless-sqs-local
  3. Add serverless-sqs-local to the Plugins section of your serverless.yml
  4. Run SQS_ENDPOINT=<url_to_elasticmq> sls sqs migrate to create the queues.
  5. Run SQS_ENDPOINT=<url_to_elasticmq> sls sqs remove to remove the queues.

The plugin will output the URLs to the queues. They typically have the form <SQS_ENDPOINT>/queue/queue-name.

I recommend using this plugin together with serverless-sqs-client to transparently switch between AWS SQS and ElasticMQ depending on if you are running in offline mode or note.

Notes

  • This plugin currently does not expose a way to install, start and stop ElasticMQ. My current thinking is that this is something that should be solved outside of serverless. If you disagree, open an issue and make your case. I am potentially open to contributions to add support for this.
  • If you have ideas for how to expose the queue urls to the application, please open an issue and explain your idea.

Contributions

If you want to add a new feature, please first open an issue and discuss it with me. If you open a PR directly, it's possible that it might be rejected and your efforts wasted.