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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@harioms1522/k8s-quiz-game

v1.1.2

Published

A React component for a Kubernetes learning RPG quiz game

Downloads

323

Readme

Kubernetes Chronicles - RPG Quiz Game

A React component for an interactive RPG-style quiz game to learn Kubernetes. This component can be easily integrated into your portfolio or other React projects.

Features

  • 🎮 RPG-style progression system with levels, XP, and abilities
  • 📚 Four acts covering Kubernetes fundamentals to advanced topics
  • ✅ Interactive quiz system with 20 questions per quest
  • 🏆 Achievement system
  • 📖 Spellbook with quick kubectl commands
  • 💾 Local storage persistence
  • 🎨 Beautiful dark theme with RPG aesthetics

Installation & Usage

Option 1: Run as Standalone App

Perfect for development, testing, or deploying as a standalone application.

# Install dependencies
npm install

# Run in development mode
npm start

# Build for production
npm run build:app

The app will run on http://localhost:3000 with hot reload enabled.

Option 2: Use as NPM Package

Install and use in your own React application:

# Install the package
npm install k8s-quiz-game

Then use in your React app:

import K8sQuizGame from 'k8s-quiz-game';

function App() {
  return <K8sQuizGame />;
}

That's it! The quiz data is bundled with the component - no additional setup needed.

Building the Package

To build the package for publishing:

npm run build:package
# or
npm run build

This creates a dist folder ready for publishing to npm.

Project Structure

k8s-quiz-game/
├── src/
│   ├── components/
│   │   ├── K8sQuizGame.js          # Main component
│   │   ├── CharacterSheet.js       # Character stats and XP
│   │   ├── ActsContainer.js        # Quest acts
│   │   ├── QuizModal.js            # Quiz interface
│   │   ├── AchievementsGrid.js     # Achievements display
│   │   ├── Spellbook.js            # Quick commands
│   │   └── Toast.js                # Toast notifications
│   ├── hooks/
│   │   └── useGameState.js         # State management hook
│   ├── data/
│   │   └── gameData.js             # Game data (levels, acts, etc.)
│   └── index.js
├── docs/
│   ├── quiz_game_basic.html        # Original HTML version
│   └── quiz_game_data.json         # Quiz questions data
└── public/

Quiz Data

The quiz questions are loaded from docs/quiz_game_data.json. The JSON structure should be:

{
  "quest-id": {
    "title": "Quest Title",
    "questions": [
      {
        "tier": "beginner|intermediate|advanced",
        "question": "Question text?",
        "options": ["Option A", "Option B", "Option C", "Option D"],
        "correct": 0,
        "explanation": "Explanation text"
      }
    ]
  }
}

Customization

Styling

All components use CSS Modules. You can customize the theme by modifying the CSS variables in each component's .module.css file:

:root {
  --bg: #0d0a06;
  --ember: #f97316;
  --sage: #4ade80;
  /* ... */
}

Game Data

Modify src/data/gameData.js to customize:

  • Levels and XP requirements
  • Acts and quests
  • Achievements
  • Spells (commands)

State Management

The game state is persisted in localStorage with the key k8s_rpg_v3. The state includes:

  • Completed quests
  • Unlocked achievements

Development

# Start development server
npm start

# Build for production
npm run build

# Run tests
npm test

License

MIT

Credits

Original design inspired by RPG-style learning platforms. Converted from HTML to React for better reusability and integration.