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

sitepreflight

v0.1.0

Published

Pre-launch checklist for websites. Run one command on a URL and see what you forgot: meta tags, social previews, favicon, sitemap, robots.txt, alt text, heading order.

Readme

sitepreflight

The check you do by hand before every launch, in one command.

Point it at a URL and it tells you what's missing: meta tags, social previews, favicon, sitemap, robots.txt, alt text, heading order, leftover noindex from staging.

CI npm license

npx sitepreflight example.com
https://example.com/

Basics
  ! Page language: The <html> tag has no lang attribute
    Add lang to <html>, for example <html lang="en">.

SEO
  ✕ Indexable: The page says noindex
    Staging leftovers: remove the noindex before launch.

Social
  ✕ Open Graph tags: Missing: og:image
    Without these, the link shared on WhatsApp or LinkedIn shows a bare URL.

14 passed  2 to review  2 blocking
Fix the blocking items before launch.

No install, no config, no account. Works on any site, not just ones you built.

What it checks

| Group | Checks | | --- | --- | | Basics | HTTP status, HTTPS, lang, viewport, charset, favicon, time to first byte | | SEO | Title length, meta description, canonical URL, leftover noindex | | Social | Open Graph title, description and image, Twitter card | | Accessibility | One h1, heading order, images without alt, generic link text | | Crawling | robots.txt, Disallow: / left from staging, sitemap |

Blocking issues (✕) are the ones that break something real in production: a site that can't be indexed, a shared link with no preview, a page unusable on mobile. Everything else is a warning you can weigh up.

Options

npx sitepreflight <url> [options]

--all         Show the checks that passed too
--json        Print the report as JSON
--strict      Exit with code 1 on warnings as well
--no-color    Plain output, for logs and CI
-h, --help    Show this help
-v, --version Show the version

Exit codes: 0 nothing blocking, 1 blocking issues found (or warnings with --strict), 2 the page could not be checked.

In your pipeline

Because it exits non-zero on blocking issues, it works as a gate before a deploy:

- run: npx sitepreflight https://staging.example.com --no-color --strict

As a library

npm install sitepreflight
import { fetchPage, fetchSiteFiles, runChecks, buildReport } from "sitepreflight";

const page = await fetchPage("https://example.com");
const files = await fetchSiteFiles(page.finalUrl);
const report = buildReport(page.url, page.finalUrl, runChecks(page, files));

console.log(report.counts); // { pass: 14, warn: 2, fail: 2 }

runChecks is pure: give it HTML and headers and it gives you results, no network involved. Handy if you already have the page.

What it does not do

It reads the HTML the server returns, so content rendered only in the browser is invisible to it. It doesn't measure Core Web Vitals, crawl the whole site or check links one by one. It's a pre-launch checklist, not Lighthouse.

Development

npm install
npm test
npm run dev -- example.com   # run the CLI from source
npm run build

License

MIT