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

rafters

v0.2.2

Published

AI-first design intelligence CLI for generating semantic design tokens and components

Readme

Rafters CLI

The AI-first design intelligence CLI for modern React applications.

Overview

Rafters CLI bridges traditional component libraries with AI-driven design reasoning. Install components with embedded cognitive load intelligence, generate semantic design tokens, and integrate directly with AI agents for intelligent design decisions.

Installation

No installation required! Always use the latest version with npx:

npx rafters init

Quick Start

# Initialize Rafters in your React project
npx rafters init

# Add components with intelligence metadata
npx rafters add button card dialog

# List installed components and status
npx rafters list

# Start AI agent integration server
npx rafters mcp

Commands

npx rafters init

Initialize Rafters in your project with smart framework detection.

npx rafters init [options]

Options:

  • --yes, -y - Skip prompts and use defaults
  • --config <file> - Use custom configuration file

What it does:

  • Detects your framework (Next.js, Vite, Remix, CRA)
  • Configures Tailwind CSS v4 integration
  • Creates .rafters/ directory with manifests
  • Generates default design tokens
  • Installs core dependencies

npx rafters add

Add components from the Rafters registry with intelligence metadata.

npx rafters add <components...> [options]

Options:

  • --force, -f - Overwrite existing components

Examples:

npx rafters add button
npx rafters add card dialog sheet --force

What it does:

  • Fetches components from registry
  • Installs with dependency management
  • Transforms imports for your project structure
  • Tracks components with cognitive load ratings

npx rafters list

Show installed components and registry status.

npx rafters list [options]

Options:

  • --details, -d - Show detailed component information

Output includes:

  • Installation status (installed/available)
  • Component intelligence metadata
  • Cognitive load ratings
  • Version information

npx rafters clean

Clean Rafters configuration and installed components.

npx rafters clean [options]

Options:

  • --force, -f - Skip confirmation prompts

npx rafters mcp

Start Model Context Protocol server for AI agent integration.

npx rafters mcp

AI Tools Available:

  • Component intelligence queries
  • Token registry access
  • Cognitive load validation
  • Color combination analysis
  • Design decision reasoning

Configuration

Rafters creates a .rafters/config.json file:

{
  "version": "0.1.1",
  "componentsDir": "./src/components/ui",
  "packageManager": "pnpm",
  "registry": "https://rafters.realhandy.tech/registry",
  "cssFile": "globals.css",
  "tailwindVersion": "v4",
  "tokenFormat": "tailwind"
}

Component Intelligence

Every Rafters component includes embedded intelligence metadata:

  • Cognitive Load: Measured complexity for user attention
  • Trust Levels: Accessibility and reliability scores
  • Usage Patterns: When and how to use components
  • Design Reasoning: Why specific choices were made

AI Agent Integration

The MCP server enables AI agents to:

  • Query component intelligence in real-time
  • Access design token registry
  • Validate design decisions
  • Reason about cognitive load and accessibility
  • Generate context-aware component suggestions

Framework Support

Rafters supports React 18+ projects with:

  • Next.js (App Router, Pages Router)
  • Vite + React
  • Remix
  • Create React App
  • React Router

Requirements

  • Node.js: >= 22.0.0
  • Package Manager: npm, yarn, or pnpm
  • React: >= 19.0.0
  • TypeScript: Recommended

Development

# Clone the monorepo
git clone https://github.com/real-handy/rafters

# Install dependencies
pnpm install

# Build CLI
pnpm --filter=@rafters/cli build

# Run locally
node apps/cli/dist/bin.js --help

# Test with npx locally
npx . init --help

License

MIT License - see LICENSE file for details.