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

newspublisher

v0.0.6

Published

Bot posting new articles from our sites to Slack

Downloads

4

Readme

slack-newspublisher

slack-newspublisher is a Slack bot running with Node in a Docker container in a Google Compute Engine instance. It is a replacement of the old ruby scripts we had in the Amazon cloud.

It serves three different purposes:

  • Publish new articles from all of our sites (except test sites) to the #amedia-news channel on Slack for Amedia Utvikling.
  • Publish new feature articles from all our sites (except test sites) to the #the-feature channel on Slack for Amedia Utvikling.
  • Publish all new Origo article comments onto the #folkedypet channel.

Technology in use

  • Node >=8.1.2
  • Docker
  • Google Datastore (for caching)
  • Google Compute Engine (Hosts the running docker image)
  • Slack ;)

Development

In order to maintain this project you must have access to the amedia-acp in the Google Cloud. The reason why it ended up there is simply that we had enabled payment on this project earlier on. People on the HappyDesk team can provide access.

Further you got to have the gcloud tool installed locally. Set the default project to amedia-acp and login gcloud auth login

Now you should have access to Google Datastore, Google Container Registry and Google Compute Engine; Which are the services in use.

In development modus the bot will post to the #bot-test channel instead of the standard channels (which are configured in the config/production.json file). It will also use development values from the Google Datastore. So you should not be afraid of messing up anything while testing. However, things might not work as expected if more than one developer are running the bot at the same time.

Running in dev mode

> npm run start

Release and deploy

You must have the Amedia Tools repository installed locally (Read more here https://github.com/amedia/tools).

Release

> amediainternal-releaser release

Deploy

The release script will provide you with the full command. But it will look something like this:

> amediainternal-deploy slack-newspublisher 1.2.0

Where the version of course will vary.