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

hyper-capture

v0.3.2

Published

Capture hyper terminal output to video file

Downloads

5

Readme

hyper-capture

Capture the output of hyper to a video file.

Note: if this extension is used on Windows, there is a good chance you'll need to enable the gpuFix option to prevent recordings from being blank (other than the cursor and window decoration). For more information, look under the options section below

Screencaps

Quick explaination since these gifs look very similar. The first gif is a desktop capture of the hyper window. The second gif is the result from running togglecapture, which how this plugin is used. Desktop capture Desktop capture using QuickTime

hyper-capture capture Capture using this very plugin

Usage

Add hyper-capture to the .hyper.js file and reload hyper. To start capturing terminal activity, type togglecapture. A 'save file' dialog will open, pick a file name and location and the capture will begin. To stop the capture, type togglecapture again.

Options

The options are listed below. They go in the .hyper.js file.

{
    gpuFix: false,
    webmMimeType: 'video/webm;codecs=h264',
    videoMimeType: 'video/webm;codecs=h264',
    videoBPS: 10000000
}

videoMimeType:

Options

  • video/webm;codecs=h264 (default)
  • video/webm;codecs=vp8
  • video/webm;codecs=vp9

If you notice issues of the quality of the recordings, consider using vp9. It will require re-encoding to change it to h264, but the quality in general seems better. The next version might use vp9 as the default (especially if ffmpeg is properly integrated to provide seamless post capture conversion).

gpuFix: (fix for blank recordings on Windows)

If you enable gpuFix, hardware acceleration will be disabled. It is important to know that this option will relaunch hyper with the --disable-gpu command line argument set if it is not set at launch. If you will be making lots of recordings, consider adding --disable-gpu to the launch parameters of hyper to prevent the relaunch. **When this option is enabled, you should enable this extension separately from other extensions. The relaunch could cause issues when other extensions are installing. **

What should I do with this .webm file?

Short version

ffmpeg -i file.webm -vcodec copy file.mp4

Slightly longer version

This plugin only uses built in capabilities provided by Electron. As such, the only available format is webm. At least that I've found. This plugin saves files as video/webm;codecs=h264, which is the h264 variant of the MKV-ish webm format. This means no recoding is necessary, it just needs to be put in a different container format.

##Technical information

This plugin uses:

Want to help?

If you see something that can be improved, by all means submit a pull request for review. I threw this together from other projects I've worked on, spec example boilerplate and a few other places.

I'm least familiar with integarting this code with hyper. I mostly used code from the hyperpower plugin to get everything working, though I'm sure there are ways to improve my reframing of their code.

Planned improvements

Using ffmpeg or a similar utility to convert from .webm to .mp4 automatically is my next goal. Since there is no re-encoding necessary, it should be possible to convert from .webm to .mp4 on the fly.