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

ui-ux-engineer-agent

v1.0.1

Published

Powerful UI/UX Engineer AI agent built with LangChain, LangGraph, and Groq LLM. Analyzes designs, generates components, audits accessibility, creates design systems, and provides expert UI/UX guidance.

Readme

🎨 UI/UX Engineer Agent

A powerful AI-powered UI/UX Engineer agent built with LangChain, LangGraph, and Groq's blazing-fast LLM inference (Llama 3.3 70B). This agent operates as a senior-level UI/UX engineer, capable of design analysis, component generation, accessibility auditing, design system creation, and expert UX review.

⚡ Powered by Groq (Free Tier)

Groq's LPU chips deliver 250+ tokens/second — making multi-step agent workflows feel nearly instant. The free tier includes access to Llama 3.3 70B with generous rate limits.

🏗️ Architecture

Built as a LangGraph directed graph with 7 specialized nodes:

┌─────────────────┐
│  Task Analyzer   │  ← Understands & decomposes the request
└────────┬─────────┘
         │
  ┌──────┴──────┐     ← Conditional routing based on mode
  ▼      ▼      ▼
┌──────┐┌──────┐┌──────┐┌──────┐┌──────┐
│Design││Compo-││A11y  ││Design││ UX   │
│Analy-││nent  ││Audit ││System││Review│
│sis   ││Gen   ││      ││      ││      │
└──┬───┘└──┬───┘└──┬───┘└──┬───┘└──┬───┘
   └───────┴───────┴───────┴───────┘
                   │
            ┌──────┴──────┐
            │ Synthesizer │  ← Combines all outputs
            └─────────────┘

📦 Installation

# Install globally
npm install -g ui-ux-engineer-agent

# Or clone and install locally
cd ui_ux_engineer_agent
npm install
npm link

🔧 Setup

# Interactive setup (stores API key in .env)
ui-ux-engineer setup

Get your free Groq API key at: https://console.groq.com/keys

🚀 Usage

# Full analysis (all nodes)
ui-ux-engineer "Design a modern dashboard with data visualization cards"

# Generate components only
ui-ux-engineer "Create a responsive navigation bar with dropdown menus" --mode generate

# Accessibility audit
ui-ux-engineer "Audit this login form for WCAG 2.2 compliance" --mode audit

# Design system creation
ui-ux-engineer "Create a design system for a fintech application" --mode system

# UX review
ui-ux-engineer "Review the checkout flow for an e-commerce app" --mode review

# Design analysis only
ui-ux-engineer "Analyze the layout for a social media feed" --mode analyze

Options

| Flag | Description | Default | |------|-------------|---------| | --mode | analyze \| generate \| audit \| system \| review \| full | full | | --framework | react \| vue \| svelte \| html | react | | --style | tailwind \| css \| scss \| styled-components | tailwind | | --output <file> | Save output to a file | — | | --model <model> | Groq model to use | llama-3.3-70b-versatile | | --verbose | Show detailed agent reasoning | false |

🧠 Agent Capabilities

1. Design Analysis

  • Visual hierarchy evaluation
  • Layout strategy (grid, spacing, breakpoints)
  • Typography and color recommendations
  • Interaction pattern design
  • Responsive design strategy
  • Edge case handling (empty, error, loading states)

2. Component Generation

  • Production-ready code for React, Vue, Svelte, or HTML
  • Full accessibility (ARIA, keyboard nav, focus management)
  • Responsive mobile-first design
  • All interactive states handled
  • CSS custom properties for theming
  • Comprehensive code comments

3. Accessibility Audit

  • WCAG 2.2 AA/AAA compliance check
  • Severity-rated findings with fix code
  • Screen reader optimization
  • Keyboard navigation flow
  • Accessibility score (0-100)

4. Design System Architecture

  • Complete design token set (colors, typography, spacing, shadows)
  • Light/dark theme support
  • Component API specifications
  • Layout system and typography scale
  • Usage guidelines and documentation

5. UX Review

  • Nielsen's 10 Usability Heuristics evaluation
  • Cognitive load analysis
  • Fitts's Law, Hick's Law, Miller's Law assessment
  • Prioritized action plan by impact/effort ratio

🔧 Available Models

| Model | Speed | Quality | Best For | |-------|-------|---------|----------| | llama-3.3-70b-versatile | Fast | Highest | Default — best overall | | llama-3.3-70b-specdec | Fastest | High | Quick iterations | | llama-3.1-8b-instant | Instant | Good | Simple tasks | | mixtral-8x7b-32768 | Fast | High | Long context tasks |

📁 Project Structure

ui_ux_engineer_agent/
├── bin/
│   └── cli.js          # CLI entry point
├── src/
│   ├── index.js        # Main agent runner
│   ├── graph.js        # LangGraph definition
│   ├── state.js        # Agent state (Annotation)
│   ├── nodes.js        # Specialist graph nodes
│   ├── prompts.js      # Expert prompt templates
│   ├── llm.js          # Groq LLM configuration
│   └── setup.js        # Interactive setup
├── package.json
└── README.md

🤝 Programmatic Usage

const { runAgent } = require("ui-ux-engineer-agent");

const result = await runAgent("Design a card component for a recipe app", {
  mode: "generate",
  framework: "react",
  style: "tailwind",
  model: "llama-3.3-70b-versatile",
  onProgress: (step, message) => console.log(`[${step}] ${message}`),
});

console.log(result.output);
console.log(`Steps: ${result.stepsCompleted}`);
console.log(`Nodes: ${result.nodesVisited.join(" → ")}`);

📄 License

MIT