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

@sitespec/cli

v0.8.0

Published

Project-local SiteSpec CLI.

Readme

@sitespec/cli

Project-local SiteSpec CLI.

The public binary is sitespec; normal websites invoke it through npm scripts such as npm run dev and npm run site -- spec --json.

The package exposes sitespec through bin/sitespec.js, a stable shim that is present before the TypeScript build output exists. The shim loads dist/index.js at runtime and prints a build instruction if the CLI has not been built yet. This keeps npm workspace binary linking deterministic during repository bootstrap.

Existing-site migration

sitespec migrate audit <url> captures generated migration evidence from a production page using an installed Chrome/Chromium browser. It records fixed-viewport screenshots, a DOM snapshot, computed design inventory, media inventory, conservative section candidates, and a compact DOM layout index without generating SiteSpec source.

sitespec migrate segment <audit> opens the audited production URL in a dedicated Chrome/Chromium session and injects a live DOM picker. A reviewer selects exact production region roots, can navigate parent/child/sibling DOM candidates, name blocks explicitly, mark Header/Footer/Ignore roles, drag or collapse the inspector, reload the production page without losing current selections, switch between Inspect and Interact modes, and save selector/fingerprint/evidence records to segments.json. Screenshot segmentation is not used.

sitespec migrate design <audit...> consumes two or more completed audits from the same host and writes generated cross-page analysis: exact observed foundations, normalized primitive/semantic/typography candidates, section-rhythm.json, a rationalized foundation-proposal.json with stable token-scale names and responsive layout relationships, section clusters, shared-shell candidates, and media-role hints. Section rhythm is inferred from balanced section-root vertical padding and cross-checked against clustering plus viewport/property evidence, so one-sided page offsets or spacing dominated by horizontal/gap usage are not promoted to space.section. Completed manual segments take precedence over automatic section candidates. Cross-page manual matches are conservatively gated by deterministic semantic intent inferred primarily from reviewer labels, so visually similar blocks with conflicting purposes are kept separate. The command is analysis-only and never mutates the installed Design System.

sitespec migrate foundation review <analysis> creates foundation-review.json, the explicit accept/reject/pending boundary between inference and canonical source. It preserves proposal provenance with a SHA-256, allows reviewer-owned token/role renames, and can preserve required-but-unresolved compatibility values as explicitly provisional rather than presenting them as inferred facts. sitespec migrate foundation materialize <review> writes a non-destructive foundation-tokens.json preview; only --apply --replace can replace the target design/tokens.json, and only after the review plus target layout/font/existing-semantic-contract preflight are ready.

sitespec migrate components review/contracts turns accepted reusable section families into reviewable component.yaml previews while keeping shell families separate. sitespec migrate shell contracts converts accepted header/footer families into a shell-pack file contract without fabricating Astro source. sitespec migrate ui review/contracts does the same for direct leaf UI evidence: conservative review can auto-accept repeated Button/Link families while heuristic Card/Badge boundaries remain pending. Every accepted UI primitive must expose canonical variant default; if observations only provide named variants, review maps the most-supported observed variant to default and preserves the source name in provenance.

sitespec migrate implementations infer <analysis> turns the current accepted foundation/UI/section/shell contracts plus saved audit DOM/computed-style evidence into migration-owned Astro implementation previews and additive semantic token extensions. Contracts remain the public API boundary: production HTML is not copied verbatim and unobserved interactive/runtime behavior is not fabricated. sitespec migrate design-system materialize <analysis> assembles the reviewed foundation tokens, accepted manifests, shell contract, and—when current—those implementation previews into design-system-staging/. Before inference the pack stays contract-only/partial; after inference expected Astro files are copied and Design System lint runs. Pending/rejected families remain excluded, while missing local font binaries are reported as visual-fidelity follow-up rather than being replaced with bundled starter assets.