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

hipchat-whiteboard

v0.0.1

Published

This add-on shows how to use the basic blocks of the HipConnect API. In particular:

Downloads

2

Readme

Atlassian Connect for HipChat add-on

This add-on shows how to use the basic blocks of the HipConnect API. In particular:

  • Contribute a glance
  • Click on the glance and open a sidebar view
  • From the sidebar view, open a dialog
  • Open a sidebar view from a message action, and access the message content
  • Open a dialog from a message action, and access the message content
  • update a glance by a call from the add-on back-end
  • Post an application card to a room

How to install

In the same directory:

  • Check out this repo
  • Then check out the following repo: https://bitbucket.org/hipchat/atlassian-connect-express-hipchat

Then, In a terminal window, run:

#!shell
cd atlassian-connect-express-hipchat
git checkout support-pluggable-clients
npm link
cd ../hipchat-connect-sample
npm link atlassian-connect-express-hipchat    

Finally:

  • Install Redis
  • Install ngrok. Create an account with ngrok to be able to create custom subdomains.

How to run your add-on

Open 3 terminal windows.

  • In the first one, run
#!shell
redis-server
  • In the second one, run
#!shell
ngrok -subdomain yourSubdomainName 3000
  • In the 3rd one, run:
#!shell
cd hipchat-connect-sample
npm install
AC_LOCAL_BASE_URL=https://yourSubdomainName.ngrok.com node app.js

Reading the repo

The Connect descriptor is atlassian-connect.json It is where the add-on declares how it wants to extend HipChat. In there I declared the dialog, glance, sidebar view and actions.

The main application router is index.js. That's what handles any request

Each view has a .hbs file in the views/ directory. The main ones are dialog.hbs and sidebar.hbs both have a corresponding javascript file in public/js (sidebar.js, dialog.js)

In layout.js, you can see the main imports.