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

my-km-components

v0.0.14

Published

A collection of Angular components for my projects.

Readme

My KM Components Library

A library of reusable UI components for Angular applications.

Setup

Tip: In your styles.scss (or styles.css), make sure to include the ng-select theme:

@use '@ng-select/ng-select/themes/default.theme.css' as ng-select-theme;

Component Usage

<km-select>

A wrapper around ng-select providing integration with signal-based form controls.

Inputs / Models:

  • value (ModelSignal<string | number | null>)
  • items (required): Array of options to select from.
  • bindLabel (default: 'label'): Object property to use for label.
  • bindValue (default: 'value'): Object property to use for value.
  • multiple (default: true): Allows multiple selection.
  • searchable (default: true): Enables searching within the dropdown.
  • clearable (default: true): Enables clearing the value.
  • placeholder (default: 'Select...')
  • label (default: 'Label')
  • limit (default: 3): Max visible tags.
  • invalid, touched, disabled, readonly, errors: Control state and validation flags.

<km-input>

A standard input component with label and tooltip support.

Inputs / Models:

  • value (ModelSignal<string | null>)
  • inputType (default: 'text'): HTML input type.
  • placeholder (default: 'Εισάγετε μια τιμή')
  • label (default: 'Label')
  • showLabel (default: true): Whether to display the label.
  • formControlSize (default: 'sm'): Sizing class suffix for ng-bootstrap.
  • invalid, touched, disabled, required, errors: Control state flags.

<km-color-combo>

A color picker and input combo that automatically adjusts text contrast based on the background color.

Inputs / Models:

  • value (ModelSignal<string | null>)
  • label (default: 'Label')
  • showLabel (default: true): Whether to display the label.
  • invalid, touched, disabled, required, errors: Control state flags.

<km-input-group>

An input group component with an optional action button and icons.

Inputs / Models:

  • value (ModelSignal<number | null>)
  • type (default: 'text'): Input type.
  • placeholder (default: 'Εισάγετε τιμή')
  • label (default: 'Label')
  • addonText: Text for the input group addon label.
  • icon: Icon class for the action button.
  • buttonClass: Class name for the action button styling.
  • invalid, required, touched, disabled, readOnly, errors: Control state flags.

Outputs:

  • actionClicked: Emitted when the action button is clicked.

<km-modal>

A customizable modal layout wrapper component with standard actions (Save, Cancel, Close, Reset).

Inputs:

  • title (default: 'Τίτλος παραθύρου')
  • showSave (default: true): Shows the Save button.
  • showReset (default: false): Shows the Reset button.
  • showClose (default: 'Κλείσιμο'): Acts as standard close label toggle.
  • saveLabel (default: 'Αποθήκευση')
  • cancelLabel (default: 'Ακύρωση')
  • closeLabel (default: 'Κλείσιμο')
  • resetLabel (default: 'Επαναφορά')
  • saveDisabled (default: false): Disables the Save button when true.

Outputs:

  • save: Emitted on Save button click.
  • cancel: Emitted on Cancel button click.
  • reset: Emitted on Reset button click.
  • closeClicked: Emitted on Close button click.

<km-generic-card>

A card component that is collapsible, supports custom action buttons, and can emit events back.

Inputs / Signals:

  • panelTitle: The title text of the panel.
  • subtitle: The subtitle text.
  • visible (default: true): Initial visibility flag.
  • isCollapsed (Signal<boolean>): Signal controlling the collapse state.
  • isVisible (Signal<boolean>): Signal controlling the modal visibility state.
  • showBackButton (default: false): Shows a back button if true.
  • buttons: Card buttons model implementing KmGenericCardInterface.

Outputs:

  • clicked: Emitted on the main action button click.
  • backClicked: Emitted on the back button click.