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-demo

v0.1.0

Published

Interactive demo site for WebSketch IR - visualize UI representation

Readme

websketch-demo

CI - Build & Deploy License: MIT

Interactive demo site for WebSketch IR - visualize grammar-based UI representation.

Live site: mcptoolshop.com

Features

  • 🎨 Interactive visualization of WebSketch IR grammar
  • 📝 Live JSON editor with syntax validation
  • 🚀 Fast, lightweight vanilla TypeScript implementation
  • 📱 Responsive design for all devices
  • ✨ Clean, modern UI with accessibility support

Quick Start

For Users

Visit mcptoolshop.com and paste your WebSketch IR JSON to visualize it.

For Developers

Prerequisites

  • Node.js 20+
  • npm or yarn

Installation

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

# Install dependencies
npm ci

# Start development server
npm run dev

The app will open at http://localhost:3000.

Available Scripts

# Development
npm run dev              # Start dev server with hot reload
npm run build            # Build for production
npm run preview          # Preview production build

# Code Quality
npm run typecheck        # Run TypeScript type checking
npm run lint             # Check code with ESLint
npm run lint:fix         # Fix ESLint issues automatically
npm run format           # Format code with Prettier
npm run format:check     # Check code formatting

# Testing
npm test                 # Run tests in watch mode
npm run test:ui          # Run tests with UI
npm run test:coverage    # Generate coverage report

Project Structure

websketch-demo/
├── src/
│   ├── __tests__/          # Test files
│   ├── main.ts             # Application entry point
│   └── styles.css          # Global styles
├── .github/
│   └── workflows/
│       └── ci.yml          # CI/CD pipeline
├── index.html              # HTML entry point
├── package.json            # Dependencies and scripts
├── tsconfig.json           # TypeScript configuration
├── vite.config.ts          # Vite configuration
├── vitest.config.ts        # Vitest configuration
├── .eslintrc.cjs           # ESLint configuration
└── .prettierrc             # Prettier configuration

Development

Type Checking

TypeScript strict mode is enabled. Run type checking before committing:

npm run typecheck

Linting and Formatting

The project uses ESLint for linting and Prettier for formatting:

# Check for lint issues
npm run lint

# Auto-fix lint issues
npm run lint:fix

# Format all files
npm run format

Testing

Tests are written using Vitest:

# Run tests in watch mode
npm test

# Run tests once
npm test -- --run

# Generate coverage
npm run test:coverage

Deployment

The project automatically deploys to GitHub Pages when changes are pushed to the master or main branch.

Manual Deployment

To deploy manually:

  1. Build the project:

    npm run build
  2. The dist/ folder contains the production-ready files.

  3. Deploy to your hosting provider (GitHub Pages, Vercel, Netlify, etc.).

GitHub Pages Setup

  1. Go to repository Settings > Pages
  2. Set Source to "GitHub Actions"
  3. Push to master/main branch to trigger deployment

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Make your changes
  4. Run tests and linting: npm test && npm run lint
  5. Commit with clear messages
  6. Push and create a Pull Request

Troubleshooting

Build Fails

  • Check that src/ directory exists with main.ts
  • Ensure dependencies are installed: npm ci
  • Verify Node.js version: node --version (should be 20+)

Development Server Won't Start

  • Check port 3000 is available
  • Clear cache: rm -rf node_modules && npm ci
  • Check for errors: npm run typecheck

Type Errors

  • Update TypeScript: npm update typescript
  • Check tsconfig.json for correct configuration

Technology Stack

  • Framework: Vanilla TypeScript (no framework overhead)
  • Build Tool: Vite
  • Type Checking: TypeScript 5.3+
  • Testing: Vitest
  • Linting: ESLint + TypeScript ESLint
  • Formatting: Prettier
  • CI/CD: GitHub Actions

License

MIT License - see LICENSE file for details.

Links

Support

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