A Vue 3 gamification library with badges, streaks, progress tracking, and confetti celebrations.
npm install github:dianedef/gamification<script setup>
import {
useGamification,
useBadges,
useStreak,
useProgress,
BadgeCard,
BadgeGrid,
StreakCounter,
ProgressBar,
AchievementToast,
GamificationDashboard
} from '@diane-winflowz/gamification'
const { badges, unlockBadge } = useBadges()
const { streak, incrementStreak } = useStreak()
const { progress, addProgress } = useProgress()
</script>
<template>
<GamificationDashboard />
<BadgeGrid :badges="badges" />
<StreakCounter :streak="streak" />
<ProgressBar :progress="progress" />
</template>BadgeCard- Display a single badgeBadgeGrid- Display a grid of badgesStreakCounter- Show current streakProgressBar- Visual progress indicatorAchievementToast- Toast notification for achievementsGamificationDashboard- Full dashboard with all features
useGamification()- Main composable with all featuresuseBadges()- Badge managementuseStreak()- Streak trackinguseProgress()- Progress trackinguseReadTracker()- Reading progress tracking
- Vue 3.4+