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

@gleb.askerko/componentkit-js

v1.0.10

Published

Lightweight, framework-agnostic JavaScript component library with progress gift components

Downloads

156

Readme

ComponentKit.js

A lightweight, framework-agnostic JavaScript component library designed for modern web applications.

Features

  • ProgressGift Component: Gamified progress tracking with point accumulation and reward systems
  • Framework Agnostic: Works with any web framework or vanilla JavaScript
  • Lightweight: Minimal dependencies and small footprint
  • Version Display: Built-in version indicator for debugging and compatibility
  • Customizable: Flexible styling and configuration options

Installation

npm install @gleb.askerko/componentkit-js

Quick Start

ProgressGift Component

import { ProgressGift } from '@gleb.askerko/componentkit-js';

// Create a progress gift component
const progressGift = new ProgressGift({
  maxPoints: 100,
  giftIcon: '🎁',
  showVersion: true // Shows v1.0.0 in top-left corner
});

// Render to DOM
progressGift.render('#progress-container');

// Add points
progressGift.addPoints(25);

Configuration Options

const progressGift = new ProgressGift({
  maxPoints: 100,        // Points needed for each gift
  giftIcon: '🎁',        // Gift emoji/icon
  showVersion: true,     // Show version badge (default: true)
  className: 'custom-class' // Additional CSS classes
});

API Methods

  • render(selector) - Mount component to DOM element
  • addPoints(amount) - Add points with animation
  • restart() - Reset component to initial state
  • initProgressGift() - Initialize/reinitialize component

Styling

The component comes with built-in CSS classes that you can customize:

  • .ck-progress-gift-wrapper - Main container
  • .ck-progress-gift-bar - Progress bar
  • .ck-progress-gift-fill - Progress fill
  • .ck-progress-version - Version badge (top-left corner)

Version Information

Every component displays its version (v1.0.0) in the top-left corner by default. This can be disabled by setting showVersion: false.

Browser Support

  • Modern browsers (ES6+ support)
  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+

License

MIT License - see LICENSE file for details.