npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2025 โ€“ย Pkg Stats / Ryan Hefner

gamify-ui-core

v1.0.1

Published

๐Ÿš€ The ultimate gamification engine for modern web applications. Framework-agnostic, real-time leaderboards, custom rule engine, streaks, missions, and AI-powered features.

Readme

The Complete Gamification Engine for Modern Frontend Apps

npm version License: MIT TypeScript Framework Agnostic

Transform users into players. Turn sessions into streaks. Make your UI unforgettable.

๐Ÿ“ฆ Installation

npm install @gamify-ui/core
# or
yarn add @gamify-ui/core
# or
pnpm add @gamify-ui/core

๐Ÿš€ Minimal Usage

import { GamifyEngine, createUser, triggerEvent } from '@gamify-ui/core';

// Initialize the gamification engine
const gamify = new GamifyEngine({
  rules: {
    'first-click': {
      trigger: 'click',
      reward: { xp: 10, badge: 'First Steps' }
    }
  }
});

// Create a user
const user = createUser('user-123');

// Trigger an event
triggerEvent(user, 'click', { element: 'button' });

๐ŸŽฎ Why @gamify-ui/core Will Change the Way You Build Frontend Apps

Gamification isn't a gimmick โ€” it's a proven strategy to boost motivation and loyalty. @gamify-ui/core gives you a developer-first, framework-agnostic engine that adapts to any frontend stack and backend.

๐Ÿง  Built for Developers. Loved by Users.

  • ๐ŸŽฏ Custom Rule Engine - Trigger XP, badges, or rewards on any event โ€” scrolls, clicks, views, time spent, combos โ€” all defined in simple JSON or code
  • ๐Ÿ† Real-Time Leaderboards - Show global or scoped rankings with live updates (Firebase/REST). Drive competition and virality
  • ๐Ÿ•น๏ธ Streaks, Missions & Daily Challenges - Habit-building logic to increase DAUs and session frequency. Think Duolingo-style growth โ€” now in your app
  • ๐Ÿงพ User Reward Logs + Export - Let users see their growth. Export badge history to PDF/CSV โ€” perfect for LMS, enterprise, or compliance
  • ๐Ÿ”Œ Ecosystem Integrations - Trigger Slack/Discord alerts, sync with LMS, gamify GitHub actions, and more
  • ๐Ÿง  Optional AI Add-On - Auto-suggest missions and badges based on user behavior. Train models to maximize retention or A/B test reward timing
  • โšก Framework Agnostic + Official Plugins - Works with React, Vue, Angular, or plain JS. Seamless integration across stacks
  • ๐ŸŽจ Theming, Animation & Sound Packs - Delight users with badge popups, XP transitions, sparkles, level-up sounds โ€” all skinnable and theme-ready

๐Ÿ”ฅ What Makes @gamify-ui/core Go Viral?

  • โœ… Built-in virality - Leaderboards, social sharing triggers, community missions
  • โœ… Developer-first - Clean API, powerful hooks, reactive state, full TypeScript support
  • โœ… Universally needed - Gamification for LMS, SaaS, fitness, e-commerce, finance, education, productivity
  • โœ… Share-worthy UX - Reward animations and badge popups people want to post on LinkedIn, Twitter, Instagram
  • โœ… Growth Loop Ready - Drives return visits, higher retention, and social bragging rights

๐ŸŽฏ Advanced Features

Custom Rule Engine

const advancedRules = {
  'combo-master': {
    trigger: 'keypress',
    condition: {
      combo: ['ctrl', 'shift', 's'],
      timeWindow: 2000
    },
    reward: { xp: 100, badge: 'Combo Master' }
  },
  'time-spent': {
    trigger: 'session',
    condition: { duration: 300000 }, // 5 minutes
    reward: { xp: 25, streak: 1 }
  }
};

Real-Time Leaderboards

import { Leaderboard } from '@gamify-ui/core';

