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

mikser-io-live

v11.0.1

Published

Live reload for mikser-io, mounted on mikser's own HTTP server. Reloads from the build report rather than by watching files, so a CSS edit swaps the stylesheet in place and a build that touched other pages does not interrupt the one you are looking at.

Readme

mikser-io-live

Live reload for mikser, mounted on mikser's own HTTP server.

Save a file, the browser updates. Edit a stylesheet and it swaps in place — no reload, so scroll position, open menus and form state survive.

Install

npm install mikser-io-live

Usage

// mikser.config.js
import { live } from 'mikser-io-live'

export default {
  plugins: [ /* … */, live() ],
}
mikser --server --watch

That's the whole setup. --watch rebuilds on change, --server serves the output, and this plugin connects the two to the browser. mikser prints every address it answers on, so testing against a phone is a matter of typing the LAN one it gives you.

| option | default | | | --- | --- | --- | | path | /live | where the event stream is mounted |

What it does

Watches the output folder and tells connected browsers what changed. That folder is the bytes the browser gets — a page arrives there by being rendered, a stylesheet by being copied, an image by being symlinked — so watching it catches all three. Deriving the list from what the engine rendered was tried and misses everything that was not rendered, which includes the most common reason to want live reload.

What the engine is asked for is the timing and the verdict: changes are flushed at the end of a build, so one build produces one reload rather than forty, and a build that failed produces none. A failed render leaves the previous good output on disk, so reloading would show the same page and hide the failure — you get a console warning instead.

Three behaviours worth knowing:

  • Stylesheets swap, pages reload. If everything that changed was CSS, the <link> href is refreshed and nothing else happens.
  • Only the page you are looking at reloads. A build that rerendered forty other pages does not interrupt this one.
  • A mikser restart reloads. The client notices the server it was talking to has been replaced and reloads rather than trusting a page the previous process rendered.

Requires --server

There is no second server and no second port. Without a shared Express app there is nothing to mount on, and the plugin says so rather than starting one of its own.

This is a change from 5.x, which wrapped alive-server and ran its own server on its own port. If you were using it as the lighter alternative to mikser --server, you now want mikser --server --watch instead — one port, one process, and it composes with every other plugin that mounts on the same app.

Where it mounts

/live, and path moves it. That is the same shape every other mikser plugin uses — /api, /auth, /mcp, /preview, /drive, /forms, /vector — so if a page of yours needs that path, move this one the way you would move any of those.

How the page gets the script

A small snippet is injected before </body>, falling back to </head> for a document with no closing body tag. A page with neither is warned about once, because a page that silently never reloads looks exactly like a reload that is broken.

.html and .htm only. Nothing else is touched — in particular not SVG. An SVG served as image/svg+xml is parsed as XML, where the snippet's && starts an entity reference and < starts a tag, so injecting there is not a no-op but a fatal parse error: the browser draws nothing. alive-server does inject into SVG and gets away with it by wrapping its script in <![CDATA[ ]]>; this one does not, and excluding the format outright is the version that cannot be got subtly wrong later.

Requests carrying an Origin header are left alone. Those are fetch/XHR — script asking for the same HTML as data — and injecting there corrupts what the caller parses.

License

MIT