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

@knkcs/anker

v0.0.4

Published

UI component library for the knk software group

Readme

@knkcs/anker

The UI component library for the knk software group. Provides a shared design system, primitives, atoms, form controls, and feedback components across all knkCMS microservices.

Stack

  • React 19 + TypeScript
  • Chakra UI v3 (theme system, recipes, slot recipes)
  • React Hook Form + Zod (form state + validation)
  • Lucide React (icons)
  • Storybook (documentation)

Installation

npm install @knkcs/anker

Usage

import { Provider } from "@knkcs/anker/primitives";

function App() {
  return (
    <Provider>
      <YourApp />
    </Provider>
  );
}

The Provider defaults to anker's theme system. To override with a custom system, pass it via the system prop.

Imports by layer

// Design tokens and Chakra system
import system from "@knkcs/anker/theme";

// Chakra UI wrappers with consistent defaults
import { Accordion, Alert, Avatar, Breadcrumb, Menu, Popover, Skeleton, Spinner, Tooltip } from "@knkcs/anker/primitives";

// Higher-level composites (card, drawer, modal, pagination, stepper, table, timeline)
import { Card, Drawer, Modal, Pagination, Stepper, Timeline } from "@knkcs/anker/components";

// Small reusable units (persona, badges, search, datetime, clipboard, data list)
import { StatusBadge, Persona, SearchInput, ClipboardButton, DataList } from "@knkcs/anker/atoms";

// Form controls (React Hook Form + Zod)
import { InputField, ArrayField, FormField } from "@knkcs/anker/forms";

// Feedback patterns (confirm modal)
import { ConfirmModalProvider, useConfirmModal } from "@knkcs/anker/feedback";

Brand Colors

The theme includes both UI-optimized color scales (primary, secondary, gray) and exact brand guideline colors from the knk Brand Guidelines (October 2021).

| Token | HEX | Use | |-------|-----|-----| | primary.500 | #2087d7 | UI blue — buttons, links, focus rings | | secondary.500 | #e9580c | UI orange — matches brand orange | | brand.blue | #004576 | Exact brand blue — logos, headers, branding | | brand.navy | #0f395d | Dark blue variant | | brand.light-blue | #6fa7d1 | Light blue variant | | brand.orange | #e9580c | Brand orange (same as secondary.500) | | brand.gold | #f4b235 | Brand gold accent | | brand.light-gray | #f2f2f2 | Brand neutral background |

The UI primary blue intentionally differs from the brand guideline blue. The brand blue (#004576) is a deep navy designed for print materials; the UI blue (#2087d7) is brighter for web accessibility and matches the existing Core application.

Notable Component Props

| Component | Prop | Description | |-----------|------|-------------| | Modal, Drawer | loading | Shows spinner on save button during async operations | | Table, ArrayField | emptyState | Content to display when there are no items | | Card | title, header, footer | Slot props for structured card layout | | Persona | interactive | Adds hover state and pointer cursor | | TypeBadge | colorPalette | Chakra color palette for visual differentiation | | FormField | description | Persistent description that shows alongside errors |

Font

The theme uses Inter as its primary typeface. Install the variable font in your app:

npm install @fontsource-variable/inter

Then import it in your app entry point:

import "@fontsource-variable/inter";

If Inter is not installed, the theme gracefully falls back to the system font stack (-apple-system, system-ui, sans-serif).

Accessibility

  • Reduced motion — The theme globally disables animations and transitions when the user prefers reduced motion (prefers-reduced-motion: reduce)
  • RTL-ready — All components use logical CSS properties (marginInlineStart, insetInlineEnd) instead of physical direction properties
  • Form ARIAFormField automatically links inputs to helper text and errors via aria-describedby, errors are announced with aria-live="polite"
  • Touch targets — All interactive elements meet the WCAG 44×44px minimum touch target size
  • Stepper — Active step uses aria-current="step"

Breaking Changes

  • FactBox: The childs prop on FactBoxAction has been renamed to items

Development

npm install
npm run dev          # Storybook dev server
npm run build        # Build library with tsup
npm run lint         # Biome
npm run typecheck    # tsc --noEmit

Documentation

Interactive component docs are available at https://knkcs.github.io/anker/

License

Proprietary - knk Gruppe. See LICENSE for details.