Skip to content

API Links

Power SEO Bot edited this page Feb 27, 2026 · 1 revision

@power-seo/links API

buildLinkGraph()

Analyze link structure:

import { buildLinkGraph, findOrphanPages } from '@power-seo/links';

const graph = buildLinkGraph([
  { url: '/home', links: ['/about', '/blog'] },
  { url: '/blog', links: ['/home'] },
  { url: '/orphan', links: [] },
]);

const orphans = findOrphanPages(graph);

Link graph analysis for better internal linking.

Clone this wiki locally