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 🙏

© 2026 – Pkg Stats / Ryan Hefner

hook.io-sdk

v3.2.2

Published

sdk api client for communicating with hook.io compatible servers

Readme

hook.io-sdk

Provides a client sdk for accessing hook.io services

Features

  • Provides an easy way to run hook.io API services
  • Designed for minimal size, memory, and cpu footprint
  • Choice of Promise or Callback style APIs
  • Does ship with a minimalist Command Line Interface

Installation

npm install -g hook.io-sdk

Available Endpoints

  • Hook
  • Datastore
  • Domains
  • Logs
  • Events
  • Keys
  • Files
  • Env
  • Domains

Usage

40+ SDK Code Examples

The easiest way to get started using the SDK is by checking out the examples folder.

see: /examples

Authorization

Most SDK methods require an authorized API Access Key with a corresponding access role. In order to use these authorized API methods, you must first generate an API Access Key for free at hook.io.

Once you have an API Access key, simply add this hook_private_key to the sdk client configuration. This will enable authorized communication with the hook.io REST API.

Callback Style API

var sdk = require("hook.io-sdk");
var client = sdk.createClient({});

client.hook.run({
  owner: "examples",
  name: "echo",
  method: "POST",
  data:  { "foo": "bar" }
 }, function (err, res) {
  console.log(err, res)
});

Promise Style API

To enable promises, make sure to set the promises configuration option to true when calling sdk.createClient.

var sdk = require("hook.io-sdk");
var client = sdk.createClient({ promises: true });

client.hook.run({ owner: "examples", name: "echo", method: "POST", data:  { "foo": "bar" } }).then(function (res){
  console.log(res)
}, function(err){
  console.log('error', err)
});

Now all SDK API methods have promises!

CLI Usage

Usage: hook [options] [command]

Commands:

  clone       clones existing hook
  config      manage SDK config
  deploy      deploy hook to the cloud
  alias       create hostname alias for hook
  examples    show list of example hooks
  get         get hook document
  init        initialize new local service
  list        list all hooks
  run         run hook in the cloud
  whoami      returns currently logged in user
  help [cmd]  display help for [cmd]

Options:

  -h, --help     output usage information
  -V, --version  output the version number

Notes:

  All commands are available as separate git style binaries
  Such as: hook-list, hook-info, hook-run, hook-deploy, etc

Many commands also contain additional sub-commands. See ./bin for more details.

Configuration

CLI

The quickest way to configure the hook.io-sdk with hook.io is by running the following command:

   hook config key

This will open a prompt asking for a valid hook_private_key which may be generated at https://hook.io/keys.

SDK Configuration Options

{
  host: "hook.io",
  port: 443,
  protocol: 'https',
  hook_private_key: "12345"
}

Generate Access Keys at https://hook.io/keys