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

ngx-kanban-board

v0.5.3

Published

Drag-and-drop kanban board component for Angular - CDK-based, signals API, WIP limits, themeable via CSS custom properties.

Readme

ngx-kanban-board

npm version CI license Angular

Live Storybook demo

Drag-and-drop kanban board component for Angular - built on Angular CDK, with a signals-based API, WIP limits, and CSS-custom-property theming. Zero dependencies beyond @angular/cdk.

Features

  • Drag & drop across and within columns (Angular CDK DropListGroup)
  • WIP limits - columns highlight and badge in red when over their wipLimit
  • Signals API - input()/output() based, OnPush, works controlled or uncontrolled
  • Themeable - every color and radius is a --nkb-* CSS custom property (dark theme = a few variables)
  • Tested & documented - 95%+ unit-test coverage, Storybook stories for every state

Install

npm install ngx-kanban-board @angular/cdk

Usage

import { KanbanBoardComponent, KanbanColumn, CardMovedEvent } from 'ngx-kanban-board';

@Component({
  imports: [KanbanBoardComponent],
  template: `<ngx-kanban-board [columns]="columns" (cardMoved)="persist($event)" />`,
})
export class BoardPage {
  columns: KanbanColumn[] = [
    { id: 'todo', title: 'To Do', cards: [{ id: '1', title: 'First task' }] },
    { id: 'doing', title: 'Doing', wipLimit: 3, cards: [] },
    { id: 'done', title: 'Done', cards: [] },
  ];

  persist(e: CardMovedEvent) { /* e.card, e.fromColumnId, e.toColumnId, e.toIndex */ }
}

API

Inputs

| Input | Type | Default | Description | |---|---|---|---| | columns | KanbanColumn[] | required | Board model; mutated in place on drop | | disabled | boolean | false | Read-only board (dragging and editing off) | | showAddColumn | boolean | false | Ghost "+ Add column" button after the last column | | editableTitles | boolean | false | Inline column renaming (double-click or Enter on a title) | | showAddCard | boolean | false | "+ Add card" composer at the foot of each column |

Outputs

| Output | Payload | Fires | |---|---|---| | cardMoved | CardMovedEvent | After any drop (reorder or transfer) | | cardClicked | KanbanCard | Card click | | columnsChange | KanbanColumn[] | After any drop or rename, with the updated model | | addColumnRequested | void | Add-column button clicked - you create the column | | columnRenamed | ColumnRenamedEvent | Inline rename committed (columnId, title, previousTitle) | | cardAdded | CardAddedEvent | Composer committed (card, columnId) - the board created the card |

Managing columns

The board treats columns as its working model - column CRUD lives in your app, so persistence, permissions, and confirmation flows stay yours:

// respond to the built-in add button (showAddColumn)
onAddColumn() {
  this.columns.push({ id: crypto.randomUUID(), title: 'New column', cards: [] });
}

// rename from code (or let editableTitles handle it inline)
rename(id: string, title: string) {
  this.columns = this.columns.map(c => (c.id === id ? { ...c, title } : c));
}

// remove a column - decide what happens to its cards
remove(id: string) {
  const dying = this.columns.find(c => c.id === id);
  this.columns.find(c => c.id !== id)?.cards.push(...(dying?.cards ?? []));
  this.columns = this.columns.filter(c => c.id !== id);
}

Adding cards

Cards are different: with showAddCard, each column gets a Trello-style inline composer (click "+ Add card", type a title, Enter adds and keeps the composer open, Escape closes). The board creates the card itself with a generated id and reports it via cardAdded - swap in your own id there if you persist to a backend:

onCardAdded({ card, columnId }: CardAddedEvent) {
  this.api.createCard(columnId, card.title).subscribe(saved => (card.id = saved.id));
}

Theming

Override CSS custom properties on the host or any ancestor:

ngx-kanban-board {
  --nkb-bg: #0f172a;
  --nkb-column-bg: #1e293b;
  --nkb-card-bg: #273449;
  --nkb-ink: #e2e8f0;
  --nkb-accent: #38bdf8;
}

Full list in kanban-board.component.scss.

Development

npm start                          # demo app
ng test ngx-kanban-board           # unit tests (vitest)
ng run demo:storybook              # storybook

Requires Node 22+ and Angular 19+.

License

MIT