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

@gongfu/kanban

v0.2.0

Published

A modern kanban board SDK with drag-and-drop support

Readme

@kongfu/kanban

A modern, flexible kanban board SDK for React applications with drag-and-drop support.

npm version License: MIT

Features

  • 🎯 Drag & Drop - Smooth drag and drop powered by @dnd-kit
  • 🎨 Customizable - Flexible theming and component customization
  • 📱 Responsive - Works on desktop and mobile devices
  • 🌍 i18n Ready - Built-in support for multiple languages
  • Performance - Optimized rendering with Zustand state management
  • 🔍 Search & Filter - Built-in search and filtering capabilities
  • 📊 Statistics - Real-time task statistics
  • 🎭 Multiple Views - Board, list, calendar, and timeline views (coming soon)
  • TypeScript - Full TypeScript support

Installation

npm install @kongfu/kanban
# or
yarn add @kongfu/kanban
# or
pnpm add @kongfu/kanban

Quick Start

import { Kanban } from '@kongfu/kanban';
import '@kongfu/kanban/styles.css';

const columns = [
  { id: 'todo', title: 'To Do', order: 0 },
  { id: 'in-progress', title: 'In Progress', order: 1 },
  { id: 'done', title: 'Done', order: 2 },
];

const tasks = [
  {
    id: '1',
    title: 'Create kanban board',
    status: 'todo',
    order: 0,
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: '2',
    title: 'Add drag and drop',
    status: 'in-progress',
    order: 0,
    priority: 'high',
    createdAt: new Date(),
    updatedAt: new Date(),
  },
];

function App() {
  return (
    <div style={{ height: '600px' }}>
      <Kanban
        columns={columns}
        tasks={tasks}
        onTaskCreate={(task) => console.log('Create task:', task)}
        onTaskUpdate={(id, updates) => console.log('Update task:', id, updates)}
        onTaskMove={(id, from, to, order) => console.log('Move task:', id, from, to, order)}
      />
    </div>
  );
}

Advanced Usage

Custom Card Rendering

<Kanban
  columns={columns}
  tasks={tasks}
  renderCard={(task) => (
    <div className="custom-card">
      <h3>{task.title}</h3>
      <p>{task.description}</p>
      <div className="custom-footer">
        {task.assignee?.name}
      </div>
    </div>
  )}
/>

With Filters

const filters = [
  {
    id: 'priority',
    label: 'Priority',
    type: 'select',
    field: 'priority',
    options: [
      { label: 'Low', value: 'low' },
      { label: 'Normal', value: 'normal' },
      { label: 'High', value: 'high' },
      { label: 'Urgent', value: 'urgent' },
    ],
  },
  {
    id: 'assignee',
    label: 'Assignee',
    type: 'multiselect',
    field: 'assignee',
    options: [
      { label: 'John Doe', value: 'john' },
      { label: 'Jane Smith', value: 'jane' },
    ],
  },
];

<Kanban
  columns={columns}
  tasks={tasks}
  filters={filters}
  showFilters={true}
  showSearch={true}
/>

Column Limits

const columnsWithLimits = [
  { id: 'todo', title: 'To Do', order: 0 },
  { id: 'in-progress', title: 'In Progress', order: 1, limit: 3 },
  { id: 'done', title: 'Done', order: 2 },
];

<Kanban
  columns={columnsWithLimits}
  tasks={tasks}
/>

Using the Store

import { useKanbanStore } from '@kongfu/kanban';

function KanbanControls() {
  const {
    tasks,
    selectedTasks,
    bulkUpdateTasks,
    bulkDeleteTasks,
    clearSelection,
  } = useKanbanStore();

  const handleBulkComplete = () => {
    bulkUpdateTasks(selectedTasks, { status: 'done' });
    clearSelection();
  };

  const handleBulkDelete = () => {
    if (confirm('Delete selected tasks?')) {
      bulkDeleteTasks(selectedTasks);
      clearSelection();
    }
  };

  return (
    <div>
      {selectedTasks.length > 0 && (
        <>
          <button onClick={handleBulkComplete}>
            Mark as Done ({selectedTasks.length})
          </button>
          <button onClick={handleBulkDelete}>
            Delete ({selectedTasks.length})
          </button>
        </>
      )}
    </div>
  );
}

Dark Mode

<Kanban
  columns={columns}
  tasks={tasks}
  mode="dark"
  theme={{
    primaryColor: '#3b82f6',
    backgroundColor: '#1f2937',
    cardBackgroundColor: '#374151',
    textColor: '#f9fafb',
    borderColor: '#4b5563',
  }}
/>

API Reference

Kanban Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | columns | KanbanColumn[] | [] | Column definitions | | tasks | KanbanTask[] | [] | Initial tasks | | mode | 'light' \| 'dark' | 'light' | Color mode | | readOnly | boolean | false | Disable editing | | showAddCard | boolean | true | Show add task button | | showColumnActions | boolean | true | Show column actions | | showCardActions | boolean | true | Show card actions | | showFilters | boolean | true | Show filter button | | showSearch | boolean | true | Show search input | | showStats | boolean | true | Show statistics | | cardHeight | 'compact' \| 'normal' \| 'expanded' | 'normal' | Card display size | | animation | boolean | true | Enable animations | | theme | KanbanTheme | - | Custom theme | | locale | 'en' \| 'zh-CN' | 'en' | UI language | | filters | FilterConfig[] | - | Filter configurations | | onTaskCreate | (task, columnId) => Promise<KanbanTask> | - | Task creation handler | | onTaskUpdate | (taskId, updates) => Promise<void> | - | Task update handler | | onTaskDelete | (taskId) => Promise<void> | - | Task deletion handler | | onTaskMove | (taskId, from, to, order) => Promise<void> | - | Task move handler | | onTaskClick | (task) => void | - | Task click handler | | renderCard | (task) => ReactNode | - | Custom card renderer | | renderColumn | (column, children) => ReactNode | - | Custom column renderer |

Task Interface

interface KanbanTask {
  id: string;
  title: string;
  description?: string;
  status: string;
  priority?: 'low' | 'normal' | 'high' | 'urgent';
  assignee?: {
    id: string;
    name: string;
    avatar?: string;
  };
  tags?: Array<{
    id: string;
    name: string;
    color: string;
  }>;
  dueDate?: Date;
  createdAt: Date;
  updatedAt: Date;
  order: number;
  subtasks?: Array<{
    id: string;
    title: string;
    completed: boolean;
  }>;
  attachments?: Array<{
    id: string;
    name: string;
    url: string;
    type: string;
    size: number;
  }>;
}

Column Interface

interface KanbanColumn {
  id: string;
  title: string;
  color?: string;
  icon?: ReactNode;
  limit?: number;
  collapsed?: boolean;
  order: number;
}

Styling

The component comes with default styles that you can import:

import '@kongfu/kanban/styles.css';

You can also customize the appearance using:

  1. CSS Variables - Override default CSS variables
  2. Theme Object - Pass a custom theme object
  3. Custom Classes - Add your own CSS classes
  4. Render Props - Complete control over rendering

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

License

MIT © Kongfu Team