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

probot-emailer

v0.0.1

Published

A Probot app to deliver messages from events via email.

Downloads

4

Readme

probot-emailer

A self-hosted Probot app that delivers push event details to your inbox.

probot-emailer may be used as a self-hosted replacement to the email service that is due to be deprecated on January 31, 2019.

Setup

Overview

  1. Register a GitHub App
  2. Create a SendGrid API key
  3. Deploy to Heroku
  4. Update your GitHub App
  5. Install your GitHub App
  6. Configure your installation

Detail

Register a GitHub App

Register a new GitHub App, providing a GitHub App name, and Homepage URL, and having the following properties:

Permissions

  1. Repository contents: Read only

Event subscriptions

  1. Push

Webhook URL

For now, use a temporary value, such as http://localhost, we'll come back to this shortly.

Webhook Secret

Be sure to secure your webhooks, to ensure the authenticity of requests from GitHub, by providing a Webhook Secret. Use a random string with high entropy (e.g., by taking the output of ruby -rsecurerandom -e 'puts SecureRandom.hex(20)' at the terminal).

Private key

After creating the GitHub App, be sure to generate a private key, store this in a safe place.

Create a SendGrid API key

Sign up for a free SendGrid account, and create an API key with Mail Send access.

Domain authentication

It is recommended to set up domain authentication in SendGrid in order to signal to email providers that SendGrid has permission to send emails on your behalf.

Deploy to Heroku

Deploy

Deploy your app to Heroku, populating the Config Vars with your GitHub App's APP_ID, WEBHOOK_SECRET, and PRIVATE_KEY, as well as your SendGrid API key, SENDGRID_APIKEY.

Update your GitHub App

Update your GitHub App's Webhook URL, with the URL of your Heroku app.

Install your GitHub App

Install your GitHub App on the account, or repository that you wish to receive email notifications from.

Configure your installation

Configure the installed app, by creating a .github/probot-emailer.yml file in the root of the repository, for example:

---
addresses: # a list of addresses to send notifications to
  - [email protected]
sender: # the email address of the notification sender (optional)
  name: From
  address: [email protected]

Consider adding your sender.from address as a contact, to avoid it being flagged as spam.

Usage

Once configured, a push to any branch of a configured repository will generate a notification to the addresses defined in your .github/probot-emailer.yml.