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 🙏

© 2025 – Pkg Stats / Ryan Hefner

variant-ui

v1.0.1

Published

MCP server for rapid UI iteration - create and compare multiple UI variants side-by-side

Readme

variant-ui (Active Development)

MCP server for rapid UI iteration. Create, test, and compare multiple UI variants side-by-side.

What it does

Spin up isolated git worktrees to test different UI approaches simultaneously. Each variant gets its own port, its own dependencies, and its own branch. Compare them in real-time, merge the winner.

Review UI

Prerequisites

  • Node.js 18+
  • Git
  • npm (currently only npm is supported)
  • MCP-compatible client (tested with Claude Code)

Setup

  1. Clone and build:
git clone [email protected]:btree1970/variant-ui.git
cd variant-ui
npm install
npm run build
  1. Add to your MCP client:

Claude Code

# Add with default port 5400
claude mcp add variant-ui node <path-to-variant-ui>/dist/index.js

# Or specify a custom port
claude mcp add variant-ui node <path-to-variant-ui>/dist/index.js --env VARIANT_UI_PORT=8080

Important: Add variant-ui to your project settings, not global settings. This tool is designed to run only when you're working on a specific project.

Usage

Pro tip: For the best experience, enable auto-approval for file edits in the variant directories. This lets your AI agent work seamlessly without constant permission prompts.

Once added to your MCP client, you can use these commands in any conversation:

Example prompts

Test different design approaches:

Create and preview 3 hero section variants: one with a video background, 
one with a static image, and come up with a third creative approach

Explore design systems:

Create 5 variants testing different visual styles for my dashboard: 
glassmorphism, neumorphism, flat design, material design, and brutalist. 
Try different color schemes and typography for each

Let AI suggest improvements:

I need to improve my checkout flow. Create and preview 3 different 
variants with your best ideas for reducing cart abandonment

Compare specific patterns:

Test sidebar navigation vs top navbar. Create both variants and 
show me how they look on mobile and desktop

Check what's running:

What variants do I have running?

Then open http://localhost:5400 (or your custom port) to see all your variants side-by-side in the review UI.

Features

  • Isolated variants - Each variant runs in its own git worktree
  • Auto port assignment - No port conflicts between variants and projects
  • Live preview - Start/stop dev servers for each variant
  • Review UI - See all variants at a glance
  • Real-time updates - SSE-powered activity log
  • Framework detection - Works with Next.js (more coming)
  • Package manager - Currently supports npm (yarn/pnpm coming soon)

How it works

Variants are created as git worktrees in your temp directory. Each variant:

  • Gets a unique branch (ui-var/001-description)
  • Runs its own dev server (when previewing)
  • Can be merged back to main when ready

Feedback

This project is in active development. Found a bug? Have a feature request?

  • Open an issue on GitHub
  • Share what frameworks you'd like supported

License

MIT