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

@jhbhan/kings-quiz

v1.1.2

Published

Old testament Kings trivia quiz game

Downloads

8

Readme

Kings Quiz

A trivia game with a retro gaming aesthetic featuring black backgrounds and green neon accents. Test your knowledge across multiple categories with a cyberpunk-inspired interface.

Kings Quiz Screenshot

Features

Gameplay

  • Multiple categories: Successor, Kingdom, Approval, and Prophet King questions
  • Customizable difficulty: Select 5-20 questions per game
  • Real-time scoring with animated progress bar
  • Instant visual feedback for answers
  • Detailed results review with correct answers

Visual Design

  • Black background with green neon accents
  • Scanline effects for authentic retro feel
  • Smooth animations and hover effects
  • Monospace typography for headers
  • Glowing borders and neon-style elements

Responsive Design

  • Mobile-optimized layout
  • Touch-friendly interface
  • Adaptive design for all screen sizes
  • Cross-browser compatibility

Getting Started

Prerequisites

  • Node.js (version 16 or higher)
  • npm or yarn package manager

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/kings-quiz.git
    cd kings-quiz
  2. Install dependencies

    npm install
  3. Start the development server

    npm run dev
  4. Open your browser and navigate to http://localhost:5173

Building for Production

npm run build

The built files will be in the dist directory.

How to Play

  1. Landing Screen: Choose your game settings

    • Select number of questions (5-20)
    • Choose categories to include
    • Click "Start Game"
  2. Gameplay: Answer questions

    • Read each question carefully
    • Click on your chosen answer
    • See immediate feedback with animations
    • Watch your progress bar fill up
  3. Results: Review your performance

    • View your final score and percentage
    • Expand sections to see correct/incorrect answers
    • Click "Play Again" to start a new game

Technology Stack

  • React 18 with TypeScript
  • Vite build tool
  • CSS3 with custom properties and animations
  • React Hooks for state management
  • npm package manager

Project Structure

kings-quiz/
├── src/
│   ├── components/
│   │   ├── Landing.tsx          # Landing page with game settings
│   │   ├── Results.tsx          # Results screen with detailed breakdown
│   │   └── shared/
│   │       ├── Slider.tsx       # Custom slider component
│   │       └── slider.css       # Slider styling
│   ├── KingsQuiz.tsx            # Main game component
│   ├── api.ts                   # API functions for fetching questions
│   ├── types.ts                 # TypeScript type definitions
│   ├── index.css                # Main styles with retro theme
│   └── main.tsx                 # App entry point
├── public/                      # Static assets
├── package.json                 # Dependencies and scripts
└── README.md                    # This file

Customization

Theme Colors

The app uses CSS custom properties for easy theming. Main colors are defined in src/index.css:

:root {
  --neon-green: #00cc33;
  --neon-green-glow: #00cc33;
  --neon-green-dim: #009926;
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
}

Adding New Categories

  1. Update the Category type in src/types.ts
  2. Add category data to your API
  3. Update the categoryNamesMap in src/types.ts

Contributing

  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

License

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

Acknowledgments

  • Inspired by classic arcade games and cyberpunk aesthetics
  • Built with modern web technologies for optimal performance
  • Designed for accessibility and user experience

Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue with detailed information
  3. Include browser version and device information