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

vbomba-ui

v0.1.2

Published

Standalone Angular UI components with a small theme layer for light/dark apps.

Readme

vbomba-ui

Standalone Angular UI components with a small theme layer for light/dark apps.

Install

npm install vbomba-ui

Peer dependencies:

  • @angular/core, @angular/common, @angular/animations, @angular/router
  • @angular/material, @angular/cdk

License

MIT — see the LICENSE file in the repository root.

Theme Setup

Import the global vb style pack once in your app styles (tokens, bridge styles, and Lexend fonts).

@use 'vbomba-ui/theme/vb-global';

If you prefer manual setup, you can still import files separately:

@use 'vbomba-ui/theme/vb-color-tokens';
@use 'vbomba-ui/theme/vb-material-bridge';

Apply one of the theme classes to body:

<body class="app-light-theme">
  <app-root></app-root>
</body>

For runtime switching, initialize VbThemeService in your root component.

import { Component, inject } from '@angular/core';
import { VbThemeService } from 'vbomba-ui';

@Component({
  selector: 'app-root',
  standalone: true,
  template: '<router-outlet />',
})
export class AppComponent {
  private readonly theme = inject(VbThemeService);

  constructor() {
    this.theme.init();
  }
}

If you use VbAppShellComponent icons, VbThemeToggleComponent, VbButtonComponent with iconClass, or VbChipComponent, include Boxicons CSS in your host app (see the demo index.html).

Components

| Area | Symbols | | ---- | ------- | | Shell & theme | VbAppShellComponent, VbShellNavLink, VbThemeToggleComponent, VbThemeService | | Actions | VbButtonComponent (VbButtonVariant) | | Forms | VbInputComponent, VbTextareaComponent, VbSelectComponent, VbCheckboxComponent, VbToggleComponent | | Display & feedback | VbChipComponent, VbConnectionIndicatorComponent (VbConnectionStatus), VbLoaderComponent, VbPopupComponent | | Data | VbSimpleTableComponent, VbPaginatorComponent | | Conversational UI | VbChatbotComponent, VbChatbotMessage, VbChatbotHeaderStatus |

All public exports live in public-api.ts.

Examples

Buttons

Variants: filled, outlined, text, elevated, icon. Optional Boxicons on text buttons via iconClass / iconPosition; icon-only uses variant="icon" — set ariaLabel when there is no visible label.

<vb-button variant="filled" label="Save" />
<vb-button variant="outlined" label="Cancel" />
<vb-button variant="text" color="warn" label="Delete" />
<vb-button variant="filled" label="Save" iconClass="bx bx-save" />
<vb-button variant="outlined" label="Next" iconClass="bx bx-chevron-right" iconPosition="end" />
<vb-button variant="icon" color="primary" iconClass="bx bx-heart" ariaLabel="Favorites" />

Form controls

import { Component, model, signal } from '@angular/core';
import {
  VbCheckboxComponent,
  VbInputComponent,
  VbSelectComponent,
  VbTextareaComponent,
  VbToggleComponent,
  type VbSelectOption,
} from 'vbomba-ui';

@Component({
  standalone: true,
  imports: [
    VbCheckboxComponent,
    VbInputComponent,
    VbSelectComponent,
    VbTextareaComponent,
    VbToggleComponent,
  ],
  templateUrl: './profile-form.html',
})
export class ProfileFormComponent {
  readonly name = model('Ada Lovelace');
  readonly notes = model('');
  readonly role = model('eng');
  readonly notifications = model(true);
  readonly wifi = model(true);

  readonly roleOptions = signal<VbSelectOption[]>([
    { value: 'eng', label: 'Engineer' },
    { value: 'design', label: 'Designer' },
  ]);
}
<vb-input [(value)]="name" [maxLength]="32" counter placeholder="Display name" />
<vb-select [(value)]="role" [options]="roleOptions()" placeholder="Choose a role" />
<vb-checkbox [(checked)]="notifications" label="Enable notifications" />
<vb-toggle [(checked)]="wifi" label="Wi‑Fi" />
<vb-textarea [(value)]="notes" [maxLength]="160" counter placeholder="Notes" />

