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

uiser

v1.0.0

Published

A small tool to simplify UI rendering

Readme

uiser-js

A light-weight UI rendering tool to help build small apps

UIser gives you an easy way of building a frontend application. It defines the UIModel class and some assisting Utils that wrap around the document.createElement API.

Inheritance

A class that extends the UIModel is in charge of defining its own attributes (such as id), properties (i.e. textContent) and event listeners (if any), and override the renderChildren method in case it has any. The extending class can define its id and tag by calling first the super in its constructor. id does not have to be defined, and the default value for tag is div. Then the UIModel takes care of the rendering, and maintains a reference to the rendered element.

Rerendering

When needed to be rerendered, an extending class should call this.replaceElement(data), that uses the rendered element reference for replacing the old with the new.

A simple usage example:

import { UIModel } from 'uiser';

class Counter extends UIModel {
  constructor () {
    super('counter-id');

    this.counter = 0; 
    this.properties = { textContent: this.counter };
    
    this.listeners = {
      click: () => {
        this.properties.textContent = ++this.counter;
        this.replaceElement();
      }
    };
  }
}

Here we render a div element that displays a counter. When clicked, it bumps the count and displays the updates state.

Now, insert into the document:

const counter = new Counter();
document.getElementById('body').append(counter.render());

And voilà! You have your counter, while all the rendering & DOM manipulation is taken care of!

All that is left to do is create your own UIser application. Enjoy! 😀