# Catch SvelteKit SEO bugs in the pull request.

> SEO review for SvelteKit pull requests. SEOCode checks .svelte files for noindex, invalid JSON-LD, missing alt text and browser-only metadata.

Source: https://seocode.io/sveltekit-seo

For SvelteKit teams

SEOCode reads your route files the way SvelteKit builds them and flags what is wrong: an accidental `noindex`, routes with `ssr = false`, titles set only in the browser, invalid JSON-LD, missing alt text.

- [Add to your repo →](https://github.com/apps/seocode-pr-check/installations/new)

- [View sample report](https://seocode.io/sample-report)

Free on the Developer plan, full ruleset on every pull request. Works with your `+page.svelte`, `+layout.svelte` and `+error.svelte` files, and the `ssr` setting in `+page.ts` and `+layout.ts`.

SEO reviews by framework: [Next.js](https://seocode.io/nextjs-seo) · [Astro](https://seocode.io/astro-seo) · **SvelteKit** · [Remix](https://seocode.io/remix-seo) · [Nuxt](https://seocode.io/nuxt-seo)

```
# or run it locally / in CI, no GitHub App required
npx @qobi/seocode check --staged
```

## SEO bugs hide in SvelteKit markup.

None of these fail the build, so you find out weeks later when traffic drops.

### Routes with `ssr = false`

One `export const ssr = false` in a `+page.ts` or `+layout.ts` sends an empty page to crawlers that do not run JavaScript, for every page beneath it.

### Titles set only in the browser

A title or description set inside `onMount` or `$effect` does not exist until JavaScript runs, so most AI crawlers never see it.

### An accidental `noindex`

A `<meta name="robots" content="noindex">` left in a page or layout from staging, or set from a script, de-indexes everything that renders it.

### Broken JSON-LD

Structured data written by hand into a `<script type="application/ld+json">` block can be invalid JSON that search engines silently discard.

### Images without alt text

Images shipped without `alt` text can't appear in image search, and screen readers skip them.

### Headings that skip levels

A page that jumps from `h1` to `h4`, or has no clear main heading, is harder for search engines and AI to understand.

### AI crawlers blocked in `robots.txt`

A copied `static/robots.txt` that disallows GPTBot, ClaudeBot or PerplexityBot stops those crawlers reading your site.

## What it checks in SvelteKit.

SEOCode treats a SvelteKit route as SvelteKit does: the document shell comes from `app.html`, and layouts add to the head.

### Tags written in the file

Titles and descriptions written inside `<svelte:head>` are checked for length, and values from `load` count as provided.

### What the shell and layouts provide

Charset, viewport, language and favicon from `app.html`, and tags from a layout, are never flagged as missing in a route.

### Structured data validity

Validates JSON-LD written as literal JSON in the file, and checks entity schema for `@id` and `sameAs`.

### Page structure

Headings, image alt text, and links that say "click here" instead of where they go.

### Crawler access

Flags GPTBot, ClaudeBot, PerplexityBot or Google-Extended blocked in your `robots.txt`.

### Data from load

Checks that each `data.x` read in `<svelte:head>` is returned by a `load` for the route or a layout above it.

**Quiet unless something is wrong**

SEOCode reads a `load` that returns an object. If a `load` spreads `await parent()`, returns a variable or calls another function, SEOCode trusts it and doesn't flag it.

## Install once, then it's automatic.

There's no config to write and no CI step to maintain.

### Install in one click

Add SEOCode to your SvelteKit repo or whole org. It detects the framework, so there's nothing to configure. For your own pipeline, use the `@qobi/seocode` CLI.

### Open a pull request

SEOCode reviews the changed files, resolves your metadata, and runs the full ruleset, usually within seconds of the PR opening.

### Get fixes in the comment

Issues are grouped by severity, each with the exact fix, critical ones first. You can make the check required before a merge.

## Questions, answered.

**Does it understand svelte:head and layout inheritance?**

**Will it catch routes with SSR disabled?**

**Can I silence a finding that's wrong for my setup?**

**Can I run it in CI without the GitHub App?**

**Is it free?**

## Stop shipping SvelteKit SEO regressions.

Add SEOCode to your repo and it reviews your next pull request. To check a live website, get a website audit.

- [Add to your repo →](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit)
