'use client' import { IntegrationGuide } from '@/components/IntegrationGuide' import { CodeBlock } from '@/components/CodeBlock' import { getIntegration } from '@/lib/integrations' import { notFound } from 'next/navigation' export default function SvelteIntegrationPage() { const integration = getIntegration('svelte') if (!integration) return notFound() return (

Integrating Pulse with Svelte or SvelteKit takes less than a minute. Just add the script tag to your HTML entry point.


Svelte (Vite)

For a standard Svelte project scaffolded with Vite, add the script to the <head> of your index.html.

{` My Svelte App
`}

SvelteKit

In SvelteKit, add the script to your root layout's <svelte:head> block so it loads on every page.

{` `}

Alternatively, you can add the script to src/app.html directly in the <head> section.

) }