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

@foundrykit/components

v2.1.1

Published

A collection of pre-built, styled React components built on top of `@foundrykit/primitives`. These components provide ready-to-use UI elements with consistent styling and behaviour.

Readme

@foundrykit/components

A collection of pre-built, styled React components built on top of @foundrykit/primitives. These components provide ready-to-use UI elements with consistent styling and behaviour.

Features

  • Pre-styled components - Ready-to-use with consistent design
  • Built on primitives - Leverages @foundrykit/primitives for accessibility
  • TypeScript support - Full type safety with comprehensive definitions
  • Customizable - Easy to override styles and behaviour
  • Consistent API - Uniform component patterns across the library

Installation

pnpm add @foundrykit/components

Available Components

Data Entry

  • Calendar - Date picker calendar component
  • Date Picker - Complete date selection interface
  • Search Bar - Search input with suggestions and filters

Navigation

  • Command - Command palette interface for keyboard navigation
  • Pagination - Page navigation with configurable page sizes

Usage

Basic Example

import { Calendar } from '@foundrykit/components/calendar';
import { DatePicker } from '@foundrykit/components/date-picker';
import { SearchBar } from '@foundrykit/components/search-bar';

function MyApp() {
  return (
    <div>
      <SearchBar
        placeholder='Search...'
        onSearch={query => console.log(query)}
      />

      <DatePicker onDateSelect={date => console.log(date)} />

      <Calendar mode='single' onSelect={date => console.log(date)} />
    </div>
  );
}

Component Configuration

Each component can be configured through its config file:

import { Calendar } from '@foundrykit/components/calendar'

// Use default configuration
<Calendar />

// Override with custom configuration
<Calendar
  className="custom-calendar"
  disabled={false}
  mode="range"
/>

Styling

Components come with default styling but can be customized:

import { SearchBar } from '@foundrykit/components/search-bar';
import { cn } from '@foundrykit/utils';

function CustomSearchBar({ className, ...props }) {
  return (
    <SearchBar
      className={cn('rounded-lg border-2 border-blue-500', className)}
      {...props}
    />
  );
}

Component Structure

Each component is organized as follows:

component/
├── config.ts          # Component configuration and variants
├── index.tsx          # Main component exports
├── variants-grid.tsx  # Component variants for documentation
└── README.md          # Component-specific documentation

Dependencies

  • @foundrykit/primitives - Base UI primitives
  • @foundrykit/types - TypeScript type definitions
  • @foundrykit/utils - Utility functions
  • React - UI framework
  • date-fns - Date manipulation utilities
  • cmdk - Command palette functionality

Integration with Primitives

Components are built on top of primitives for maximum flexibility:

import { Calendar } from '@foundrykit/components/calendar'
import { Calendar as CalendarPrimitive } from '@foundrykit/primitives/calendar'

// Use the pre-styled component
<Calendar />

// Or use the primitive directly for custom styling
<CalendarPrimitive className="my-custom-styles" />

Customization

Theme Integration

Components work with your existing theme system:

import { SearchBar } from '@foundrykit/components/search-bar';

// Components automatically use your theme tokens
<SearchBar className='bg-background text-foreground' />;

Variant System

Many components support variants for different use cases:

import { SearchBar } from '@foundrykit/components/search-bar'

<SearchBar variant="default" />
<SearchBar variant="outline" />
<SearchBar variant="ghost" />

Accessibility

All components inherit accessibility features from their underlying primitives:

  • Keyboard navigation
  • Screen reader support
  • Focus management
  • ARIA attributes
  • Color contrast compliance

Contributing

When adding new components:

  1. Build on existing primitives when possible
  2. Follow the established component structure
  3. Include comprehensive TypeScript definitions
  4. Add usage examples and documentation
  5. Ensure accessibility compliance
  6. Update this README

License

MIT