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

@nuxtseo/pro-indexing

v0.1.34

Published

Nuxt SEO Pro indexing layer: the dashboard indexing sections (Portfolio overview, issues and changes, the per-Site diagnosis panel, coverage trend, Index cohorts, and the indexing URLs table) over one IndexingSource adapter and a route map. Extends @nuxts

Readme

Pro Indexing

The dashboard indexing sections that nuxtseo.com, gscdump.com and Request Indexing share, published as the Nuxt layer @nuxtseo/pro-indexing. It extends @nuxtseo/pro-shell, which extends @nuxtseo/design-system. The maths is @gscdump/sdk/indexing. Decision: ADR-0167.

Scope

Owns:

  • Portfolio Overview: the tiles and the not-indexed stack chart (IndexingPortfolioOverview), one Site's issue breakdown (IndexingSiteIssues), and the figures every Overview value reads (buildPortfolioOverview, portfolioMarkdownSite for the Markdown export).
  • Portfolio Issues (IndexingPortfolioIssues) and Portfolio Changes (IndexingPortfolioChanges).
  • The per-Site indexing overview parts: the diagnosis panel (IndexingDiagnosisPanel), the coverage trend (IndexingCoverageTrend), and Index cohorts (IndexingCohortList).
  • The indexing URLs table (IndexingUrlsTable) and its crawl stages strip (IndexingCrawlPipeline).
  • Not indexed buckets: one count per saved Search Console state the site names, with an optional Sitemap filter (IndexingRejectionBuckets). The grouping of the URLs below it stays the site's.
  • Sitemaps: one report per Sitemap with its rail, facts, verdict and recent URL changes (IndexingSitemapsReport), and Sitemap search visibility (IndexingSitemapVisibility).
  • Submissions: the "Sent to search engines" card (IndexingSubmissionsCard), the URL Submission timeline (IndexingSubmissionTimeline, inside the URLs table detail), and the Sites list cell (IndexingSubmissionsCell).
  • The capability gate for features a site draws itself (IndexingCapabilityGate).
  • The IndexingSource contract, the route map (proIndexing.routes), and the copy (proIndexing.copy).

Leaves to the site:

  • Data. Every read goes through the site's IndexingSource. Portfolio sections take the scope's Sites as props.
  • The diagnosis. diagnoseIndexing reads Crawl evidence, so the site passes it as the diagnose capability.
  • Its Site list. The per-Site rows of the Portfolio Overview stay in the site's own list; they read buildPortfolioOverview.
  • Page files, tabs, date pickers, eject and MCP chrome, IndexNow and Watched URLs panels, and any server code (ADR-0042, ADR-0167). The IndexNow key setup, the send form, the Automatic sending switch and the receipt list stay the site's; the Submissions card counts what they sent.

Rules

  • No runtime services: no useFetch, $fetch, Drizzle, Caller, billing, auth, or useRuntimeConfig.
  • No hardcoded path. Every link resolves through the route map; a missing route hides the link.
  • A missing Indexing capability hides its section. A site never fakes one.
  • Components carry the Indexing prefix, composables the Indexing or ProIndexing prefix.
  • Every default string in PRO_INDEXING_COPY has a row in the canonical indexing copy.

Consuming pro-indexing

Install the three UI packages at one version, and the gscdump packages the layer peers on.

pnpm add @nuxtseo/pro-indexing @nuxtseo/pro-shell @nuxtseo/design-system @gscdump/sdk@^7.28.0 @gscdump/contracts@^7.13.0 gscdump@^7.27.0
pnpm add -D typescript@^6
// nuxt.config.ts
export default defineNuxtConfig({
  // pro-indexing extends the shell, which extends the design system.
  extends: ['@nuxtseo/pro-indexing'],
})
  • Import components from #components. The layer's auto-imports are off.
  • Import the pure modules by path: @nuxtseo/pro-indexing/shared/source, shared/portfolio, shared/portfolio-overview, shared/changes, shared/submissions, shared/sitemaps, shared/routes, shared/copy, shared/config, shared/urls-query.