Chips

<vb-chip label="Angular" />
<vb-chip label="Draft" removable (remove)="onRemoveDraft()" />
<vb-chip removable removeAriaLabel="Remove filter">Beta</vb-chip>

Connection indicator

status: connected (green glow), disconnected (red), loading (pulsing amber). Optional size (px) and aria-label.

<vb-connection-indicator [status]="connStatus()" [size]="12" />

App shell

import { Routes } from '@angular/router';
import { VbAppShellComponent, type VbShellNavLink } from 'vbomba-ui';

const navLinks: VbShellNavLink[] = [
  { path: 'dashboard', label: 'Dashboard', icon: 'bx bx-home' },
  { path: 'settings', label: 'Settings', icon: 'bx bx-cog' },
];

export const routes: Routes = [
  {
    path: '',
    component: VbAppShellComponent,
    data: {
      appTitle: 'My app',
      navLinks,
    },
    children: [
      { path: '', pathMatch: 'full', redirectTo: 'dashboard' },
      // child routes...
    ],
  },
];

To control the shell horizontal loader reactively (e.g. from HTTP/interceptors), use VbShellMainLoaderService. Runtime overrides take precedence over route.data.mainLoader.

import { Injectable, inject } from '@angular/core';
import { VbShellMainLoaderService } from 'vbomba-ui';

@Injectable({ providedIn: 'root' })
export class HttpLoaderBridge {
  private readonly shellLoader = inject(VbShellMainLoaderService);

  onRequestStart(): void {
    this.shellLoader.show({ ariaLabel: 'Loading data...' });
  }

  onRequestDone(): void {
    this.shellLoader.hide();
  }

  resetToRouteDefaults(): void {
    this.shellLoader.clear();
  }
}

Table with pagination

<vb-simple-table [columns]="columns()" [rows]="rows()" [pageSize]="10" [(page)]="page" pagination />

Popup

<vb-popup [(open)]="open" title="Confirm action" subtitle="Review before continuing.">
  <p>This content is projected into the popup body.</p>

  <div vbPopupActions>
    <vb-button variant="text" label="Cancel" (click)="open.set(false)" />
    <vb-button variant="filled" label="Apply" (click)="open.set(false)" />
  </div>
</vb-popup>

Chatbot (streaming + latency + sources)

VbChatbotMessage supports streamed assistant replies and optional metadata:

  • streaming?: boolean - marks a message currently receiving tokens/chunks.
  • responseLatencySeconds?: number - used for average + last-reply latency indicators.
  • sources?: VbChatbotSource[] - compact source chips (title link + chunk type).

Use chatStatus to show a status pill in the header (idle, streaming, thinking, busy, error, offline).

import { Component, signal } from '@angular/core';
import {
  VbChatbotComponent,
  type VbChatbotHeaderStatus,
  type VbChatbotMessage,
} from 'vbomba-ui';

@Component({
  standalone: true,
  imports: [VbChatbotComponent],
  templateUrl: './chat-demo.html',
})
export class ChatDemoComponent {
  readonly status = signal<VbChatbotHeaderStatus>({ label: 'Streaming…', tone: 'streaming' });
  readonly loading = signal(false);
  readonly messages = signal<VbChatbotMessage[]>([
    {
      role: 'assistant',
      text: 'Streaming tokenized response from backend...',
      streaming: true,
    },
  ]);
}
<vb-chatbot
  title="Assistant"
  [chatStatus]="status()"
  [messages]="messages()"
  [loading]="loading()"
  loadingText="Assistant is typing..."
/>

Build From Source

npx ng build vbomba-ui

The package output is written to dist/vbomba-ui.