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

uiplug-agent

v0.1.0

Published

A terminal coding agent powered by Claude, built for UIPlug UI consistency

Downloads

18

Readme

 

UIPlug Agent

A terminal coding assistant powered by Claude, built for UIPlug UI consistency.

  UIPlug Agent
  AI coding assistant for UI consistency

✓ Connected to UIPlug

────────────────────────────────────────────────────────────────────────
❯ search for a button component
────────────────────────────────────────────────────────────────────────

 

Requirements

 

Setup

Install dependencies:

npm install

On first run the agent will prompt you for your API keys and save them to ~/.uiplug/config.json:

Enter your UIPlug API key: ...
Enter your Anthropic API key: ...
✓ Keys saved to ~/.uiplug/config

 

Usage

Start the agent in dev mode:

npm run dev

Or build and run:

npm run build
node dist/index.js

Type your request at the prompt. Type exit or quit to leave.

 

What It Does

The agent gathers your workspace context (git branch, framework, file tree) and passes it to Claude Sonnet 4.6. Claude can then use a set of tools to help you build UI that's consistent with your UIPlug component library.

Always searches UIPlug before writing new code — if a matching component already exists, it will use that instead.

 

Tools

File system

| Tool | Description | |---|---| | read_file | Read a file from the project | | write_file | Create or overwrite a file | | list_files | List directory contents |

Shell

| Tool | Description | |---|---| | run_command | Run a whitelisted shell command (npm, npx, node, git, ls, cat, pwd, tsc, prettier) |

UIPlug

| Tool | Description | |---|---| | list_components | List published components from the marketplace | | search_components | Search components by name, description, or tag | | get_component | Get full source code for a component by ID | | get_my_profile | View your UIPlug profile and stats | | list_my_components | List all components you've created | | search_my_components | Search your own components | | list_groups | List groups you're a member of | | create_component | Submit a new component for review |

 

Example Prompts

❯ list my components
❯ search for a navbar component in React
❯ create a primary button component and publish it to UIPlug
❯ read src/components/Card.tsx and turn it into a UIPlug component
❯ run npm run build and fix any errors

 

Configuration

Keys are stored in ~/.uiplug/config.json. To reset, delete that file and restart the agent.

{
  "api_key": "your-uiplug-key",
  "anthropic_key": "your-anthropic-key"
}

 

Architecture

src/
├── index.ts       — CLI entry point and REPL loop
├── agent.ts       — Claude agent loop with tool routing
├── config.ts      — API key loading and first-run setup
├── memory.ts      — Session message history (40 msg cap)
├── context.ts     — Workspace context gathering
└── tools/
    ├── fs.ts      — File system tools
    ├── shell.ts   — Shell execution (whitelisted commands)
    └── uiplug.ts  — UIPlug/Supabase integration

The agent uses a streaming agentic loop: Claude streams a response, tool calls are executed, results are fed back, and the loop continues until end_turn.