IndexingSource

One adapter feeds every section. The site builds it once and provides it above the sections, in a plugin or a layout. A section calls a read in its setup, so a read may call the site's own query composable.

interface IndexingRead<T> {
  data: Ref<T | null | undefined>
  status: Ref<'idle' | 'pending' | 'success' | 'error'>
  error: Ref<unknown>
  refresh: () => Promise<void>
}

interface IndexingSite {
  id: string // the site's own Site id
  ref: string // what the route map's [site] token takes
  label: string
  url: string | null
  dataId: string | null // the id the source reads with; null when Search Console is not linked
}

interface IndexingSource {
  diagnostics: (site, sitemapScope?) => IndexingRead<GscdumpIndexingDiagnosticsResponse> // sitemapScope only with the capability
  urls: (site, params: MaybeRefOrGetter<IndexingUrlsParams>) => IndexingRead<GscdumpIndexingUrlsResponse>
  // Capabilities. A section that needs a missing one does not render.
  diagnose?: (input: IndexingDiagnoseInput<GscdumpIndexingUrl>) => IndexingSiteDiagnosis
  inspect?: () => (site: IndexingSite, urls: readonly string[]) => Promise<IndexingInspectResponse | IndexingInspectRateLimited>
  canonicalMismatches?: (site, enabled: MaybeRefOrGetter<boolean>) => IndexingRead<GscdumpCanonicalMismatchesResponse>
  cohorts?: (site) => IndexingRead<IndexCohortsResponse>
  sitemapProblems?: () => IndexingRead<{ unreachable: readonly string[], errors: readonly string[] }>
  changesRollup?: () => IndexingRead<IndexingChangesRollup>
  changes?: (site) => IndexingRead<IndexingSiteTransitions>
  submissions?: (site) => IndexingRead<IndexingSubmissionSummary>
  submissionOutcomes?: (site, params: MaybeRefOrGetter<IndexingSubmissionOutcomesParams>) => IndexingRead<IndexingSubmissionOutcomes>
  submissionsRollup?: () => IndexingRead<IndexingSubmissionsRollup>
  indexNow?: true | (() => IndexNowSource)
  watchedUrls?: true
  cohortFilter?: true // the urls read honours params.cohort
  sitemaps?: (site) => IndexingRead<IndexingSitemapsData>
  sitemapChanges?: (site, days: MaybeRefOrGetter<number>) => IndexingRead<GscdumpSitemapChangesResponse>
  sitemapLiveness?: (site, sitemapPath: MaybeRefOrGetter<string | null | undefined>) => IndexingRead<IndexingSitemapLiveness | null>
  sitemapIssueEvidence?: (site) => IndexingRead<{ warnings: readonly string[] }>
  sitemapListing?: (site) => IndexingRead<IndexingSitemapListing>
  sitemapVisibility?: (site) => IndexingRead<IndexingSitemapVisibility>
  sitemapScope?: true // the diagnostics read honours sitemapScope
}
// app/plugins/indexing-source.ts
import { PRO_INDEXING_SOURCE_KEY } from '../composables/useIndexingSource'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.provide(PRO_INDEXING_SOURCE_KEY, useMyIndexingSource())
})

