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

crs-issue-bot

v1.0.0

Published

Slack issue reporter for CRS — report issues, send messages, upload files via Slack Web API

Readme

crs-issue-bot

Slack issue reporter for the CRS portal — report issues, send messages, and upload files to Slack with zero dependencies.

Install

npm install crs-issue-bot
yarn add crs-issue-bot

Quick Start

const { SlackBot } = require('crs-issue-bot');

const app = new SlackBot.Builder()
    .setBotToken(process.env.SLACK_BOT_TOKEN)
    .setChannelId(process.env.SLACK_CHANNEL_ID)
    .setAppName('CRS Portal')
    .build();

// Send a message
await app.sendMessage('Deployment complete :rocket:');

// Report an issue
await app.reportIssue({
    title: 'Payment gateway timeout',
    severity: 'critical',
    description: '503 errors on /charge endpoint',
    reportedBy: '[email protected]',
});

// Upload a file
await app.uploadFile('./debug.log', 'Error logs attached');

ESM

import { SlackBot } from 'crs-issue-bot';

Prerequisites

  1. Create a Slack App at https://api.slack.com/apps
  2. Add Bot Token Scopes: chat:write files:write
  3. Install the app to your workspace — copy the Bot User OAuth Token
  4. Invite the bot to your channel: /invite @your-bot-name
  5. Get the Channel ID from channel details
export SLACK_BOT_TOKEN=xoxb-your-bot-token
export SLACK_CHANNEL_ID=C01234567890

API

SlackBot.Builder

| Method | Description | |--------|-------------| | setBotToken(token) | Slack bot token (xoxb-...) | | setChannelId(id) | Target channel ID (C...) | | setAppName(name) | App name shown in issue headers | | build() | Returns a configured SlackBot |

sendMessage(text)

await app.sendMessage(':white_check_mark: Scan passed');

| Param | Type | Description | |-------|------|-------------| | text | string | Slack mrkdwn message |

uploadFile(filePath, comment?)

await app.uploadFile('/tmp/report.pdf', 'Monthly audit report');

| Param | Type | Description | |-------|------|-------------| | filePath | string | Path to the file to upload | | comment | string? | Optional message with the file |

reportIssue({ title, description, severity, reportedBy, filePath? })

await app.reportIssue({
    title: 'Database connection pool exhausted',
    description: 'Connection pool reached max capacity. App is queuing requests.',
    severity: 'high',
    reportedBy: '[email protected]',
    filePath: '/var/log/app/error.log',
});

| Field | Type | Required | Description | |-------|------|----------|-------------| | title | string | yes | Short issue summary | | description | string | no | Full description | | severity | string | yes | One of: critical high medium low | | reportedBy | string | no | Email or name of the reporter | | filePath | string | no | Attach a file to the report |

Severity determines the emoji and label:

| Severity | Emoji | |----------|-------| | critical | :red_circle: | | high | :large_orange_circle: | | medium | :large_yellow_circle: | | low | :large_green_circle: |


Requirements

  • Node.js 14+
  • Zero npm dependencies (uses built-in https and fs)