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

hubot-qiita

v0.1.1

Published

A Hubot script to create and list items from Qiita.

Downloads

10

Readme

hubot-qiita

Build Status npm-version

A Hubot script to list and create Qiita items.

Currently supporting only Qiita Team.

me > hubot authenticate me
hubot > Visit this URL and authorize application: https://...
hubot > Authenticated to Qiita with id:ngs
me > hubot qiita list templates
hubot > Listing templates:
        1. 日報
        2. Daily standup minutes
        3. Sales meeting minutes
me > hubot qiita new item with template 1 "ngs 日報 2014/10/30"
hubot > Created new item *ngs 日報 2014/10/30* https://...

Commands

hubot qiita authenticate me
hubot qiita list stocked items
hubot qiita list templates
hubot qiita new coediting item with template <template id> "<title>"
hubot qiita new item with template <template id> "<title>"
hubot qiita start recording "<title>" - Start recording chat room
hubot qiita stop recording

Configuration

Installation

  1. Add hubot-qiita to dependencies.
npm install --save hubot-qiita
  1. Update external-scripts.json
["hubot-qiita"]

Configurations

HUBOT_QIITA_TEAM

Team ID of your Qiita team.

HUBOT_QIITA_CLIENT_ID, HUBOT_QIITA_CLIENT_SECRET

OAuth API keys. Grab yours from User Settings.

Setup

On Register new Application screen, fill the fields like this:

heroku config:set \
  HUBOT_QIITA_CLIENT_ID=<client id> \
  HUBOT_QIITA_CLIENT_SECRET=<client secret>

Create new item from template

hubot-qiita extracts variables wrapped with %{} from templates.

If you have templates like this, Hubot asks contents to fill those variables and creates new item.

title:

%{title} KPT - %{Year}-%{month}-%{day}

tags:

KPT

body:

## Keep

%{Keep}

## Problem

%{Problem}

## Try

%{Try}

----

This entry was created by %{hubot:user} on %{hubot:room}

You can create templates from Templates page of your Qiita Team.

Run this command to start creating new item:

hubot qiita new item with template $TEMPLATE_ID

You can retrieve template ID with hubot qiita list templates command.

If you'd like to abort creation, just send cancel! in same room you started.

All Qiita Markdown formats are supported.

Recording chat

hubot-qiita supports recording messages in the room.

Mardown is supported as well.

To start recording session:

hubot qiita start recording

Hubot will start recording from the next message in the room until the recording session is canceled or stopped.

To stop recording and save it to Qiita Team:

hubot qiita stop recording

If you'd like to cancel recording:

hubot qiita cancel recording

Author

Atsushi Nagase

License

MIT License