| Indexing capability | Section it turns on | | --- | --- | | diagnose | URLs table: the remediation for the filtered issue | | inspect | URLs table: "Re-check with Google" on each row. Its tooltip reports the daily checks left from the last call's rateLimit | | canonicalMismatches | URLs table: consolidation targets on the canonical_mismatch facet | | cohorts | IndexingCohortList | | sitemapProblems | Portfolio Overview: the Sitemap problems tile | | changesRollup | IndexingPortfolioChanges. Each row counts URL Inspection indexStatus changes for one Site on one UTC day: indexed (to PASS) and dropped (from PASS). Count a change only between two verdicts, never from or to null, and date it by changedBefore | | changes | IndexingSiteChanges: one Site's Newly indexed and Dropped from index counts and newest changes. The read returns the Site's indexStatus transitions over indexChangesWindow and says whether it stopped early (truncated). The section counts them with summarizeSiteIndexChanges from @gscdump/sdk/indexing. A site with a Regression lead reads it from the same transitions, so the two agree | | submissions | IndexingSubmissionsCard: URLs sent per engine over 30 days, their Submission Receipts and triggers, and Automatic sending | | submissionOutcomes | IndexingSubmissionsCard: "Afterwards in Google". IndexingUrlsTable: the URL Submission timeline in each URL's detail | | submissionsRollup | IndexingSubmissionsCell, one read for every Site in the site's Sites list | | indexNow | IndexingIndexNowPanel from an IndexNowSource factory, or IndexingCapabilityGate around a host panel when the capability is true | | watchedUrls | IndexingCapabilityGate around the site's own panel |

IndexNow Site panel

Resolve the IndexNowSource factory in the host page's setup. Once linked, render IndexingIndexNowPanel with the Site and its adapter. The panel explains the key file, offers manual and Automatic sending separately, and shows delivery history. Use host queries for connection and history. The history read must honor offset, limit, and the optional accepted state filter. The latest delivery and accepted history can then change independently. The host implements permissions, error messages, and writes. A setup or verification call returns its updated connection. The panel sends only after verification and turns on Automatic sending only when the user acts.

The fleet card can render IndexingIndexNowHistoryChart from accepted delivery points. Both surfaces keep the chart available alongside current problems. The copy defaults are proIndexing.copy.indexNowSetup and proIndexing.copy.indexNow. The shared anchor constants keep existing links to manual sending and Delivery history working. | sitemaps | IndexingSitemapsReport: the rail, the selected Sitemap's count, history, facts and verdict, and the dropped Sitemap alert. ?sitemap= and ?health=problems hold the selection. With no rows, the section links to Search Console, or draws the site's #empty slot | | sitemapChanges | IndexingSitemapsReport: Recent URL changes over v-model:changes-days. The default control offers 7, 30 and 90 days; a site can draw its own in the #changes-window slot | | sitemapLiveness | IndexingSitemapsReport: the Reachability fact and a verdict that a failed probe outranks. The report passes undefined until the Sitemaps read settles, then the selected path, or null for the Site's default Sitemap. A failed probe is an error read | | sitemapIssueEvidence | IndexingSitemapsReport: the site's own Crawl warnings under Issue evidence, for a Site with one Sitemap. Without it, Issue evidence says Google reports a count | | sitemapListing | IndexingSitemapsReport: when Google lists no Sitemap, the report gives way to the #empty slot, even with rows in hand | | sitemapVisibility | IndexingSitemapVisibility. The invisible URLs and orphan pages draw only when the read carries them; the #actions slot takes a site's own header button | | sitemapScope | IndexingRejectionBuckets: with sitemaps too, a Sitemap filter that writes ?excludeFeedpath= and passes it to diagnostics as sitemapScope. A filtered count links nowhere, because the URLs list counts every Sitemap | | cohortFilter | Index cohort rows link with ?cohort= (indexCohortFilterValue), and the URLs table passes cohort in its urls params. Without it, a section row links by path prefix |

hasIndexingCapability(source, name) and indexingCapabilities(source) answer the same question in code, for example to hide a tab.

Portfolio sections

A Portfolio section takes the scope's Sites as IndexingPortfolioEntry values and the IndexingWindow from indexingWindow() in @gscdump/sdk/indexing. Map each Site's read once:

