timeback-client
OfficialAccurate time and XP tracking in browser apps
Authorsuperbuilders
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Browser applications need consistent, reliable activity telemetry for learning experiences but implementing heartbeat time tracking, visibility-aware pausing, exit delivery, and completion metrics across frameworks is error-prone and inconsistent. This Skill standardizes client-side instrumentation so teams can capture time spent, completion events, and XP in a predictable, framework-agnostic way.
Core Features & Use Cases
- Cross-framework TypeScript client: Adapters and patterns for React/Next.js, Vue/Nuxt, Svelte/SvelteKit, Solid/SolidStart, and a framework-agnostic createClient option.
- Full activity lifecycle: Start activities, automatic heartbeat time tracking, pause/resume on visibility changes, sendBeacon on exit, and end with completion metrics (xpEarned, questions, pctComplete).
- Production-ready guidance: Enforces one-activity-at-a-time, recommends onError handlers, and describes integration with the server adapter mounted at /api/timeback/*.
- Use case: Instrument quizzes, lessons, reading sessions, and dashboards to record time-on-task and award XP where scoring data exists.
Quick Start
Wrap your app with TimebackProvider or call initTimeback for Svelte, start approved activities with Activity.start including course metadata, and call Activity.end with xpEarned and available metrics when the user completes the activity.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: timeback-client Download link: https://github.com/superbuilders/timeback-sdk-skills/archive/main.zip#timeback-client Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.