What SvelteKit SEO does
sk-seo is a Svelte component for SvelteKit projects. It collects title, description, keywords and related meta values returned from load functions and renders them as meta tags in the document head. The repository describes it as a dead simple, no dependencies component that automates repeated SEO boilerplate, with optional social media preview support. It is published to npm as sk-seo and installed as a dev dependency.
Configuration lives in SvelteKit load functions. A +layout.js file returns defaults for the whole site, and any +page.js can return values that replace them for a single route. The same pattern works with +layout.server.js and +page.server.js, and stores can be combined when load return values conflict. The component places tags through <svelte:head>, and projects using adapter-static need a base path added for prerendering.
Key features
- Dependency free component
- The package ships no runtime dependencies and is installed with npm i -D sk-seo as a dev dependency.
- Meta tags via svelte:head
- The component uses the svelte:head element to place title, description and keyword meta tags in the document head.
- Per route meta override
- Values returned from a +page.js load function replace the layout level title, description and keywords while visiting that route.
- Server load compatibility
- The same layout and page pattern is documented for +layout.server.js and +page.server.js load functions.
- Store value combining
- Documentation covers combining stores and resolving conflicting store or load return values when building meta objects.
- Extendable custom tags
- An extendable path lets developers add unusual meta tags or supply custom output beyond the standard parameters.
- Social preview support
- Optional functionality is included for social media preview tags in addition to the standard SEO meta fields.
- adapter-static prerendering
- Projects using adapter-static are told to add a base path so prerendered pages receive correct meta values.
- TypeScript type guide
- A linked wiki guide explains how to add type support for the meta values returned from load.
- Cloudflare duplicate note
- A troubleshooting note covers duplicated meta tags behind Cloudflare, and the component method is flagged as not recommended.
How it works
- Install the package with npm i -D sk-seo inside the SvelteKit project.
- Import Seo from sk-seo and add the component to the layout, such as +layout.svelte.
- Create +layout.js with a load function that returns title, description and keywords.
- Add +page.js load functions on routes where meta values must differ from the layout.
- Use url.origin or url.href inside load to build absolute image and page URLs.
- For adapter-static builds, add the base path so prerendered pages carry correct tags.
Plans and pricing
Open source under the MIT licence; no paid tiers, trials or self-serve plans are printed on the repository.
Integrations and platforms
Works with
- SvelteKit
- adapter-static
- Cloudflare
- npm
Available as
- Web
Repository facts
- RepositoryTheDahoom/Sveltekit-seo
- LanguageSvelte
- Stars146
- Forks4
- LicenceMIT
- Created2024-04-05
- Last commit2025-05-24
- Open issues1
- component
- dependency-free
- jsonld
- lightweight
- no-dependencies
- seo
- seo-optimization
- svelte
- sveltekit
Services and details
Does SEO work itself
YesFree plan or free tools
YesAPI or MCP server
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company TheDahoom
- Website: github.com/TheDahoom/Sveltekit-seo
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.