{"id":27374298,"url":"https://github.com/indaco/sveo","last_synced_at":"2026-04-30T10:06:57.983Z","repository":{"id":285978919,"uuid":"959940291","full_name":"indaco/sveo","owner":"indaco","description":"SEO made simple for Svelte \u0026 SvelteKit.","archived":false,"fork":false,"pushed_at":"2026-02-23T15:49:24.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-23T23:42:29.395Z","etag":null,"topics":["components","json-ld","metadata","opengraph","schema-org","seo","svelte","svelte5","sveltekit"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indaco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-03T15:44:07.000Z","updated_at":"2026-02-23T15:36:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"a40bf3db-c16e-43cb-913e-579a2fa17689","html_url":"https://github.com/indaco/sveo","commit_stats":null,"previous_names":["indaco/sveo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/indaco/sveo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fsveo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fsveo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fsveo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fsveo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indaco","download_url":"https://codeload.github.com/indaco/sveo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indaco%2Fsveo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["components","json-ld","metadata","opengraph","schema-org","seo","svelte","svelte5","sveltekit"],"created_at":"2025-04-13T11:55:55.176Z","updated_at":"2026-04-30T10:06:57.977Z","avatar_url":"https://github.com/indaco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003esveo\u003c/h1\u003e\n\u003ch2 align=\"center\" style=\"font-size: 1.5em;\"\u003eSEO made simple for Svelte \u0026 SvelteKit.\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/indaco/sveo/actions/workflows/ci.yml\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/indaco/sveo/actions/workflows/ci.yml/badge.svg\" alt=\"CI\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/indaco/sveo\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/indaco/sveo/branch/main/graph/badge.svg\" alt=\"Codecov\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@indaco/sveo\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@indaco/sveo.svg?style=flat-square\" alt=\"npm version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/indaco/sveo/blob/main/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue?style=flat-square\" alt=\"License: MIT\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\n**@indaco/sveo** is a collection of type-safe SEO components for [Svelte v5](https://svelte.dev) and [SvelteKit](https://kit.svelte.dev). It provides a simple and declarative way to manage SEO and metadata using components.\n\n### Features\n\n- Type-safe SEO components\n- Works with both Svelte and SvelteKit\n- Supports all major SEO standards:\n  - Open Graph (Facebook, LinkedIn, etc.)\n  - Twitter Cards\n  - Schema.org JSON-LD\n  - Standard meta tags\n- Fully tree-shakable and modular\n- No runtime JavaScript – All components render static tags inside \u003csvelte:head\u003e, so nothing is shipped to the client.\n\n## Install\n\n```bash\n# pnpm\npnpm add -D @indaco/sveo\n\n# npm\nnpm install --save-dev @indaco/sveo\n\n# yarn\nyarn add --dev @indaco/sveo\n```\n\n## Components List\n\n### Metadata\n\nStart with [`PageMetaTags`] for essential metadata like `\u003ctitle\u003e`, `\u003cmeta name=\"description\"\u003e`, and other common tags that support SEO and social previews.\n\n- [PageMetaTags] – A lightweight component to manage basic metadata inside `\u003csvelte:head\u003e`.\n\n#### OpenGraph\n\nEnhance your content's visibility on platforms like Facebook, LinkedIn, and others with modular components that map to Open Graph's `og:type`. Each component is designed to be composable and type-safe.\n\nAvailable types:\n\n- Article\n- Book\n- Business\n- Profile\n- Product\n- MusicSong\n- MusicAlbum\n- MusicPlaylist\n- MusicRadioStation\n- VideoMovie\n- VideoEpisode\n\nEach component renders relevant `\u003cmeta property=\"og:*\"\u003e` tags automatically based on the data you provide.\n\n[Learn how to use the OpenGraph component](src/lib/components/metadata/opengraph/README.md)\n\n#### TwitterCard\n\nA flexible component that generates meta tags for [Twitter Cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup) using a single prop: `data`, typed as `SEOWebPage`.\n\nIt supports all official Twitter Card types:\n\n- `summary`\n- `summary_large_image`\n- `player`\n- `app`\n\nThe component automatically renders conditional tags based on the selected card type and the fields present in `data.twitter`.\n\n[Learn how to use the TwitterCard component](src/lib/components/metadata/twittercard/README.md)\n\n### SchemaOrg (JSON-LD)\n\nLeverage structured data with ready-to-use components for common [Schema.org](https://schema.org/) types. These components help improve search engine understanding and support rich results in platforms like Google, Bing, and social media.\n\nEach component accepts a simple, type-safe data object and renders a `\u003cscript type=\"application/ld+json\"\u003e` block safely within `\u003csvelte:head\u003e`.\n\n- [JsonLdWebSite]\n- [JsonLdWebPage]\n- [JsonLdBreadcrumbs]\n- [JsonLdSiteNavigationElement]\n\nSee the linked _READMEs_ for detailed usage examples and supported properties.\n\n## Usage\n\nYou can use any SEO component inside your route files or layout components. Here’s a minimal example:\n\n```svelte\n\u003cscript\u003e\n  import type { OpenGraphType, TwitterCardType, SEOMenuItem } from '@indaco/sveo/types';\n  import PageMetaTags from '@indaco/sveo/metadata/PageMetaTags.svelte'\n  import TwitterCard from '@indaco/sveo/metadata/twittercard/TwitterCard.svelte';\n  import JsonLdWebSite from '@indaco/sveo/schemaorg/website/JsonLdWebSite.svelte'\n\u003c/script\u003e\n\n\u003cPageMetaTags\n  data={{\n    url: 'https://example.com/posts/getting-started',\n    title: 'Getting Started Article',\n    description: 'This is the description for the Getting Started Article',\n    author: 'Your Name',\n    keywords: ['sveltekit', 'components', 'tests', 'vitest'],\n    opengraph: {\n      type: OpenGraphType.Article,\n      article: {\n        published_time: '23-01-2022',\n        modified_time: '24-01-2022'\n      }\n    },\n    twitter: {\n      type: TwitterCardType.Large,\n      site: '@username'\n    }\n  }}\n/\u003e\n\n\u003cJsonLdWebSite\n  data={{\n    name: 'My Svelte App',\n    baseURL: 'https://example.com',\n    title: 'Getting Started Article',\n    description: 'This is a SvelteKit site using sveo for SEO.',\n    language: 'en',\n    socials: {\n      twitter: 'https://twitter.com/indaco',\n      github: 'https://github.com/indaco'\n    }\n  }}\n/\u003e\n\n\u003cJsonLdSiteNavigationElements\n  baseURL=\"https://example.com\"\n  data={[\n    { identifier: 'home', name: 'Home', url: '/', weight: 1 },\n    { identifier: 'about', name: 'About', url: '/about', weight: 2 },\n    {\n      identifier: 'github',\n      name: 'GitHub',\n      url: 'https://github.com/indaco',\n      weight: 3,\n      external: true\n    }\n  ] satisfies Array\u003cSEOMenuItem\u003e}\n/\u003e\n\n\u003cTwitterCard\n  data={{\n    url: 'https://example.com',\n    title: 'Amazing Svelte Site',\n    description: 'This site showcases the power of SvelteKit for SEO.',\n    keywords: ['svelte', 'sveltekit', 'seo'],\n    image: {\n      url: 'https://example.com/og-image.jpg',\n      alt: 'Preview of the Svelte site'\n    },\n    twitter: {\n      type: TwitterCardType.Player,\n      site: '@example',\n      player: {\n        url: 'https://example.com/player.html',\n        width: 640,\n        height: 360\n      },\n      app: {\n        country: 'US',\n        idIPhone: '1234567890',\n        idIPad: '0987654321',\n        idGooglePlay: 'com.example.app'\n      }\n    }\n  }}\n/\u003e\n```\n\n## License\n\nMIT - see the [License](LICENSE) file.\n\n\u003c!-- Resource Links --\u003e\n[PageMetaTags]: src/lib/components/metadata/README.md\n[JsonLdWebSite]: src/lib/components/schemaorg/website/README.md\n[JsonLdWebPage]: src/lib/components/schemaorg/webpage/README.md\n[JsonLdBreadcrumbs]: src/lib/components/schemaorg/breadcrumbs/README.md\n[JsonLdSiteNavigationElement]: src/lib/components/schemaorg/sitenavigationelements/README.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findaco%2Fsveo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findaco%2Fsveo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findaco%2Fsveo/lists"}