const entries = computed<IndexingPortfolioEntry[]>(() => sites.value.map(site => ({
  site: { id: site.id, ref: site.publicId, label: site.name, url: site.url, dataId: site.gscdumpSiteId },
  read: read.loading ? { _tag: 'loading' } : read.failed ? { _tag: 'failed' } : read.done ? { _tag: 'settled' } : { _tag: 'idle' },
  summary: read.data?.summary ?? null, // from readSiteIndexing()
  trend: read.data?.trend ?? [],
})))
<IndexingPortfolioOverview :entries="entries" :window="window" @retry="retry" />

<IndexingPortfolioIssues :entries="entries" :window="window" @retry="retry" />

<IndexingPortfolioChanges :entries="entries" @retry="retry" />

@retry carries the Site ids whose read failed. For the Markdown export, map each entry with portfolioMarkdownSite(entry, buildPortfolioOverview(entries, window), window, hostname) and pass the list to buildIndexingPortfolioMarkdown from the SDK.

Per-Site sections

<IndexingDiagnosisPanel :state="model" :lead="cohortLead" :lead-to="leadRoute" :action-to="actionRoute" />

<IndexingCoverageTrend :state="coverageTrend" />

<IndexingCohortList :site="site" />

<IndexingSiteChanges :site="site" />

<IndexingUrlsTable :site="site" />

The site builds model with buildIndexingOverviewModel(input, diagnose) from the SDK. lead takes any { _tag: 'lead', title, detail, actionLabel? }: the SDK's cohort lead (selectIndexCohortLead) or regression lead (selectIndexingRegressionLead). The panel draws the title as the headline. With lead-detail it draws the detail, such as "That is 42% not indexed, against 10%", on the line below it. The waiting state words itself by model.state, and the #waiting-actions="{ model }" slot draws the site's own controls, such as a connect button or a Review sitemap link. A lead with no actionLabel reads copy.diagnosis.leadAction on its button. IndexingCoverageTrend draws its chart in the browser only; the server renders the heading, the legend and a block of the chart's height, so a page needs no ClientOnly around it. IndexingUrlsTable reads diagnostics and urls, and draws its table in the layer's default shell. The route query is its filter state: it reads issue, facet, status, search, cohort and page, writes them on each change, and follows them, so Back and Forward re-filter the rows. parseIndexingUrlsQuery (shared/urls-query) parses the same query, for a page that seeds the first read or keys the table. A site with its own table shell passes it as the shell prop; it receives the same props, events, and slots (IndexingUrlsTableShellProps in the component).

Submissions

A Submission is a notification a Site sent to a search engine, through IndexNow or Google's Indexing API. The section answers "what did sending do?" with three rules: an accepted Submission Receipt proves receipt only, "Afterwards" is order in time and never cause, and no string states an indexing timeframe. The shapes live in shared/submissions.ts. Outcomes anchor where gscdump's listSiteSubmissionOutcomes anchors them. The source can count distinct URLs or set countBasis: 'url-sends' to include repeat sends from getSiteSubmissionSummary.

<IndexingSubmissionsCard :site="site">
  <!-- Optional: the site's own Automatic sending switch, beside the state. -->
  <template #automatic="{ state }">
    <MyAutomaticSendingSwitch :on="state._tag !== 'off'" />
  </template>
</IndexingSubmissionsCard>

