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

be-indefinite

v0.0.1

Published

Provides the ability to create a local webbie compotnik

Readme

be-indefinite [WIP]

be-indefinite provides the ability to create a "poor man's web component" (but not a fully fledged web component, just something that resembles a web component).

be-indefinite is one of the two element decorators that form a tight bond -- the two i's -- be-indefinite and be-inquiring.

be-indefinite also has something of an antonymous relationship with be-definitive.

be-definitive provides a way to declaratively define a full fledged custom element, complete with support for shadow DOM, constructible stylesheets, form association, etc. It is meant for scenarios where that custom element can be used in multiple scenarios, across multiple frameworks, server-side or client-side, etc, with longevity a significantly desired outcome.

be-indefinite, in contrast, has more of a Polly-annish approach to life. It is meant to be used in a setting where it is only used within a containing web component, and nowhere else, and is still highly in flux as far as naming / functionality. As such, opportunities for short-cuts are pursued as far as defining the "component", requiring less tender-loving-care to produce.

Lingo

<template id=menu-option be-indefinite>
    <a target="_blank">
        <i></i>
        <h3></h3>
    </a>
    <script transform='{
        "a": {
            "href": "url",
            "className": "hyperlinkCss",
            ".style.transitionDelay": "transitionDelay"
        },
        "i":{
            "className": "icon"
        },
        "h3": {
            "textContent": "label",
            "className": "labelCss"
        }
    }'>
        ({type, open, index}) => ({
            hyperlinkCss: `menu-${type}-option`,
            transitionDelay: `${(open ? 200 : 0) + 50*index}ms`,
            closed: !open,
            labelCss: type === 'quick' ? 'tooltip' : 'label'
        })
    </script>
</template>

Shorthand for:

<script nomodule>
    export const islet = ({type, open, index}) => ({
        hyperlinkCss: `menu-${type}-option`,
        transitionDelay: `${(open ? 200 : 0) + 50*index}ms`,
        closed: !open,
        labelCss: type === 'quick' ? 'tooltip' : 'label'
    })
</script>

Like its antonymous counterpart, be-definitive, be-indefinite eagerly awaits inline-binding template instantiation syntax being incorporated into the browser, at which point the syntax above can continue to supplement what the built-in binding supports. For now, only "binding from a distance" is supported.

What this does: puts the template into a weak map associated with the root node host.

Referencing.

During template instantiation, and only during instantiation (or after an XSLT Transformation, before adding to the live DOM tree):

<menu-option index-n=5 type-e="type" icon-e="[email protected]" be-inquiring></menu-option>

gets replaced with:

<template data-cnt=2 data-spawn-of=menu-option></template>
<a href=... class=... style="transition-delay:..." target="_blank">
    <i class=...></i>
    <h3 class=...>...</h3>
</a>

...with the values passed in from the host: host.type, host.options[5].icon, etc. The template tag provides a gateway for passing in new values (optional)

Cross pollinate syntax with obj-ml.

Ends with -e means "expression from host" (by default)

Synergies with be-inclusive (birtualize)