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

hyperline-magus

v0.6.0

Published

Handy status line for Hyper.app

Downloads

4

Readme

HyperLine

HyperLine is a status line plugin for Hyper.app. It shows you useful system information such as free memory, uptime and CPU usage. It's designed to be unobtrusive and will match the look of the theme you're currently running.

GIF DEMO

Install

To install, edit ~/.hyper.js and add "hyperline" to plugins:

plugins: [                                                                                               
  "hyperline",                                                                                           
],   

Configuration

Hyperline shows a collection of information plugins which can be fully configured. By default, all available plugins are displayed in pre-defined colors. You can change which plugins are displayed by editing .hyper.js. Start out with the default config (below), and customize Hyperline to your liking.

  • The color string is used to specify the color of the line itself.
  • The plugins array determines which plugins are rendered, and in which order.
    • Each plugin configuration has an options object. This can be used to change the color of the each plugin. Some plugins allow you to choose multiple colors.
    • You can omit the options object to stick with the default options for each plugin.
  • Check out the list of available colors in the Hyper.app source code.
module.exports = {
  ...
  config: {
    ...
    hyperline: {
      background: 'transparent',
      color: 'black',
      plugins: [
        {
          name: 'hostname',
          options: {
            color: 'lightBlue'
          }
        },
        {
          name: 'ip',
          options: {
            color: 'magenta'
          }
        },
        {
          name: 'memory',
          options: {
            color: 'white'
          }
        },
        {
          name: 'uptime',
          options: {
            color: 'lightYellow'
          }
        },
        {
          name: 'cpu',
          options: {
            colors: {
              high: 'lightRed',
              moderate: 'lightYellow',
              low: 'lightGreen'
            }
          }
        },
        {
          name: 'network',
          options: {
            color: 'lightCyan'
          }
        },
        {
          name: 'battery',
          options: {
            colors: {
              fine: 'lightGreen',
              critical: 'lightRed'
            }
          }
        }
      ]
    }
    ...
  }
  ...
}

Contributing

Feel free to contribute to HyperLine by requesting a feature, submitting a bug or contributing code.

To set up the project for development:

  1. Clone this repository into ~/.hyper_plugins/local/
  2. Run npm install within the project directory
  3. Run npm run build to build the plugin OR npm run dev to build the plugin and watch for file changes.
  4. Add the name of the directory to localPlugins in ~/.hyper.js.
  5. Reload terminal window

License

MIT