> ## Documentation Index
> Fetch the complete documentation index at: https://docs.subtrace.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SvelteKit

> Connect your SvelteKit app to Chrome DevTools using Subtrace

For this guide, we'll use a simple SvelteKit app as an example, but any SvelteKit app should work fine.
You can find the complete source code for this example [here](https://github.com/subtrace/sveltekit-demo).

To get started, download the latest version of Subtrace using the following command:

```bash theme={null}
curl -fsSL https://subtrace.dev/install.sh | sh
```

Then get a `SUBTRACE_TOKEN` from the Subtrace [dashboard](https://subtrace.dev/dashboard)
for free and set it as an environment variable.

```bash theme={null}
# get a tracer token for free at https://subtrace.dev/dashboard
export SUBTRACE_TOKEN=
```

Build and start your server using Subtrace:

```bash theme={null}
npm install
npm run build
subtrace run -- npm run dev
```

That's it! You can now visit [localhost:5173](localhost:5173) and make requests
to the app that show up on the Subtrace [dashboard](https://subtrace.dev/dashboard)
in realtime.
