Skip to main content

Overview

The Timeback SDK provides a Nuxt adapter using server middleware.

Installation

Server Setup

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

Server Middleware

Create middleware to handle Timeback routes:
server/middleware/timeback.ts

Alternative: Route-Based Handler

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

Client Provider

Wrap your app with the TimebackProvider:
app.vue

Usage

For the full client-side API, see the Vue client adapter.
Use composables in components:
components/UserStatus.vue

Next Steps

Vue Client

Client-side Vue integration

Identity

Authentication options

Custom Activities

Track learning sessions