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

webnauts-ng

v1.0.5

Published

Angular UI component library with reusable components, directives, services and SCSS styles

Readme

WebnautsNg

Angular UI component library with reusable components, directives, services and SCSS styles built for Angular 19+.

Installation

Install the library along with all required peer dependencies:

npm install webnauts-ng @ng-select/[email protected] [email protected] [email protected] [email protected] [email protected]

Note: The library requires Angular 19.2.0+ and @angular/cdk as peer dependencies.

Usage

Importing Components

All components are standalone and can be imported directly:

import { Component } from '@angular/core';
import { AvatarComponent, BadgeComponent, DataTableComponent } from 'webnauts-ng';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [AvatarComponent, BadgeComponent, DataTableComponent],
  template: `
    <wbng-avatar [url]="avatarUrl" [size]="48"></wbng-avatar>
    <wbng-badge [label]="'New'" [type]="'success'"></wbng-badge>
  `
})
export class AppComponent {
  avatarUrl = 'path/to/avatar.jpg';
}

Importing Styles

Import the main SCSS file in your global styles:

// In your styles.scss
@use 'webnauts-ng/src/styles/wbng_styles.scss';

Or use the older @import syntax:

@import 'webnauts-ng/src/styles/wbng_styles.scss';

You can also import specific style files:

@use 'webnauts-ng/src/styles/wbng_components.scss';
@use 'webnauts-ng/src/styles/wbng_themes.scss';
@use 'webnauts-ng/src/styles/wbng_layouts.scss';

Available Components

Form Components

  • FormInputComponent (wbng-form-input) - Input field with validation
  • FormTextareaComponent (wbng-form-textarea) - Textarea with validation
  • FormCheckboxComponent (wbng-form-checkbox) - Checkbox input
  • FormRadioComponent (wbng-form-radio) - Radio button group
  • FormSelectComponent (wbng-form-select) - Dropdown select with ng-select
  • FormSwitchComponent (wbng-form-switch) - Toggle switch
  • FormDatePickerComponent (wbng-form-date-picker) - Date picker
  • FormColorPickerComponent (wbng-form-color-picker) - Color picker
  • FormFieldErrorsComponent (wbng-form-field-errors) - Form validation errors

UI Components

  • AvatarComponent (wbng-avatar) - User avatar display
  • BadgeComponent (wbng-badge) - Label/badge indicator
  • DotBadgeComponent (wbng-dot-badge) - Dot indicator with tooltip
  • SpinnerComponent (wbng-spinner) - Loading spinner
  • TabsComponent (wbng-tabs) - Tab navigation
  • SearchComponent (wbng-search) - Search input
  • DataTableComponent (wbng-data-table) - Advanced data table with sorting, pagination
  • ConfirmationModalComponent (wbng-confirmation-modal) - Confirmation dialog
  • NotificationsHolderComponent (wbng-notifications-holder) - Toast notifications
  • TextEditorComponent (wbng-text-editor) - Rich text editor with Quill

Navigation Components

  • MainMenuComponent (wbng-main-menu) - Main navigation menu
  • SubmenuComponent (wbng-submenu) - Submenu component

Filter Components

  • FilterCheckboxComponent (wbng-filter-checkbox) - Checkbox filter dropdown
  • FilterDaterangeComponent (wbng-filter-daterange) - Date range filter
  • DateRangeInputComponent (wbng-date-range-input) - Date range input

Directives

import { TooltipDirective, ClickStopPropagationDirective } from 'webnauts-ng';

// Usage
@Component({
  imports: [TooltipDirective],
  template: `
    <button [wbng-tooltip]="'Click me!'" direction="top">Hover me</button>
  `
})

Available Directives:

  • TooltipDirective - Custom tooltip
  • ClickStopPropagationDirective - Stop click propagation
  • TableColDirective - Table column directive
  • CustomTooltipDirective - Advanced tooltip with templates
  • CustomTooltipTriggerDirective - Tooltip trigger

Services

NotificationService

import { NotificationService } from 'webnauts-ng';

constructor(private notificationService: NotificationService) {}

showNotification() {
  this.notificationService.success('Success!', 'Operation completed successfully');
  this.notificationService.error('Error!', 'Something went wrong');
  this.notificationService.warning('Warning!', 'Please check your input');
  this.notificationService.info('Info', 'New update available');
}

Pipes

import { SafeHtmlPipe, FilterByFieldPipe } from 'webnauts-ng';
  • SafeHtmlPipe - Sanitize HTML content
  • FilterByFieldPipe - Filter arrays by field value

Utilities

import { paginate, endOfMonth, startOfMonth } from 'webnauts-ng';

// Pagination
const paginatedData = paginate(data, page, perPage);

// Date functions
const monthEnd = endOfMonth(new Date());
const monthStart = startOfMonth(new Date());

Interfaces

import { ITabItem, IRadioItem, IDataTable, ISelectItem } from 'webnauts-ng';

Example: Data Table

import { DataTableComponent, IDataTable } from 'webnauts-ng';

@Component({
  imports: [DataTableComponent],
  template: `
    <wbng-data-table
      [data]="tableData"
      [columns]="columns"
      [pagination]="true"
      (onRowClick)="handleRowClick($event)">
    </wbng-data-table>
  `
})
export class MyComponent {
  tableData: IDataTable = {
    rows: [...],
    total: 100
  };

  columns = [
    { field: 'name', header: 'Name' },
    { field: 'email', header: 'Email' }
  ];
}

Theming

The library includes pre-built SCSS themes and variables:

// Override default variables
$primary-color: #007bff;
$secondary-color: #6c757d;

@use 'webnauts-ng/src/styles/wbng_variables.scss';
@use 'webnauts-ng/src/styles/wbng_themes.scss';

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions, please use the GitHub issue tracker.

Running unit tests

To execute unit tests with the Karma test runner, use the following command:

ng test

Running end-to-end tests

For end-to-end (e2e) testing, run:

ng e2e

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.