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

reviews-to-slack

v2.1.1

Published

Post app reviews to Slack

Downloads

8

Readme

reviews-to-slack

Build Status npm version Coverage Status dependencies Status

Node.js library for posting App Store and Google Play app reviews to Slack.

var reviews = require('reviews-to-slack')
reviews.start({
  slackHook: 'https://hooks.slack.com/services/T00000000/B00000000/token',
  appId: '123456789'
})

Installation

npm install reviews-to-slack

Usage

Quick setup

Only provide mandatory fields to send reviews for an app to the default channel for the webhook.

var reviews = require('reviews-to-slack')
reviews.start({
  slackHook: 'https://hooks.slack.com/services/T00000000/B00000000/token',
  appId: '123456789'
})

More complex setup

Example that sends reviews for different apps to different channels. Can be extended with any combination of the options (see below).

var reviews = require('reviews-to-slack')
var apps = [
  {
    appId: '123456789',
    channel: '#channel'
  },
  {
    appId: 'com.my.app',
    channel: '@user'
  }
]
for (var i = 0; i < apps.length; i++) {
  var app = apps[i]
  reviews.start({
    slackHook: 'https://hooks.slack.com/services/T00000000/B00000000/token',
    appId: app.appId,
    channel: app.channel
  })
}

start(options) -- Available options

  • slackHook: Mandatory, URL to an incoming Slack webhook.
  • appId: Mandatory, ID of an app in App Store or Google Play, e.g. 123456789 or com.my.app.
  • region: Two-letter country code for App Store (e.g. us), or two-letter language code for Google Play (e.g. en).
  • interval: How often the feed should be queried, in seconds. Default: 300
  • debug: Set to true to log debug information and send welcome message to Slack. Default: false
  • channel: Which channel to post to, set to override channel set in Slack.
  • store: To explicitly set the store, app-store or google-play. In most cases desired store can be derived from the appId so setting this is usually not required.
  • botUsername: Set to override the default bot username set in Slack.
  • botIcon: Set to override the default bot icon set in Slack.
  • appName: Set to override the app name fetched from the reviews provider.
  • appIcon: Set to override the app icon fetched from the reviews provider.
  • appLink: Set to override the app link fetched from the reviews provider.

FAQ

Why don't I receive any App Store reviews, or why are they coming in bursts?

Apple is caching their reviews feed quite heavily; you can check if there's actually a new review available by going to https://itunes.apple.com/{region}/rss/customerreviews/id={appId}/sortBy=mostRecent/xml. It may take several hours between updates to the feed. If you see a new review in the feed and it's not delivered to Slack in a timely manner, please file an issue.

License

MIT