fingerprint-svelte
Installation
SKILL.md
Fingerprint — Svelte
Integrate Fingerprint into a Svelte / SvelteKit app to identify visitors: initialize the provider
once at startup, then ask it for the visitor's visitor_id and a single-use event_id wherever
you need it (on load, or on an action like login or checkout).
Docs: https://docs.fingerprint.com/docs/svelte · JS Agent v4: https://docs.fingerprint.com/reference/js-agent-v4
Package
@fingerprint/svelte — install the latest version. (For plain HTML or an unsupported framework,
use @fingerprint/agent instead.)
Env var
FINGERPRINT_PUBLIC_API_KEY— the public key, safe to ship to the browser.
Bundlers only expose prefixed vars to client code — map the key to the bundler's convention:
- Vite (plain Svelte):
VITE_FINGERPRINT_PUBLIC_API_KEY→import.meta.env.VITE_...- SvelteKit:
PUBLIC_FINGERPRINT_PUBLIC_API_KEY→import { PUBLIC_FINGERPRINT_PUBLIC_API_KEY } from '$env/static/public'OnlyPUBLIC_-prefixed vars reach the browser in SvelteKit. Never expose the secret key.