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

estreuv

v0.2.0

Published

EstreUV.js — micro-Rimwork (Lit class primitive), sister to EstreUI.js. Intent context, lifecycle bridge, Alienese aliases, tiles.

Readme

estreuv

Micro-Rimwork — a Lit class primitive, sister to EstreUI.js's macro-Rimwork (jQuery class primitive). Build self-registering web components that drop into an EstreUI article and receive its lifecycle, or run fully standalone.

0.1.0 — early access. API stabilizing toward 1.0.0 GA. No build step. Lit core only.

Install

npm install estreuv

lit and @lit/context are peer-resolved through your import map (no bundler required).

5-minute quickstart

1. Import map (no build)

<script type="importmap">
{
  "imports": {
    "lit": "/node_modules/lit/index.js",
    "lit/": "/node_modules/lit/",
    "@lit/context": "/node_modules/@lit/context/index.js",
    "@lit/reactive-element": "/node_modules/@lit/reactive-element/reactive-element.js",
    "@lit/reactive-element/": "/node_modules/@lit/reactive-element/",
    "lit-element/lit-element.js": "/node_modules/lit-element/lit-element.js",
    "lit-html": "/node_modules/lit-html/lit-html.js",
    "lit-html/": "/node_modules/lit-html/",
    "estreuv": "/node_modules/estreuv/src/index.js",
    "estreuv/": "/node_modules/estreuv/src/"
  }
}
</script>

2. Use a tile (component auto-registers on import)

<estreuv-dark-mode-tile></estreuv-dark-mode-tile>
<estreuv-dark-mode-tile text="Theme" color="#2a8"></estreuv-dark-mode-tile>

<script type="module" src="/node_modules/estreuv/src/dark-mode-tile.js"></script>

That is the whole standalone path — no EstreUI, no bundler.

3. Author your own component

import { EstreUVElement } from 'estreuv';
import { html } from 'lit';

class MyTile extends EstreUVElement {
  static properties = { count: { type: Number } };
  count = 0;
  render() {
    return html`<button @click=${() => this.count++}>${this.count}</button>`;
  }
}
customElements.define('my-tile', MyTile);

EstreUI pairing

When a component lives inside an EstreUI article, wire it once and it receives the eight EstreUI lifecycle hooks (onBring / onOpen / onShow / onFocus / onBlur / onHide / onClose / onRelease) via a flat dispatch — with per-tick dedup so each fires exactly once:

import { wireArticle } from 'estreuv';

// inside the article's page handler
wireArticle(articleElement);

The Lit native channel (connectedCallback) and the EstreUI channel (onShow) stay separate, so a component works identically with or without EstreUI.

Intent context (prop-down / event-up)

Uni-directional state sharing via @lit/context — providers push intent down, components request changes up (no two-way binding race):

import { provideIntent, consumeIntent, requestIntentUpdate } from 'estreuv';

provideIntent(host, { darkMode: 'dark', notifCount: 0 }); // provider
const intent = consumeIntent(this);                        // consumer
requestIntentUpdate(this, { notifCount: 3 });              // event-up

Alienese aliases

Short attribute aliases map to reactive properties at zero build cost:

import { applyAliases } from 'estreuv';

class MyTile extends EstreUVElement {
  static aliases = { '*t': 'text', '*c': 'color' };
}
applyAliases(MyTile);

ALIENESE_DEFAULT_ALIASES covers *ttext, *bgbackground, *ccolor, *szsize, *onenabled, *icicon. Use long-form attribute names in HTML; the *-prefixed identifiers are the JS-side convention only.

API surface

| Export | From | | --- | --- | | EstreUVElement | base class (LitElement + EstreUI lifecycle bridge) | | wireArticle, dispatchLifecycle, getLifecycleHistory, ESTREUI_LIFECYCLE_NAMES | lifecycle bridge | | provideIntent, consumeIntent, requestIntentUpdate, intentContext | intent context | | applyAliases, resolveAlias, isAliasApplied, ALIENESE_DEFAULT_ALIASES | Alienese aliases |

Bundled tiles: estreuv/dark-mode-tile.js, estreuv/clock-tile.js, estreuv/notif-count-tile.js, estreuv/notelle-sidebar.js, estreuv/notelle-item.js.

Footprint

~689 LoC core · 4.31 KB min+gzip (Lit external) · Lit core only, no Lit Labs.

License

MIT © SoliEstre