Overview
The Timeback SDK provides a SvelteKit adapter using hooks.Installation
Server Setup
Create a Timeback instance:src/lib/timeback.ts
Server Hooks
Add the Timeback handler to your hooks:src/hooks.server.ts
Alternative: Route-Based Handler
For more control, you can use a route-based approach instead of hooks:src/routes/api/timeback/[...path]/+server.ts
Client Setup
Initialize Timeback in your root layout:src/routes/+layout.svelte
Usage
Use stores in components:src/routes/+page.svelte