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

litewing

v2.0.2

Published

Minimal vanilla JS utility library with plugin system

Readme

🎯 LiteWing-JS

Write vanilla JavaScript, but better

litewing.js is not a framework. It's a thin, lightweight wrapper that makes vanilla JavaScript more readable, less repetitive, and still performant. Nothing more. Nothing less.

import { ref, ready } from 'litewing.min.js';

ready(() => {
    ref('#button').onClick(({event, target, currentTarget}) => {
        target.addClass('active').text('Clicked!');
    }).text('Click Me');
});

💭 What is LiteWing?

You're already writing vanilla JavaScript. LiteWing just makes it nicer, cleaner, and easier to read.

Without LiteWing

const btn = document.querySelector('#button');
btn.addEventListener('click', (e) => {
    e.target.classList.add('active');
    e.target.textContent = 'Clicked!';
});

With LiteWing

ref('#button').onClick(({target}) => {
    target.addClass('active').text('Clicked!');
});

Same result. Same performance. Less boilerplate.


💡 Philosophy

1. Intentionally Boring

LiteWing avoids abstractions and keeps everything predictable.

  • No magic: Every method maps directly to native JavaScript
  • No runtime: Just syntactic sugar
  • No lock-in: You’re always writing real JavaScript
// LiteWing method:
ref('#el').addClass('active');

// Native equivalent:
document.querySelector('#el').classList.add('active');

2. The Problem

Modern frontend tools often create more complexity than they remove:

  • ❌ Frameworks are overkill for simple interactions
  • ❌ jQuery is outdated and heavy
  • ❌ Vanilla JavaScript becomes verbose and repetitive

3. The LiteWing Approach

LiteWing keeps things light, readable, and future-proof:

  • Readable: Chainable API, less boilerplate
  • Tiny: ~3KB minified
  • Honest: No hidden behavior
  • Timeless: Built on web standards

🎯 When to Use LiteWing

| ✔️ Perfect For | ❌ Not Suitable For | | ------------------------------------------------------ | -------------------------------------------------- | | Server-rendered apps (PHP, Go, Python, Rails, Express) | Complex SPAs with state management (use React/Vue) | | Adding interactivity to static sites | Apps requiring a virtual DOM architecture | | WordPress, Shopify, or any CMS | Projects already using a frontend framework | | Progressive enhancement | Highly dynamic UI-heavy applications | | Multi-page applications (MPAs) | Framework ecosystems that expect components |

Rule of thumb: If vanilla JS works there, LiteWing works there.


🔌 Plugin System

LiteWing stays minimal by default. Only include what you need:

{
  "out": "dist",
  "corePlugins": ["events", "classes", "attributes", "contents", "actions", "traversal"],
  "optionalPlugins": [],
  "userPlugins": {
    "path": "",
    "plugins": []
  }
}

Every plugin is opt-in, so your final bundle stays as small as possible.


📦 Real-World Example

<!-- your-template.html (PHP, Django, EJS, etc.) -->
<form id="contact-form">
    <input type="email" id="email" required>
    <textarea id="message" required></textarea>
    <button type="submit">Send</button>
</form>
<div id="status"></div>

<script type="module">
    import { ref } from './litewing.min.js';
    
    ref('#contact-form').onSubmit(async ({event}) => {
        event.preventDefault();
        
        const email = ref('#email').prop('value');
        const message = ref('#message').prop('value');
        
        ref('#status').text('Sending...').show();
        
        const response = await fetch('/api/contact', {
            method: 'POST',
            body: JSON.stringify({ email, message })
        });
        
        if (response.ok) {
            ref('#status').text('Message sent!').addClass('success');
            ref('#contact-form').reset();
        }
    });
</script>

📝 Documentation