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

@sonamu-kit/hmr-runner

v0.2.0

Published

Runner for applications that use hmr-hook (forked from hot-hook)

Readme

@sonamu-kit/hmr-runner

이 문서는 사람이 썼습니다.

@hot-hook/runner(NPM, GitHub)를 fork하여 뜯어고친 패키지입니다.

얘가 하는 일

이 친구는 hmr-hook과 함께 사용될 것을 염두에 두고 만들어졌습니다.

프로세스 매니저입니다. nodemon과 비슷한 runner입니다.

그런데 hmr-hook과의 사용에 특화되어 있습니다. hmr-hook이건 HMR 못하겠다라고 할 때 이를 듣고서 앱을 재시작해줍니다.

이런 식으로 씁니다:

hmr-runner --node-args=--import=@sonamu-kit/hmr-hook/register index.js

hmr-hook은 내부적으로 HMR을 처리하다가, 스스로 판단하기에 HMR이 불가능한 모듈이 변경되었음을 감지하면 process.send로 이를 알립니다. 그러나 알리는 것 까지만 하지, 얘가 알아서 프로세스를 재시작해주지는 못합니다.

그래서 누군가는 애플리케이션 바깥에서 돌아가면서 hmr-hook이 보내는 메시지를 받아다가 재시작을 처리해주어야 합니다. 걔가 바로 이 hmr-runner입니다.

Fork해서 뜯어고친 부분

1. SIGUSR2에 반응하게 함

원본은 애플리케이션이 보내는 SIGUSR2에 반응하지 않습니다.

이에 반응하여 재시작하도록 바꾸었습니다.