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

lupos.html

v0.1.1

Published

A Light Weight Web Component library based on ES Template Literal, and Typescript Transformer.

Readme

About

lupos.html is a library for building Component-Based Web User Interface, powered by lupos.

Features

  • Uses lupos to track get and set operations of component's properties.
  • Uses html Template Literal to describe component's rendering, and compile templates with hoisted codes for better performance.

Examples

export class Checkbox extends Component {

	static style = css`
		.checkbox{
			...
			&.checked{...}
		}
	`

	checked: boolean = false

	protected render() {
		return html`
			<template class="checkbox" 
				:class.checked=${this.checked}
				@click=${this.onClick}
			>
				<slot />
			</template>
		`
	}

	protected onClick() {
		this.checked = !this.checked
	}
}

APIs

  • Bindings:

    • :class: bind element class names.
    • :crossFadePair bind an element to provide bounding rect for later crossfade transition.
    • :html: update innerHTML property of current element to codes.
    • :ref: ref an element or a component as property, or as parameter to call a callback.
    • :slot: bind element as a slot element, later it may replace same named <slot name=...>.
    • :style: bind element style properties.
    • :transition: bind enter and leave transition.
    • class newBinding implements Binding {...}: to declare a new binding.
  • Blocks

    • await: await a promise expression, switch to then after promise resolved, or <catch> after promise rejected.
      <lu:await ${...}>...</lu:await>
      <lu:then>...</lu:then>
      <lu:catch>...</lu:catch>
    • DynamicComponent: decide which component to render in runtime.
      <${DynamicComponent} />
    • for: loop an iterable object.
      <lu:for ${...}>${(item) => ...}</lu:for>
    • if: control flow statements like which in javascript.
      <lu:if ${...} ?cache>...</lu:if>
      <lu:elseif>...</lu:elseif>
      <lu:else>...</lu:else>
    • keyed: will totally replace contents after keyed value changed.
      <lu:keyed ${...} ?cache>...</lu:keyed>
    • switch: switch control flow statements like which in javascript.
      <lu:switch ${...}>
      	<lu:case ${...}>...</lu:case>
      	<lu:default>...</lu:default>
      </switch>
  • Component

    • Component: base class of all components.
    • class NewComponent implements Component {...}: to declare a new component.
    • defineCustomElement: define a component as a custom element.
    • Fragmented: accept a render function, will render things independently.
    • render: render a html template literal to get a component like.
  • Template

    • html`...`: html template literal to render html codes.
    • css`...`: css template literal to render css codes.
  • transition

    • transitions
      • blur
      • crossfade
      • draw
      • fade
      • fly
      • fold
      • frameRange
    • getEasingFunction: get a map function by easing name.
    • FrameLoop: start a per-frame loop.
    • PerFrameTransition: play per-frame transition.
    • WebTransition: play web transition.
    • Transition: play defined web or per-frame transition.

More about

lupos.html was inspired by lit-html and svelte.

License

MIT