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

@web-hig/install

v1.12.5

Published

Install The Web HIG Quick Reference, agent rules, and editor skills into a project

Readme

@web-hig/install

Pin The Web HIG into your product repository: version file, HIG-QUICK (and optional LITE / full spec), rules/ modules, framework/ adapters, and agent rules for Cursor, Claude Code, Copilot, and Windsurf.

Not a component library. You keep your stack and design system; this installs the behavioural contract agents and CI can reference.


Install / run

No global install required:

npx @web-hig/install

Equivalent onboarding via the unified CLI:

npx @web-hig/cli init

What gets written

Default target: current directory. Default pin directory: docs/hig/.

Quick profile (default)

| Output | Purpose | | --- | --- | | docs/hig/VERSION | Semver pin (must match agent rules) | | docs/hig/HIG-QUICK.md | Layer 1 — daily dev + AI default context | | docs/hig/HIG-CORE.md | Archetypes, philosophy, simplicity rule | | docs/hig-scope.md | Example scope map (only if missing) | | Editor rules + web-hig skill | Cursor, Claude, Copilot, Windsurf, AGENTS.md |

Practical profile

Everything in quick, plus:

| Output | Purpose | | --- | --- | | docs/hig/HIG-LITE.md | Rule IDs and checklists | | docs/hig/rules/ | Topic modules, archetype packs, registry.yaml | | docs/hig/framework/ | React, Next, Vue, Nuxt, Astro adapters |

Required for web-hig check / @web-hig/core (registry on disk).

Full profile

Everything in practical, plus:

| Output | Purpose | | --- | --- | | docs/hig/HIG.md | Complete normative specification |


Options

npx @web-hig/install --dir ./my-app
npx @web-hig/install --editors cursor,claude
npx @web-hig/install --profile practical
npx @web-hig/install --profile full --force
npx @web-hig/install --dry-run

| Flag | Meaning | | --- | --- | | --dir <path> | Target project (default: cwd) | | --editors <list> | cursor, claude, copilot, windsurf, agents (default: all) | | --profile <name> | quick (default), practical, full | | --docs-dir <path> | Pin directory (default: docs/hig) | | --force | Overwrite existing dedicated HIG files | | --dry-run | Print actions without writing | | --no-scope | Skip docs/hig-scope.md |


After installing

  1. Customize scope — Edit docs/hig-scope.md (archetypes per route/product area).
  2. Tell agents — e.g. “Follow The Web HIG Quick Reference; pin is in docs/hig/.”
  3. Optional conformance CLI — Install @web-hig/cli and set WEB_HIG_ROOT=docs/hig for web-hig check.
  4. Upgrade — Re-run install when VERSION bumps, or follow RELEASE_NOTES.md.

Example agent contract line:

Pinned contract: The Web HIG v1.12.5 · Practical profile · Application archetype

Profiles vs npm tooling

| Concept | Meaning | | --- | --- | | Install profile (quick / practical / full) | How much documentation is copied into docs/hig/ | | CLI profile (in web-hig.yaml) | How much of the contract web-hig check evaluates |

See PROFILES.md.


Manual alternative

You can vendor files by hand instead of this package:

  1. Copy VERSION and HIG-QUICK.md into docs/hig/.
  2. Copy templates from examples/agent-rules/.

The installer keeps pins aligned with the published npm version’s bundled payload.


Integration guide

Full adoption path: INTEGRATION.md


Related packages

| Package | Role | | --- | --- | | @web-hig/cli | web-hig check, explain, init | | @web-hig/core | Programmatic registry and reports |


Publish (maintainers)

From this directory, after contract VERSION matches package.json:

See packages/PUBLISHING.md for npm org @web-hig, Automation tokens, and CI.

node scripts/sync-vendor.mjs
npm publish --access public

prepack syncs vendor/ automatically. Do not commit vendor/.


License

MIT · The Web HIG