Skip to main content

Overview

The Timeback SDK provides a SolidStart adapter using middleware.

Installation

Server Setup

Create a Timeback instance:
src/lib/timeback.ts

Middleware

Create middleware to handle Timeback routes:
src/middleware.ts

Alternative: Route-Based Handler

For more control, you can use a route-based approach instead of middleware:
src/routes/api/timeback/[...path].ts

Client Provider

Wrap your app with the TimebackProvider:
src/app.tsx

Usage

For the full client-side API, see the Solid client adapter.
Use primitives in components:
src/components/UserStatus.tsx

Next Steps

Solid Client

Client-side Solid integration

Identity

Authentication options

Custom Activities

Track learning sessions