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

websketch-mcp

v0.1.0

Published

MCP server exposing WebSketch IR capture, diff, and render tools

Readme

websketch-mcp

CI - Typecheck, Build, Lint License: MIT npm version

MCP server exposing WebSketch IR tools for LLM agents.

Features

  • 🎨 websketch_render: Render WebSketch IR captures to ASCII wireframes
  • 🔍 websketch_diff: Compute diffs between UI captures
  • 🔑 websketch_fingerprint: Generate deterministic fingerprints for captures

Installation

npm

npm install -g websketch-mcp

From Source

git clone https://github.com/mcp-tool-shop-org/websketch-mcp.git
cd websketch-mcp
npm ci
npm run build
npm link

Usage

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "websketch": {
      "command": "websketch-mcp"
    }
  }
}

Programmatic

# Run as stdio server
websketch-mcp

Or programmatically in Node.js:

import { spawn } from 'child_process';

const server = spawn('websketch-mcp', [], {
  stdio: ['pipe', 'pipe', 'inherit'],
});

// Send MCP protocol messages via stdin/stdout

Tools

websketch_render

Render a WebSketch IR capture to ASCII wireframe.

Input:

{
  "capture": {
    "root": {
      "type": "Frame",
      "id": "root",
      "children": [...]
    }
  }
}

Output:

┌─────────────────────┐
│ Frame (root)        │
│ ├── Button (#btn1)  │
│ └── Text (#text1)   │
└─────────────────────┘

websketch_diff

Compute a diff between two WebSketch IR captures.

Input:

{
  "before": { "root": {...} },
  "after": { "root": {...} }
}

Output:

{
  "added": [...],
  "removed": [...],
  "modified": [...]
}

websketch_fingerprint

Generate a deterministic fingerprint for a capture.

Input:

{
  "capture": { "root": {...} }
}

Output:

abc123def456...

Development

Prerequisites

  • Node.js 18+
  • npm

Setup

# Clone the repository
git clone https://github.com/mcp-tool-shop-org/websketch-mcp.git
cd websketch-mcp

# Install dependencies
npm ci

# Build
npm run build

# Run tests
npm test

# Type check
npm run typecheck

# Lint
npm run lint

Scripts

npm run build         # Compile TypeScript to dist/
npm run dev           # Watch mode compilation
npm run start         # Run the compiled server
npm run typecheck     # Type checking without emit
npm run lint          # Run ESLint
npm run lint:fix      # Fix ESLint issues
npm test              # Run tests in watch mode
npm run test:run      # Run tests once
npm run test:coverage # Generate coverage report
npm run clean         # Remove dist/ folder

Project Structure

websketch-mcp/
├── src/
│   └── index.ts          # Main server implementation
├── tests/
│   └── smoke.test.ts     # Test files
├── scripts/
│   └── add-shebang.js    # Post-build script
├── .github/
│   ├── workflows/
│   │   ├── ci.yml        # CI pipeline
│   │   └── security.yml  # Security scanning
│   └── dependabot.yml    # Dependency updates
├── dist/                 # Compiled output (gitignored)
├── package.json          # Package configuration
├── tsconfig.json         # TypeScript configuration
├── vitest.config.ts      # Test configuration
└── .eslintrc.cjs         # ESLint configuration

Testing

# Run all tests
npm test

# Run tests once (for CI)
npm run test:run

# Generate coverage report
npm run test:coverage

Tests are written using Vitest. See tests/ directory for examples.

Publishing

The package is configured with pre-publish safety checks:

# This will automatically:
# 1. Run type checking
# 2. Run linting
# 3. Run tests
# 4. Build the package
npm publish

Manual publish steps:

# Bump version
npm version patch|minor|major

# Publish to npm
npm publish

# Push tags
git push --follow-tags

Troubleshooting

CLI Not Found After Install

# Ensure global bin directory is in PATH
npm config get prefix

# Or use npx
npx websketch-mcp

Build Failures

# Clean and rebuild
npm run clean
npm ci
npm run build

Permission Errors on Unix

The post-build script automatically makes dist/index.js executable. If you encounter issues:

chmod +x dist/index.js

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT - see LICENSE file for details.

Links

Support

For questions or issues, please open an issue on GitHub.