Sveltekit Sitemap

screenshot of Sveltekit Sitemap
svelte
vite

Original beynar's repo with fixes.

Overview

This product is a library designed to help generate and maintain dynamic sitemap.xml and robots.txt files for SvelteKit apps. It consists of a Vite plugin and a Svelte-kit hook. The plugin watches the routes folder and generates a typescript representation of it, while the hook delivers sitemap.xml and robots.txt responses based on the params and the typescript sitemap.

Features

  • Vite Plugin: A plugin that watches the routes folder and generates a typescript representation of the routes.
  • Svelte-kit Hook: A hook that delivers sitemap.xml and robots.txt responses based on the params and the typescript sitemap.
  • Custom Routes Definitions: Define custom routes definitions and robots directives.
  • Configurable: Configure the plugin to specify the routes directory and output file for the sitemap.

Summary

The sveltekit-sitemap library is a useful tool for generating and maintaining dynamic sitemap.xml and robots.txt files for SvelteKit apps. It provides a Vite plugin for generating a typescript representation of the routes and a Svelte-kit hook for delivering the sitemap and robots.txt responses. The library is configurable and allows for the definition of custom routes and robots directives.

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.