Dev.to WebDev 🛠 Dev 👁 2 📖 2 min read

25-Iteration Internal PageRank, 580px SERP Calibration, and /llms.txt Crawling in Browser RAM

Most browser SEO extensions only inspect the currently open DOM tab — they miss site-wide internal PageRank distribution, real TCP/TTFB waterfalls, 580px desktop pixel-width title truncation, and whether /llms.txt + Sche

Most browser SEO extensions only inspect the currently open DOM tab — they miss site-wide internal PageRank distribution, real TCP/TTFB waterfalls, 580px desktop pixel-width title truncation, and whether /llms.txt + Schema.org @graph entities actually expose clean structured answers for search and AI crawlers.

Meanwhile, desktop crawlers like Screaming Frog require local installation and cap free crawls at 500 URLs. Here is the zero-upload crawling and structured-data scoring pipeline behind https://nandai.org/seo-engine (POST /v1/engines/seo/audit).

1. Measuring SERP Title & Meta Truncation by Pixel Width (Not Character Count)

Google truncates titles near 580px–600px on desktop (~920px for meta descriptions), not at a fixed character count (WWWWWW takes far more pixels than iiiiii). Computing weighted glyph widths before deploy catches snippet clipping before Googlebot re-crawls:

const WIDE_GLYPHS = new Set('MWQGDO@%&#');
const NARROW_GLYPHS = new Set("iljtfr1|!.,':;");

export function estimateSerpTitlePx(title: "string): number {"
  let px = 0;
  for (const ch of title) {
    if (ch === ' ') px += 5.2;
    else if (WIDE_GLYPHS.has(ch)) px += 14.5;
    else if (NARROW_GLYPHS.has(ch)) px += 5.0;
    else if (ch >= 'A' && ch <= 'Z') px += 12.0;
    else px += 9.4;
  }
  return Math.round(px);
}

In /seo-engine, titles over 580px or descriptions over 920px trigger an actionable truncation warning alongside live DNS, TCP, and TTFB timings.

2. Iterative 25-Pass Internal PageRank on Your Crawled Link Graph

Counting raw in_links treats a footer link on every orphan page equally to a contextual link from your homepage. Running 25 power-iteration passes over the crawled directed graph_edges reveals crawl sinks and under-linked product hubs immediately:

export function computeInternalPageRank(
  urls: string[],
  edges: Array<{ source: string; target: string }>,
  iterations = 25,
  damping = 0.85
): Record<string, number> {
  const n = urls.length;
  if (n === 0) return {};
  let rank = Object.fromEntries(urls.map((u) => [u, 1 / n]));
  const outMap = new Map<string, string[]>();
  for (const u of urls) outMap.set(u, []);
  for (const e of edges) outMap.get(e.source)?.push(e.target);

  for (let iter = 0; iter < iterations; iter++) {
    const next = Object.fromEntries(urls.map((u) => [u, (1 - damping) / n]));
    for (const u of urls) {
      const outs = outMap.get(u) || [];
      if (outs.length === 0) continue;
      const share = (damping * rank[u]) / outs.length;
      for (const dst of outs) if (dst in next) next[dst] += share;
    }
    rank = next;
  }
  return rank;
}

3. Auditing /llms.txt, robots.txt AI Bot Rules & Deduplicated Schema @graph

Modern visibility depends on both Googlebot and answer-engine crawlers (OAI-SearchBot, PerplexityBot, Claude-SearchBot). Checking robots.txt directives alongside /llms.txt markdown structure and validated JSON-LD @graph blocks prevents accidental Disallow: / blocks or broken @id references.

Live Engine & Companion Tools

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.