New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svelte-smart-seo

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-smart-seo

Effortlessly optimize your SvelteKit projects with this intelligent SEO component. It automatically includes essential meta tags, saving you valuable setup time.

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

Smart Seo for Svelte

Effortlessly optimize your SvelteKit projects with this intelligent SEO component. It automatically includes essential meta tags, saving you valuable setup time.

Just drop this component on the main layout and it does its magic for all child pages.

Use this on non-critical projects where you do not want to add basic SEO tags yourself. For example, demo projects, package sites etc.

If you want SEO on critical websites, then consider using svelte-seo.

Installation

npm i -D svelte-smart-seo

Usage

You should be using it only at routes/+layout.svelte, nowhere else.

<script>
  import SmartSeo from "svelte-smart-seo";
</script>

<SmartSeo SITE_TITLE="SuperSite" SITE_URL="https://example.com" />
Tags added

It adds title, description, and canonical tags (and their open graph versions). Nothing else.

Examples

Imagine you have a page /about

Here are the tags added.

<title>About | SuperSite</title>
<meta property="og:title" content="About | SuperSite" />
<meta name="description" content="This is About page from SuperSite." />
<meta property="og:description" content="This is About page from SuperSite." />
<link rel="canonical" href="https://something.com/about" />
<meta property="og:url" content="https://something.com/about" />

Page - /about/me

<title>Me | SuperSite</title>
<meta property="og:title" content="Me | SuperSite" />
<meta name="description" content="Me page from SuperSite." />
<meta property="og:description" content="Me page from SuperSite." />
<link rel="canonical" href="https://something.com/about/me" />
<meta property="og:url" content="https://something.com/about/me" />

Page - /blog/svelte-seo/new/package

<title>Package | New | Svelte Seo | Blog | SuperSite</title>
<meta
  property="og:title"
  content="Package | New | Svelte Seo | Blog | SuperSite"
/>
<meta
  name="description"
  content="Package New Svelte Seo Blog page from SuperSite."
/>
<meta
  property="og:description"
  content="Package New Svelte Seo Blog page from SuperSite."
/>
<link
  rel="canonical"
  href="https://something.com/blog/svelte-seo/new/package"
/><meta
  property="og:url"
  content="https://something.com/blog/svelte-seo/new/package"
/>
More Tags

You have to add them yourself using the default svete:head.

<svelte:head>
<!-- Your custom tags -->
</svelte:head>

Desclaimer

This package is currently under development and may contain unforeseen issues. Please exercise caution when using it.

github npm

FAQs

Package last updated on 06 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc