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

@microdom/mode

v1.0.3

Published

**Mode JS** is a low-level interaction engine for the web. It belongs to the **Microdom** ecosystem.

Readme

Mode JS

Mode JS is a low-level interaction engine for the web. It belongs to the Microdom ecosystem.

It does not provide widgets, components, or behaviors. It provides a way to reason about movement, intent, and structure.

Mode JS is designed for developers who want to build interactions, not configure them.


What Mode JS is

Mode JS

  • A low-level interaction primitive
  • Pointer- and touch-aware
  • Minimal by design
  • Framework-agnostic
  • DOM-friendly
  • Data-binding ready

Mode JS helps you express how things move — not what they are.


What Mode JS is not

  • ❌ A WebComponents library
  • ❌ A UI framework
  • ❌ A state machine
  • ❌ A collection of ready-made behaviors

Those things can be built with Mode JS, but they do not belong inside it.


Install

npm install @microdom/mode

Usage

import µ from "@microdom/mode"
// or: import { µ } from "@microdom/mode"

CDN

<script src="https://cdn.jsdelivr.net/gh/microdom/mode.js/dist/mode.min.js"></script>
<script>
  µ("body", { /* ... */ })
</script>

Why Mode JS exists

Most interaction libraries:

  • abstract too early
  • hide intent behind state
  • grow uncontrollably
  • break at the edges (touch, empty states, nested structures)

Mode JS takes a different approach:

Movement first.
Intent is explicit.
Structure matters more than features.


Why not X?

Modern UI stacks often require tens of kilobytes of code to express a simple interaction.

Mode JS asks a different question:

How much code do you actually need
to make something feel right?

A complete multi-list sortable with touch support
can be built in **~6 KB total**.

Read the full comparison in
docs/why-not-x.md.


Code weight in perspective

Characters © Team Cherry

Mode JS vs frameworks — code weight comparison

The little one can rule the town.


Repository structure

If you’re looking for examples, start in /demos.
If you’re looking for ideas, start in /docs.


Demos

  • Sortable (multi-list + touch)
    A complete sortable interaction built with ~6 KB of code. Demonstrates intent gating, empty container handling, and cross-list movement.

Each demo is intentionally self-contained. They are not plugins — they are proofs of thought.


Philosophy

Mode JS is opinionated:

“If an interaction cannot be expressed simply, the abstraction is probably wrong.”

Read more in docs/philosophy.md.


License

MIT