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

nubond

v1.0.6

Published

A declarative TypeScript progressive framework with Web Components, Shadow DOM, and an attribute-driven binding system — featuring dependency injection, routing, automatic change detection, aspects, transformers, and content projection.

Readme


What is nuBond?

nuBond is a lightweight UI framework for building reactive progressive web applications in TypeScript that respects vanilla web development. It pairs Web Components and Shadow DOM with a familiar decorator + HTML/CSS templates authoring model, an attribute-based binding system, dependency injection, routing, and automatic change detection — all in one cohesive package.

Why nuBond?

  • Simple — 15 minutes and you know all the basics, 15 minutes more and you know everything
  • No dependencies — the framework has no release dependencies and only one dev dependency — tslib
  • Lightweight — as lightweight as possible without compromising functionality
  • Fast — blazingly fast performance at any application size
  • Feature rich — powerful and feature rich, no compromises and no limitations
  • Portable — can be compiled into a single JavaScript file
  • Easy migration — can co-exist with other UI frameworks/libraries on the same page and integrate with them

Highlights

  • Declarative templatesnb-value, nb-class, nb-if, nb-repeat, nb-event:click, and more.
  • Decorator-based metadata@AppRoot, @Container, @Component, @Aspect, @Transformer, @Injectable.
  • Web Components first — components are real Custom Elements with isolated Shadow DOM and scoped styles.
  • Built-in DI — constructor injection with singleton or transient lifetimes.
  • Automatic change detection — automatically triggered based on events and input changes, with the ability to trigger manually via injection or the @Detector() / @Eventer() decorators.
  • Routing — hash-based or path-based routing with declarative slot binding (nb-container="%slot").
  • Aspects — reusable element-level behaviors that mix into any element without creating a new scope.
  • Transformers — global pure functions usable from any expression ({{ dateFormat(...) }}).
  • Content projection — powerful HTML template processing based on named and default slots with append-or-replace semantics.
  • Adopted styles — share CSSStyleSheet instances across components.
  • W3C compliance mode — switch from nb-* to data-nb-* attributes when strict HTML conformance is required.

Quick Start

The fastest way to scaffold a new app is via create nubond:

npm create nubond blank my-app
cd my-app
npm start

Or add nuBond to an existing TypeScript project:

npm install nubond

Requires TypeScript with experimentalDecorators and emitDecoratorMetadata enabled.

Hello, world

src/index.ts — bootstrap the app with @AppRoot:

import { AppRoot } from 'nubond';
import { Main } from './pages/main/main';

@AppRoot(
    { showDebugInfo: true },
    '/#[page=main]',
    Main
)
export class App { }

src/pages/main/main.ts — a container with HTML template:

import html from './main.html';
import { Container } from 'nubond';

@Container(html)
export class Main {
    public name = 'world';

    public greet() {
        this.name = 'nuBond';
    }
}

src/pages/main/main.html — declarative binding via nb-* attributes:

<h1>Hello, {{this.name}}</h1>
<button nb-event:click="this.greet()">Greet</button>

A taste of the binding system

<!-- Text & HTML -->
<p nb-value="this.user.fullName"></p>
<div nb-html="this.richContent"></div>

<!-- Classes & styles -->
<div nb-class="{active: this.isOpen; disabled: !this.canEdit}"></div>
<div nb-style="opacity: this.fade; color: this.theme.text"></div>

<!-- Conditional & iteration -->
<p nb-if="this.items.length">You have items.</p>
<li nb-repeat="this.items" nb-value="`${index + 1}. ${item.title}`"></li>

<!-- Events with optional debounce -->
<input nb-event:input:300="this.search(event)" />

<!-- Components & containers with input passing -->
<my-card nb-in:title="this.headline" nb-event:save="this.onSave(data)"></my-card>
<div nb-container="@SettingsPanel" nb-in-ref:user="this.currentUser"></div>

<!-- Route slot binding -->
<div nb-container="%page"></div>

Documentation

Documentation & Feature Reference

In addition all features and details are available in the showcase app:

npm create nubond showcase showcase-app
cd showcase-app
npm start

Ecosystem

nuBond ships alongside a set of satellite packages:

| Package | Purpose | |---|---| | create-nubond | Project scaffolder — npm create nubond. Includes blank, native, and showcase templates. | | posthtml-value-interpolation | Parcel/PostHTML plugin enabling {{ expression }} text interpolation in templates. | | nuBond Language Service | VS Code extension: hover, completion, go-to-definition, rename, references, diagnostics, CodeLens, and a TypeScript plugin for cross-file template ↔ class navigation. |

License

MIT © Dmytro Tomayly