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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hyper-serenade

v1.0.2

Published

Serenade for Hyper

Downloads

4

Readme

Serenade for Hyper

Installation

  1. Download and install Hyper 3.1.1. Serenade's Hyper plugin will not work on versions below 3.1.0!
    • macOS: https://cdn.serenade.ai/hyper/Hyper-3.1.1-serenade.dmg
    • Windows: https://cdn.serenade.ai/hyper/Hyper%20Setup%203.1.1-serenade.exe
    • Linux: https://cdn.serenade.ai/hyper/Hyper-3.1.1-serenade.AppImage
    • This version of Hyper contains a newer version of xterm.js, and it will be released by the Hyper team soon! Until then, you can use the above Serenade-provided builds.
  2. Launch Hyper, then use the menu item Plugins > Update to automatically download the Serenade plugin.
  3. Restart Hyper to make sure Serenade is loaded.

Windows

On Windows, you might want to change Hyper's configuration file to point to your shell with Edit > Preferences. The default configuration file will have examples in the comments above the shell entry. For example, to use Git Bash as you shell, you can do:

shell: 'C:\\Program Files\\Git\\bin\\bash.exe'

Development

macOS

  1. Clone this repo, and run ln -s <absolute path to this repository> ~/.hyper_plugins/local/hyper-serenade to create a symlink.
  2. Run yarn to get dependencies, then yarn watch to build.
  3. Change Hyper's configuration with:
    • towards the bottom, localPlugins:
      localPlugins: [
        "hyper-serenade"
      ],
  4. After a rebuild, you should quit Hyper and restart, or do View > Full Reload.
  5. Optionally, use command + option + I to open Hyper's developer tools, which should show Plugin serenade-hyper (x.y.z) loaded. along with any messages from the plugin.
  6. Optionally, run rm -rf ~/.hyper.js ~/.hyper_plugins/ to remove previously installed configuration and plugins.

Windows

  1. Clone this repo to ~\AppData\Roaming\Hyper\.hyper_plugins\local\hyper-serenade. AppData is a hidden folder.
  2. Since symlinks may not work on Windows, also clone https://github.com/serenadeai/editor-shared and replace the src/shared symlink here with the contents of editor-shared/src.
  3. Run yarn to get dependencies, then yarn watch to build.`
  4. Optionally, run rm -rf ~/AppData/Roaming/Hyper/ to remove previously installed configuration and plugins.

Publishing

  1. Update the version number in package.json.
  2. Run yarn and yarn build.
  3. Run npm publish.

Design

Terminal, tty, shell

A terminal (emulator) can be defined as a GUI program, like Terminal, iTerm, or Hyper, that provides access to input/output with the operating system.

In Unix, that access is accomplished via a tty, an interface provided by the operating system as a file (/dev/tty{s}* in Linux and macOS, indicated by the tty and who commands.)

A shell is a program, like Bash or Zsh, "whose primary purpose is to start other programs" or enable more advanced scripting via commands, usually indicated by the echo $SHELL command.

Source: What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?

Implementation

Layout

Since Hyper is written in TypeScript and its plugins are in TypeScript as well, this plugin is able to use a shared package as its foundation for IPC with the desktop client and dispatching commands.

In index.ts, when a new Hyper tab is created, a new instance of the CommandHandler class is created, along with the IPC needed. Hyper exposes access to the underlying xterm.js's Terminal object, which actually handles inputs and outputs. So whenever a new Terminal instance is detected, we attach our XtermController to that instance.

CommandHandler

CommandHandler currently supports:

  • COMMAND_TYPE_GET_EDITOR_STATE, which asks XtermController for the source (command) and cursor position

Other issues

  1. The escape key seems to be captured by Hyper: https://github.com/vercel/hyper/issues/3929. A workaround is to add this to the config, which is done automatically by our forked version in https://github.com/serenadeai/serenade-hyper:
  keymaps: {
    // Example
    // 'window:devtools': 'cmd+alt+o',
    'editor:break': 'esc'
  },