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

uilint-cli

v0.1.57

Published

CLI for UILint - AI-powered UI consistency checking

Readme

uilint-cli

Command-line interface for UILint - AI-powered UI consistency checking.

Overview

uilint-cli provides a powerful command-line interface for analyzing UI consistency, generating style guides, and validating your design system.

Installation

# Install globally
npm install -g uilint-cli

# Or use with npx
npx uilint-cli --help

Prerequisites

Ollama is required for LLM-powered features:

# Install Ollama, then pull the default model
ollama pull qwen3-coder:30b

The CLI can auto-start Ollama and auto-pull models if needed. On macOS, it can optionally offer to run brew install ollama (interactive TTY only).

Commands

Creating a style guide

UILint expects a style guide at .uilint/styleguide.md.

The recommended way to generate one is via Cursor:

npx uilint-cli install

Then run the Cursor command:

/genstyleguide

uilint scan - Scan for Issues

Analyze HTML for UI consistency issues:

# Scan an HTML file
uilint scan --input-file page.html

# Scan with a specific style guide
uilint scan --input-file page.html --styleguide ./design/styleguide.md

# JSON output (for CI/CD)
uilint scan --input-file page.html --output json

# From stdin
curl http://localhost:3000 | uilint scan

Note: The model used for LLM-based analysis defaults to the model configured in uilint-core. For ESLint-based semantic scanning (real-time linting), configure the model via the uilint/semantic rule options in your ESLint config.

Options:

| Option | Description | | ------------------------- | ------------------------------- | | -f, --input-file <path> | Path to HTML file to scan | | -j, --input-json <json> | JSON input with html and styles | | -s, --styleguide <path> | Path to style guide file | | -o, --output <format> | Output format: text or json |

Example output:

⚠️  Color inconsistency
   Similar blue colors should be consolidated
   Current: #3575E2  Expected: #3B82F6
   Suggestion: Use the primary blue #3B82F6 consistently

⚠️  Spacing issue
   Button padding doesn't follow 4px grid
   Current: 18px  Expected: 16px or 20px
   Suggestion: Use p-4 (16px) or p-5 (20px)

Analysis completed in 1234ms

uilint query - Query Style Guide

Ask questions about your style guide:

# Simple queries
uilint query "what colors are allowed?"
uilint query "what fonts should I use?"

# Complex queries (uses LLM)
uilint query "how should I style a primary button?"

# JSON output
uilint query "what colors?" --output json

Options:

| Option | Description | | ------------------------- | ------------------------------- | | -s, --styleguide <path> | Path to style guide file | | -o, --output <format> | Output format: text or json |

uilint update - Update Style Guide

Merge new styles into an existing style guide:

# Update from HTML file
uilint update --input-file new-page.html

# Use LLM to suggest updates
uilint update --input-file new-page.html --llm

CI/CD Integration

Use UILint in your CI pipeline:

# .github/workflows/uilint.yml
name: UILint Check

on: [push, pull_request]

jobs:
  uilint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: "20"

      - name: Install Ollama
        run: |
          curl -fsSL https://ollama.ai/install.sh | sh
          ollama pull qwen3-coder:30b

      - name: Start Ollama
        run: ollama serve &

      - name: Run UILint
        run: |
          curl http://localhost:3000 | npx uilint-cli scan --output json

Related Packages

Documentation

For full documentation, visit the UILint GitHub repository.

License

MIT