const leaderboard = new Leaderboard({
  scope: 'global',
  updateInterval: 5000,
  display: {
    topUsers: 10,
    showUserRank: true
  }
});

// Subscribe to updates
leaderboard.onUpdate((rankings) => {
  console.log('New rankings:', rankings);
});

Streaks & Missions

import { StreakManager, MissionSystem } from '@gamify-ui/core';

const streakManager = new StreakManager({
  types: ['daily', 'weekly', 'monthly'],
  rewards: {
    daily: { xp: 10, multiplier: 1.1 },
    weekly: { xp: 100, badge: 'Week Warrior' },
    monthly: { xp: 500, badge: 'Month Master' }
  }
});

const missionSystem = new MissionSystem({
  missions: [
    {
      id: 'first-week',
      title: 'Complete Your First Week',
      description: 'Log in for 7 consecutive days',
      goal: { type: 'streak', value: 7 },
      reward: { xp: 200, badge: 'Week Warrior' }
    }
  ]
});

๐ŸŽจ Theming & Customization

import { ThemeProvider } from '@gamify-ui/core';

const customTheme = {
  colors: {
    primary: '#6366f1',
    secondary: '#8b5cf6',
    success: '#10b981',
    warning: '#f59e0b',
    error: '#ef4444'
  },
  animations: {
    badgePopup: 'bounce-in 0.5s ease-out',
    xpGain: 'slide-up 0.3s ease-out'
  },
  sounds: {
    levelUp: '/sounds/level-up.mp3',
    achievement: '/sounds/achievement.mp3'
  }
};

<ThemeProvider theme={customTheme}>
  <YourApp />
</ThemeProvider>

๐Ÿ”Œ Ecosystem Integrations

Slack/Discord Notifications

import { NotificationService } from '@gamify-ui/core';

const notifications = new NotificationService({
  integrations: {
    slack: {
      webhook: process.env.SLACK_WEBHOOK_URL,
      channel: '#achievements'
    },
    discord: {
      webhook: process.env.DISCORD_WEBHOOK_URL,
      channel: 'achievements'
    }
  }
});

// Automatically notify when user achieves something
notifications.onAchievement(user, achievement);

LMS Integration

import { LMSConnector } from '@gamify-ui/core';

const lmsConnector = new LMSConnector({
  platform: 'canvas', // or 'blackboard', 'moodle', etc.
  apiKey: process.env.LMS_API_KEY,
  syncOptions: {
    grades: true,
    attendance: true,
    achievements: true
  }
});

๐Ÿ“Š Analytics & Insights

import { Analytics } from '@gamify-ui/core';

const analytics = new Analytics({
  tracking: {
    events: true,
    conversions: true,
    retention: true
  },
  export: {
    formats: ['csv', 'pdf', 'json'],
    schedule: 'weekly'
  }
});

// Get insights
const insights = await analytics.getInsights({
  timeRange: 'last-30-days',
  metrics: ['engagement', 'retention', 'conversion']
});

๐Ÿš€ Perfect For

  • EdTech & LMS Platforms - Gamify learning paths and course completion
  • E-commerce Loyalty Programs - Reward purchases and engagement
  • Productivity & Habit Apps - Build streaks and daily challenges
  • Dashboards & Admin Panels - Make data entry and management fun
  • SaaS Onboarding Journeys - Guide users through feature discovery
  • Developer Communities - Gamify contributions and knowledge sharing

๐Ÿ“š Documentation

๐Ÿงช Testing

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Run e2e tests
npm run test:e2e

๐Ÿ“„ License

MIT License - see the LICENSE file for details.

๐ŸŒ Make It Go Viral

Tag your product with #gamify-ui, share your gamified UI screenshots, and challenge others to beat your leaderboard.

Let's make UI fun again โ€” and unforgettable.


Ready to level up your app?
Get started with @gamify-ui/core today and join the global gamification movement.

Star on GitHub Follow on Twitter Join Discord