Skip to content

About

Vue 3 gamification library for tracking reading habits and rewarding engagement

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

@diane-winflowz/gamification

A Vue 3 gamification library with badges, streaks, progress tracking, and confetti celebrations.

Installation

npm install github:dianedef/gamification

Usage

<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>

Components

  • BadgeCard - Display a single badge
  • BadgeGrid - Display a grid of badges
  • StreakCounter - Show current streak
  • ProgressBar - Visual progress indicator
  • AchievementToast - Toast notification for achievements
  • GamificationDashboard - Full dashboard with all features

Composables

  • useGamification() - Main composable with all features
  • useBadges() - Badge management
  • useStreak() - Streak tracking
  • useProgress() - Progress tracking
  • useReadTracker() - Reading progress tracking

Requirements

  • Vue 3.4+

About

Vue 3 gamification library for tracking reading habits and rewarding engagement

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages