# SvelteKit

The Coralogix RUM SDK is a library (plugin) for SvelteKit that provides telemetry instrumentation. Learn how to integrate with Coralogix's Real User Monitoring (RUM).

## Prerequisites

Deploy our [RUM Integration Package](https://coralogix.com/docs/user-guides/rum/getting-started/rum-integration-package/index.md). This includes creating your RUM API key, which is required for the Browser SDK setup.

## Installation

Add the following code to the `layout.svelte` file:

```js
<script lang="ts">
    import { CoralogixRum } from '@coralogix/browser';
    import { onMount } from 'svelte';
    import '../app.css';

    let { children } = $props();

    onMount(() => {
        CoralogixRum.init({
            public_key: 'my-key-123',
            environment: 'test',
            application: 'my-app',
            version: '1.0.0',
            coralogixDomain: 'EU1'
        });
    });

</script>

{@render children()}
```
