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

hermes-io-cli

v0.0.2

Published

This CLI is the official scaffolding generator for [hermes-io](https://www.npmjs.com/package/hermes-io#get-started), its generates a simple folder structure that guaranty separation of concerns encompassing pivotal elements such as: [contexts](https://git

Readme

Overview

This CLI is the official scaffolding generator for hermes-io, its generates a simple folder structure that guaranty separation of concerns encompassing pivotal elements such as: contexts, hooks and observers.

Summary

Installation

npm install hermes-io-cli -g

Usage

This CLI has a set of commands for generate folders and files for hermes-io entities.

Context

By passing the context argument a newly created folder named as 'contexts' is automatically generated. Within this folder, a brand-new Context file is generated, adopting the provided value as its designated name.

hermes-io-cli --context="MyContext"

result:

/contexts/MyContext.js
import { Context } from 'hermes-io';
export const MyContext = new Context('MyContext'); 

Observer

By passing the observer argument a newly created folder named as 'observers' is automatically generated. Within this folder, a brand-new Observer file is generated, adopting the provided value as its designated name.

hermes-io-cli --observer="MyObserver"

result:

/observers/MyObserver.js
import { Observer } from 'hermes-io';
export const MyObserver = new Observer('MyObserver'); 

Note: To simplify things you can generate one or more entities by passing the correspondings arguments in a single command, for example:

hermes-io-cli --observer="MyObserver" --context="MyContext"

result:

/contexts/MyContext.js
/observers/MyObserver.js

Use observer

By passing the hook argument a newly created folder named as 'hooks' is automatically generated. Within this folder, a brand-new observer hook file is generated, adopting the provided value as its designated name:

hermes-io-cli --hook="useCustom"

result:

/hooks/useCustom.js
import { useObserver, Context, Observer } from 'hermes-io';

export const CustomContext = new Context('CustomContext'); 
export const CustomObserver = new Context('CustomObserver'); 

export const UseCustom = () => {
  const handleUseCustomNotification = (payload) => {
    /* handle notification */ 
  };
  useObserver({
    contexts: [CustomContext],
    observer: CustomObserver,
    listener: handleUseCustomNotification,
  });
};

Note: Is posible to link existing observers or contexts to a newly generated useObserver if the name of any match with the name of the custom hook, for example:

hermes-io-cli --hook="useCustom" --context="Custom" --observer="Custom"

result:

/hooks/useCustom.js

/observers/Custom.js

/contexts/Custom.js
import { useObserver } from 'hermes-io';
import { Custom as ObserverCustom } from "../observers/Custom";
import { Custom as ContextCustom } from "../contexts/Custom";

export const UseCustom = () => {
  const handleUseCustomNotification = (event) => {
    /* handle notification */
    console.log(event);
  };
  useObserver({
    contexts: [ContextCustom],
    observer: ObserverCustom,
    listener: handleUseCustomNotification,
  });
}

Root folder

By default the folders are generated using the current path as a base (typically at the root of the project), this can be changed by using the root argument:

hermes-io-cli --root="./output" --context="MyContext" --observer="MyObserver"

result:

/output/contexts/MyContext.js
/output/observers/MyObserver.js