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

gamestr

v0.0.1

Published

gamestr

Readme

🎮 Gamestr - Real-time Gamified Progress Dashboard

Live Demo License Nostr Protocol JavaScript

Transform your progress tracking into an engaging, gamified experience with real-time updates via the Nostr protocol

Live DemoFeaturesGetting StartedDocumentation


🚀 Overview

Gamestr is a modern web application that visualizes progress data as an interactive, gamified dashboard. Built on the decentralized Nostr protocol, it provides real-time updates, level progression, achievements, and beautiful visualizations that make tracking progress fun and engaging.

✨ Key Features

  • 🎯 Real-time Progress Tracking - Live updates via WebSocket connection to Nostr relays
  • 📊 Dynamic Visualizations - Interactive pie charts showing progress distribution
  • 🎮 Gamification System - Level progression with visual and audio feedback
  • 🏆 Achievement Celebrations - Confetti animations and sound effects for milestones
  • 📱 Responsive Design - Optimized for all devices (desktop, tablet, mobile)
  • 🔌 Decentralized Architecture - Built on Nostr protocol for censorship-resistant data
  • 🎨 Beautiful UI - Modern, clean interface with smooth animations
  • 🔊 Audio Feedback - Optional sound effects for enhanced user experience
  • 🔄 Auto-reconnection - Automatic WebSocket reconnection for reliability
  • ⚡ Zero Dependencies - Lightweight vanilla JavaScript implementation

📸 Screenshots

🛠️ Technology Stack

  • Frontend: Vanilla JavaScript with ES6+ modules
  • UI Framework: Custom lightweight component system
  • Charts: Chart.js for data visualization
  • Animations: Canvas Confetti for celebrations
  • Protocol: Nostr (Notes and Other Stuff Transmitted by Relays)
  • Styling: Modern CSS3 with responsive design
  • Audio: HTML5 Audio API for sound effects

🚀 Getting Started

Prerequisites

  • Modern web browser with JavaScript enabled
  • Access to a Nostr relay (default: wss://nostr.rocks:4444/)
  • (Optional) Nostr public key for personalized tracking

Quick Start

  1. Clone the repository

    git clone https://github.com/melvincarvalho/gamestr.git
    cd gamestr
  2. Open in browser

    # Open index.html directly
    open index.html
       
    # Or use a local server
    python -m http.server 8000
    # Navigate to http://localhost:8000
  3. Configure (Optional)

    Use URL parameters to customize:

    https://gamestr.vercel.app/?r=wss://your-relay.com&pubkey=your-nostr-pubkey

🌐 Deployment

Gamestr can be deployed to any static hosting service:

Vercel

npm i -g vercel
vercel

GitHub Pages

  1. Push to GitHub repository
  2. Enable GitHub Pages in Settings
  3. Select source branch

Netlify

  1. Connect GitHub repository
  2. Deploy with default settings

📖 Documentation

Architecture

gamestr/
├── index.html          # Main application entry point
├── js/
│   ├── standalone.module.js  # Component framework
│   └── chart.js        # Chart.js library
├── audio/              # Sound effect files
│   ├── Confirmation.ogg
│   ├── save.ogg
│   └── a_happy_start_bell2.mp3
└── favicon.ico         # Application icon

Configuration

URL Parameters

| Parameter | Description | Default | |-----------|-------------|---------| | r | Nostr relay WebSocket URL | wss://nostr.rocks:4444/ | | pubkey | Nostr public key to track | Demo key |

Level System

The gamification system includes 14 levels with progressively higher thresholds:

Level 1:   0 - 4,999 points
Level 2:   5,000 - 10,999 points
Level 3:   11,000 - 18,999 points
...
Level 14:  200,000+ points

Nostr Integration

Gamestr listens for events of kind 33334 from the specified Nostr relay:

{
  "kind": 33334,
  "pubkey": "your-public-key",
  "content": "{\"category1\": 1000, \"category2\": 2000}"
}

Customization

Adding New Sound Effects

Place audio files in the audio/ directory and update the HTML:

<audio id="customSound" src="./audio/custom.ogg"></audio>

Modifying Level Colors

Edit the CSS classes in index.html:

.level-1 .progress-fill {
  background: linear-gradient(90deg, #2196f3, #1976d2);
}

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Keep the codebase lightweight and dependency-free
  • Ensure mobile responsiveness
  • Test WebSocket reconnection logic
  • Follow existing code style and patterns
  • Update documentation for new features

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

🔗 Links