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

nubot

v0.5.8

Published

A conversational context-aware chatbot

Downloads

113

Readme

Nubot

Nubot is an evolution of Hubot by GitHub, pre-loaded with the Playbook framework for conversation branching and context and Pretend for unit testing.

Setup

  • yarn install nubot

  • See the Hubot docs for general how-to guides and adapter info.

  • See the Playbook docs for using the extended features for conversations.

  • See the Pretend docs for guides to unit testing your conversations.

Configure

  • Nubot uses Yargs to accept command line arguments. Use --help for a guide to cli configs.

  • The same command line options can be given as a config file, a package.json key or as environment variables, with the prefix HUBOT_.

Compatibility

Nubot is functionally identical to Hubot (v3) except for a few minor enhancements and bug-fixes:

  • Nubot uses Mockery to substitue require('hubot'), so legacy scripts and adapters should* work without modification.

  • Its middleware returns a promise instead of undefined, so callbacks can wait for asynchronous operations.

  • It can be executed directly as a node script, so it's easier to debug.

  • It comes pre-loaded with Playbook, available to all loaded scripts as robot.playbook

  • Uses dotenv when NODE_ENV is development, for easily setting configs from local .env file

  • Some functionality that was deprecated in Hubot has been removed entirely.

* Some adapters are not up to date with the conversion of Hubot v3 into es6.

Rationale

The Hubot project is amazing, but it has a large variety of usage and approaches being considered for its evolution. We needed it to work seamlessly with Playbook extensions and some other features that are still being considered for Hubot's future, but we needed them today. This project may evolve into something new or possibly return something to Hubot core. It will take more of a 'move fast and break things' approach, but contributions and discussion are very welcome.

Roadmap

  • Make generator-nubot.
  • Update references to Hubot with Nubot.
  • Update E2E test and environment loaders with new scripts.
  • Update Express version.
  • Unify docs for Nubot, Playbook, Pretend, Conditioner.

Fixes

  • Add dotenv for test environment vars including NODE_ENV
  • Run local mongodb dev dependency for tests
  • Re-instate check as yargs command to dry-run config
  • Add timeout for adapter connection and log error

License

See the LICENSE file for license rights and limitations (MIT).