<!-- In the site's own Sites table, under a "Submissions" heading (copy.submissions.columnTitle). -->
<IndexingSubmissionsCell :site="site" />
  • IndexingSubmissionSummary defaults to distinct URLs per engine, by each URL’s latest Submission Receipt. With countBasis: 'url-sends', the help explains that repeat sends count.
  • completeness: { _tag: 'partial', receipts } says the source stopped reading Submission Receipts before the window start. The card says how many it counted.
  • IndexingSubmissionOutcomes joins each sent URL to Google's latest URL Inspection result from a check made after the URL's newest Submission in the window that the engine received: IndexNow at HTTP 200 or HTTP 202, or Google accepted. This matches gscdump's listSiteSubmissionOutcomes. A result checked before it reads not-inspected. A URL that no engine received stays out of the totals. A source may still return its row, anchored on its newest Submission, so the timeline shows the Submission that failed. checked below sent says the totals cover fewer URLs than the Site sent, for example when the source caps its lookups or no engine received some URLs. The source never starts a URL Inspection for this read.
  • automaticSending is null when the Site has no IndexNow key. key-unverified is the switch on while the key file needs verification.
  • The URLs table calls submissionOutcomes(site, { url }) when a person opens a URL's detail, and draws the row whose URL matches, ignoring a trailing slash. Return only that URL's row. The card calls it once with { limit: 0 } for the totals.
  • IndexingSubmissionsCell calls submissionsRollup() in each row, so the source must return one shared read, keyed once for the scope, such as a query composable that dedupes by key. Leave the capability out rather than reading once per Site.

Route map

Each site maps the sections' logical routes under proIndexing.routes in app.config.ts. A Site route holds the shell's [site] token, filled with IndexingSite.ref.

| Route | Kind | Used by | | --- | --- | --- | | connectSearchConsole | App | A site's own "Connect Search Console" links | | siteIndexing | Site | Portfolio Changes Site links, the "Open indexing report" link | | siteIndexingUrls | Site | Every "Fix issues" link, with ?issue= or ?facet= | | siteIndexingSitemaps | Site | Sitemap evidence links | | sitemapValidator | App | "Validate sitemap" on a healthy Sitemap report, with the Sitemap as ?url=. Without it, the report links to Search Console | | searchTimelines | App | The Google processing timelines link under a pending Sitemap |

// app/app.config.ts
import { defineProIndexingConfig } from '../shared/config'

export default {
  proIndexing: defineProIndexingConfig({
    routes: {
      siteIndexing: '/app/sites/[site]/indexing',
      siteIndexingUrls: '/app/sites/[site]/indexing/urls',
      siteIndexingSitemaps: '/app/sites/[site]/indexing/sitemaps',
    },
  }),
}

nuxtseo.com sets its map in apps/pro/app/pro-indexing.ts and its source in layers/pro/gsc/app/composables/useNuxtSeoIndexingSource.ts.

Copy

