
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
quiz-gamification-engine
Advanced tools
A lightweight, pluggable quiz engine for gamification campaigns — TypeScript powered, browser-ready, and customizable.
npm install quiz-gamification-engine
import QuizGame from "quiz-gamification-engine";
const game = new QuizGame({
questions: [
{
question: "What's your favorite color?",
choices: [
{ text: "Red", score: 10 },
{ text: "Blue", score: 20 },
],
tags: ["personality"],
},
],
timeLimitPerQuestion: 15,
totalTimeLimit: 60,
scoringBuckets: [
{ min: 0, max: 30, label: "Low" },
{ min: 31, max: 70, label: "Medium" },
{ min: 71, max: 100, label: "High" },
],
onStart: () => console.log("Started"),
onAnswer: (choice, score) =>
console.log("Answered:", choice, "Score:", score),
onComplete: (score, bucket) =>
console.log(`Final Score: ${score} (${bucket})`),
});
game.start();
Clone the repo and run:
npm install
npm run build
npx serve
Then open examples/demo.html in your browser.
start(), reset(), submitAnswer(index)saveState(), loadState()enterReviewMode(), getReviewData()getFinalScore(), getScoreBucket(), getStatus()status: "idle" | "in-progress" | "completed"reviewMode: booleananswerHistory: { questionIndex, choiceIndex, score }[]| Option | Description |
|---|---|
encryptStorage | Base64 encode saved data in localStorage |
storageKey | LocalStorage key for persistence |
questionTags | Filter from a pool of tagged questions |
shuffleQuestions | Randomize question order |
npm run build
npm test
MIT © 2025 armin shaikhy
FAQs
A customizable quiz gamification engine built with TypeScript.
We found that quiz-gamification-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.