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

opichi-style-mcp

v0.3.0

Published

Opichi Style MCP server: discover, document, compare, and apply styles consistently across apps with per-project isolation.

Readme

IMPORTANT: Before modifying this file, please update CHANGELOG.md with a summary of your changes. Also, make clear comments about every change in this file and what it was replacing so that we don't end up trying the same fixes repeatedly.

Opichi Style MCP

An MCP server for discovering, documenting, comparing, and applying styles across projects with strict per-project isolation. Distributed via npm. Designed to:

  • Discover existing styles (tokens, utilities, component archetypes) and generate a project-local style reference.
  • Compare live code against the reference and surface drift and gaps.
  • Apply consistent styles to pages/components across CSS/SCSS/LESS, React, Vue, HTML, and Tailwind.
  • Assist feature planning by outputting a style spec aligned with the reference.
  • Edit the reference safely (soft-delete by default, optional hard-delete).

Status

Fully implemented with all features working. The server can discover styles across multiple frameworks, maintain style references, compare actual usage against references, and safely apply style modifications with backup support.

Key Concepts

  • Per-project isolation: stores data under .opichi/ inside the detected project root.
  • Non-destructive operations by default (soft delete, backups for writes).
  • Stdio transport only; no stdout logging (stderr for logs).

Install

npm i -g opichi-style-mcp

Run (as an MCP server)

This server runs over stdio. Configure it in your MCP host (e.g., Claude Desktop) to invoke:

node /ABSOLUTE/PATH/TO/opichi-style-mcp/build/index.js

Claude Desktop example

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "opichi-style-mcp": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/opichi-style-mcp/build/index.js"]
    }
  }
}

Tool Contracts (AI-facing)

All tools accept an optional rootPath which, if omitted, is auto-detected as the project root.

  • discover_styles

    • purpose: scan target scope and build/update the style reference.
    • params: { scope: "app" | "page" | "component" | "glob", target?: string, includeFrameworks?: string[], write: boolean, rootPath?: string }
    • behavior: merges non-destructively when write=true; previews otherwise.
  • get_style_reference

    • purpose: return current style reference (optionally create an empty shell).
    • params: { createIfMissing?: boolean, rootPath?: string }
  • compare_styles

    • purpose: compare live code vs reference; report drift and suggested patches.
    • params: { scope: "app" | "page" | "component" | "glob", target?: string, strict?: boolean, rootPath?: string }
  • apply_styles

    • purpose: align provided files to the reference.
    • params: { files: string[], strategy: "utility" | "semantic" | "component" | "hybrid", dryRun?: boolean, allowAdditions?: boolean, rootPath?: string }
  • plan_feature_styles

    • purpose: produce a style spec for a new feature consistent with the reference.
    • params: { featureDescription: string, outputFormat?: "markdown" | "json", rootPath?: string }
  • update_style_reference

    • purpose: edit reference safely.
    • params: { operations: Array<{ op: "add" | "replace" | "remove", path: string, value?: any, soft?: boolean, force?: boolean }>, rootPath?: string }
  • list_frameworks_detected

    • purpose: enumerate detected frameworks/utilities for the project.
    • params: { rootPath?: string }

Resources

  • style://reference — current reference JSON
  • style://report/{timestamp} — last discovery/compare report
  • style://diff/{timestamp} — last apply diff plan

Development

  • Build: npm run build
  • Logging: use console.error only. Never write to stdout in stdio mode.

Contributing

  • Follow the CHANGELOG protocol.
  • Keep files modular and under 400 lines when possible.