Every string has a default in PRO_INDEXING_COPY (shared/copy.ts), and COPY.md owns each one. Reword any key under proIndexing.copy; unset keys keep the defaults. Placeholders in braces are filled by the component. The groups follow the sections: common, overview, siteIssues, issues, changes, diagnosis, coverageTrend, cohorts, submissions (the Submissions card, timeline and cell), urls (the URLs table, with Google's state labels), and urlsShell (the default table shell). diagnosis.scope is empty by default; a site that writes it, for example '{indexed} URLs with recorded indexed results.', gets a scope line after the lead detail. A site that rewords submissions.automaticLastCheck also rewords submissions.automaticLastCheckOne, the line for one changed URL.

Indexed tile tone

The Portfolio Overview colours the Indexed share by health band: below 80% reads as a warning, below 50% as an error. Set proIndexing.indexedShareTone to change it:

proIndexing: defineProIndexingConfig({
  indexedShareTone: { _tag: 'neutral' }, // or { _tag: 'health', warningBelow: 70, errorBelow: 40 }
})

Adopting on gscdump.com

gscdump.com reads its own /api/sites/[siteId]/* routes. It dropped submit sitemap, rich results, and IndexNow on purpose (#345), so its source leaves those capabilities out and the sections stay off.

export function useAppIndexingSource(): IndexingSource {
  const read = <T>(key: () => string, path: () => string | null) => {
    const { data, status, error, refresh } = useAsyncData<T | null>(key, () => {
      const url = path()
      return url ? $fetch<T>(url) : Promise.resolve(null)
    }, { server: false, watch: [path] })
    return { data, status, error, refresh }
  }
  return {
    diagnostics: site => read(() => `diag:${toValue(site)?.dataId}`, () => toValue(site)?.dataId ? `/api/sites/${toValue(site)!.dataId}/indexing/diagnostics` : null),
    urls: (site, params) => read(() => `urls:${toValue(site)?.dataId}:${JSON.stringify(toValue(params))}`, () => toValue(site)?.dataId ? withQuery(`/api/sites/${toValue(site)!.dataId}/indexing/urls`, toValue(params)) : null),
    diagnose: input => diagnoseFromInspection(input), // its own, from inspected URLs
    cohorts: site => cohortsFromUrls(site), // buildIndexCohortsFromIndexingUrls over a 500-row urls read
    // No inspect (the 2,000 a day cap is a product call), no canonicalMismatches
    // (it keeps its own page), no sitemapProblems (no live probe yet), no indexNow.
  }
}

| Section | gscdump.com | | --- | --- | | Portfolio Overview, Issues, Markdown export | yes | | Portfolio Changes | yes, a changesRollup over per-Site transitions | | Site Indexing changes | yes, changes from the Site's transitions route | | Diagnosis panel, coverage trend | yes | | Index cohorts | yes, built from inspected URLs | | URLs table | yes, no re-inspect, no rich results facet | | Sitemap problems tile, IndexNow | off (no probe; dropped in #345) | | Submissions card, timeline, cell | off. Its dashboard dropped IndexNow (#345); Submissions reach gscdump.com users through MCP and the API |

Adopting on Request Indexing

Request Indexing reads through its useProGscdump proxy and has its own live sitemap probe and Watched URLs. Its local layers/pro-indexing and layers/pro-shell collide in name with the packages: rename both (for example layers/ri-indexing) in the same pull request that adds the dependency.

export function useRiIndexingSource(): IndexingSource {
  const gscdump = useProGscdump()
  return {
    diagnostics: site => useRiRead(() => gscdump.getSiteIndexingDiagnostics({ params: { siteId: toValue(site)!.dataId! } }, true), site),
    urls: (site, params) => useRiRead(() => gscdump.listSiteIndexingUrls({ params: { siteId: toValue(site)!.dataId! }, query: toValue(params) }, true), site, params),
    diagnose: input => diagnoseIndexing(input),
    inspect: () => (site, urls) => gscdump.inspectSiteIndexingUrls({ params: { siteId: site.dataId! }, body: { urls: [...urls] } }),
    cohorts: site => useRiCohorts(site), // buildIndexCohortsFromIndexingUrls
    sitemapProblems: () => useRiSitemapRollup(), // from its per-Site probe
    changesRollup: () => useRiChangesFromTransitions(), // listSiteIndexingTransitions per Site
    watchedUrls: true,
  }
}

| Section | Request Indexing | | --- | --- | | Portfolio Overview, Issues, Markdown export | yes (new: it has no Issues tab, stack chart, or export today) | | Portfolio Changes | yes, from per-Site transitions | | Diagnosis panel, coverage trend, Index cohorts | yes, replaces its copies | | URLs table with re-inspect | yes | | Sitemap problems tile | yes, from its probe | | Watched URLs | its own panel inside IndexingCapabilityGate capability="watchedUrls" | | Submissions card and URL timeline | yes, from getSiteSubmissionSummary and listSiteSubmissionOutcomes, with its Automatic sending switch in the #automatic slot. Until those operations ship, build both from its IndexNow and Google receipt lists, as nuxtseo.com does | | Submissions cell | once a fleet read exists (submissionsRollup) |

Releasing

@nuxtseo/pro-indexing releases with @nuxtseo/pro-shell and @nuxtseo/design-system on the ui-v* tag, at one version. Its peer ranges on both are ^<version>, and pnpm release:ui:check refuses anything else. The steps are in the design system README (Releasing): set the three versions, check, pack all three, smoke, tag.