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

@morya-ui/mcp

v0.2.7

Published

MCP server for morya-ui — component docs, examples, and usage guidance for AI coding agents.

Readme

@morya-ui/mcp

Optional Model Context Protocol (stdio) server for morya-ui.

It indexes component docs, guides, examples, and reusable page patterns so any MCP-capable AI client can look up the real API before writing code. It does not replace installing the UI library:

pnpm add morya-ui

Public docs: run the docs site (pnpm dev) and open Docs → MCP.

Run

npx -y @morya-ui/mcp

Typical client config (field names vary by client):

{
  "command": "npx",
  "args": ["-y", "@morya-ui/mcp"]
}

Local checkout:

pnpm --filter @morya-ui/mcp build
node packages/ui-mcp/bin/morya-ui-mcp.js

Tools

MCP also exposes resources and resource templates for clients that support resources/list, resources/templates/list, and resources/read. Call version to see the current resource and template counts.

Static resources:

  • m://catalog/index.json
  • m://design-rules.json

Resource templates:

  • component-docsm://components/{component}/docs/{locale}
  • component-apim://components/{component}/api.json
  • guide-docsm://guides/{guide}/docs/{locale}

Core — component docs

| Tool | Purpose | | ---------------- | -------------------------------------------- | | list | List components / guides / examples / categories / patterns | | search | Search docs, examples, patterns, and decisions | | get_component | Component metadata and API | | get_example | One source-backed example | | get_guide | Guide docs | | get_setup | Install / setup bundle | | validate_usage | Soft-check props / events | | version | Package + catalog status |

Advanced — page composition (optional)

| Tool | Purpose | | --------------------- | ------------------------------------------------------------- | | list_patterns | List reusable page composition patterns | | get_pattern | Read a pattern's structure, layout, and rules | | recommend_page | Recommend a pattern from page intent; optional starter scaffold | | get_design_rules | Design-token and composition rules | | recommend_component | List, read, or recommend component selection guides | | list_golden_pages | List golden page samples (list / form / dashboard) | | get_golden_page | Read golden page Vue source | | list_page_snippets | List section snippets for local page edits | | get_page_snippet | Read a section snippet (filters, toolbar, form-actions…) | | validate_page | Check page composition, spacing, and border anti-patterns |

mode: zh (default) or en.

Component lookup accepts common aliases such as DataTable, 数据表格, Pager, and 确认弹窗.

Recommended workflow

Look up a component:

  1. search or get_component
  2. get_example for unfamiliar APIs
  3. validate_usage on generated snippets

Plan a page:

  1. recommend_page with business intent, page type, and features
  2. get_golden_page for the matched golden sample (list-page, form-page, dashboard-page, login-page, landing-page, empty-state)
  3. get_pattern for the returned matchedPattern
  4. get_design_rules for MPage* composition recipes
  5. get_component / get_example for core components (including Page)
  6. recommend_component when choosing between similar components
  7. validate_page on generated Vue code before finishing

Edit one section of an existing page:

  1. list_page_snippets with query or pageType
  2. get_page_snippet for the matched section (list-filters, form-actions, …)
  3. get_component / get_example for unfamiliar imports
  4. validate_usage + validate_page on the merged result

For a starter Vue file, pass includeScaffold: true to recommend_page:

{
  "intent": "Oil well management list",
  "pageType": "list",
  "features": ["filters", "create", "pagination"],
  "mode": "en",
  "includeScaffold": true
}

recommend_component modes:

  • omit query and decision → list decision guides
  • decision only → read one guide (e.g. overlay-choice)
  • query → recommend a component for a UI question

Develop

pnpm install
pnpm mcp:generate
pnpm mcp:build

Catalog sources: src/components/*/docs and playground/src/docs/guide/*.md.

pnpm mcp:generate
pnpm mcp:check-catalog
pnpm mcp:validate-catalog
pnpm mcp:audit-examples

Release

From the repo root (version syncs from morya-ui):

pnpm release:mcp -- --dry-run
pnpm release:mcp