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

@fest-lib/lure

v0.1.79

Published

fest-lib LUR.E: reactive DOM (E/H/M/Q), form bind, overlays, drag

Readme

@fest-lib/lure — level 2 reactive DOM. Binds @fest-lib/object refs to real nodes (E, H, M, Q, T, C, S), forms, overlays, and drag. Web components and CSS-in-JS (S) are first-class.

core · dom · object · uniform
 └── fest/lure        ← you are here
      └── icon · image · veela · fl-ui

Install

npm install @fest-lib/core @fest-lib/dom @fest-lib/object @fest-lib/uniform @fest-lib/lure

Peers: core, dom, object, uniform (>=0.1.0). ESM, sideEffects: true.

import { E, H, M, Q, T } from "@fest-lib/lure";
import { observe, iterated } from "@fest-lib/object";

const el = E("div", {
    attributes: { id: "app" },
    classList: new Set(["box"]),
    style: { padding: "8px" },
    on: { click: () => console.log("hi") }
}, ["Hello"]);
document.body.append(el as Node);

Factory map

| API | Role | | --- | --- | | E(tag \| node, props, children) | create / wrap + bind | | H\html`/H("")| parse HTML or tagged template | |M(list, mapFn)| reactive list → nodes | |Q(selector, root?)| live query wrapper | |T(string | ref)| text node | |C(ref, factory)| swap node when ref changes | |S`css`` | controllable stylesheet |

H prefixes: attr:* attribute · prop:* property · on:* / @* event · ref / ref:* assign.

const items = iterated(["A", "B"]);
const list = H`<ul>${M(items, (x) => H`<li>${x}</li>`)}</ul>`;
items.push("C"); // DOM updates

Triggers & overlays

Use these instead of ad-hoc listeners:

import {
    withTriggerModifiers,
    bindOutsideDismiss,
    resolvePlacement,
    registerTransientOverlay
} from "@fest-lib/lure";
  • TriggerCore — once / debounce / prevent / stop / capture / passive via withTriggerModifiers and E({ on }) tuples.
  • bindOutsideDismiss — composed path, panel roots, Escape, idempotent cleanup.
  • resolvePlacement / placeOverlay — CSS-anchor with JS fallback.
  • registerTransientOverlay — same-kind overlays close LIFO.

Forms: formLink / bindForms / FormBinding (bindFormControl, formRef). Mount lifecycle is opt-in (bindWhileConnected).

import { bindDraggable } from "@fest-lib/lure";
bindDraggable(target, () => console.log("drag end"));

Also in the package

OPFS / file helpers (pickFile, saveFile, markdown asset bind), clipboard, history, scrollbar, voice input, theme / color engines. Subpath: @fest-lib/lure/markdown-assets. JSX: jsxFactory → createElement (@fest-lib/lure/src/lure/node/jsx-runtime).

Workspace

cd modules/projects/lur.e
npm test                 # linker, interaction, placement, overlay-host, trigger-core, form-binding
npm run demo
npm run build
npm run publish

Typedoc: npm run docs:md. License: MIT.