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

spa-seo-simulator

v1.0.1

Published

SEO simulation and auditing tool for Single-Page Applications (SPAs)

Readme

SPA SEO Simulator A production-ready SEO simulation and auditing tool for Single-Page Applications (SPAs). It simulates how search engine crawlers (e.g., Googlebot) render and index JavaScript-heavy SPAs, performing essential SEO checks on the final rendered DOM.

Features

  • Simulates search engine crawling using Puppeteer
  • Performs SEO checks (title, meta description, canonical, headings, links, image alt)
  • Outputs results in terminal, JSON, or HTML
  • Usable as a CLI tool or Node.js module
  • Built with TypeScript for type safety

Installation

npm install -g spa-seo-simulator

CLI Usage

spa-seo <url> [--output <json|html>] [--timeout <ms>]

Examples

Basic terminal output:spa-seo https://techbeeyt.github.io/spa-seo-checker

JSON output:spa-seo https://techbeeyt.github.io/spa-seo-checker --output json

HTML report:spa-seo https://techbeeyt.github.io/spa-seo-checker --output html

Custom timeout (e.g., 15 seconds):spa-seo https://example.com --timeout 15000

Programmatic Usage

import { simulateSEO } from 'spa-seo-simulator';

async function run() {
  const report = await simulateSEO('https://example.com', { timeout: 10000 });
  console.log(report);
}

run();

SEO Checks Performed

  • Title Tag: Checks for presence of <title>.
  • Meta Description: Checks for <meta name="description">.
  • Canonical Tag: Verifies <link rel="canonical"> exists.
  • Heading Structure: Ensures exactly one <h1> and valid <h2> usage.
  • Internal Links: Counts internal <a> links.
  • Image Alt Attributes: Checks for missing alt attributes on <img>.

Example Output

Terminal

SEO Simulation Report

URL: https://example.com Status: 200 SEO Checks: ✓ Title Tag: Title found: My SPA ✗ Meta Description: No meta description found ✓ Canonical Tag: Canonical found: https://example.com ✓ Heading Structure: One H1 found, 2 H2s found ✓ Internal Links: Found 5 internal links ✓ Image Alt Attributes: All images have alt attributes

JSON

{
  "url": "https://example.com",
  "status": 200,
  "checks": {
    "Title Tag": { "passed": true, "message": "Title found: My SPA" },
    "Meta Description": { "passed": false, "message": "No meta description found" },
    ...
  }
}

Development

Clone the repo:git clone Github Repo

Install dependencies: npm install

Build the project: npm run build

Run locally: npm start -- https://example.com

License

MIT