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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sqsc

v0.0.9

Published

sqsc is a command line tool for interacting with AWS SQS queues

Readme

sqsc

npm version Build Status

sqsc is a command line tool for interacting with AWS SQS queues.

Installation

npm install -g sqsc

Features

List queues: sqsc lq [queue-prefix]

list queue

List messages: sqsc ls <queue-name>

Options:

  • timeout: Visibility timeout for messages received (Default = 30). You might need to increase this if the queue has a lot of messages to prevent reading the same message.
  • timestamp: Display timestamp.
  • limit: Maximum number of messages to list.

list messages

Copy all messages to queue: sqsc cp <from-queue-name> <to-queue-name>

Move all messages to queue: sqsc mv <from-queue-name> <to-queue-name>

Options:

  • timeout: Visibility timeout for messages received (Default = 30).

list messages

Describe queue: sqsc describe <queue-name>

describe

SQL query: sqsc query "SELECT body FROM <queue-name> WHERE body LIKE '%user%'"

1. Run sqsc pull <queue-name> to store messages in local sqlite database.

Options:

  • timeout: Visibility timeout for messages received (Default = 30).

2. To query, run sqsc query <sql-query>. Internally, sqsc will try to guess the queue name in the SQL.

Options:

  • hide-headers: Do not show column headers. (Eg: you want to use body with JSON parser like jq)

3. To see what queues are available for query, run sqsc list-table.

4. To see the table schema, run sqsc schema.

query

5. To query fields in JSON, use json_extract function in sqlite.

$ sqsc query "select json_extract(body, '$.gender') gender, count(*) from DevelopmentQueue group by 1"

GENDER COUNT(*)
Female 24
Male   26

Message visibility timeout and max receive count

  • When a message is received by sqsc, the visibility timeout is set to 30s by default. You can use the --timeout parameter to change it.
  • sqsc keeps the receipt handle for all messages to reset their visibility timeout at the end of the command.
  • If sqsc receive the same message more than once, it will only use the first message. (It checks message ID)
  • receive count of message increases as usual for each receive. Message goes into dead letter queue when it hits max receive count.
  • The following commands receive message thus have the effects mentioned above:
    • ls
    • mv
    • cp
    • pull

Unsupported Features

  • Server side encryption
  • FIFO queue

Development Setup

# Install dependencies
npm install

# Running tests
npm test

# Starting localstack
export TMPDIR=/private$TMPDIR # MacOS only
docker-compose up -d

# Populating queues and messages for Development
export LOCALSTACK=1
tsc -p .
bin/populate-dev.js