
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.
A TypeScript library for typed attributes and modifiers with deterministic evaluation

A lightweight, type-safe TypeScript library for building item modification systems with deterministic evaluation.
🔒 Type-Safe - Complete compile-time validation with TypeScript inference
⚡ Performant - Zero runtime dependencies, efficient evaluation algorithms
🎯 Deterministic - Consistent results with predictable modifier stacking
🧩 Flexible - Works with any domain: games, configuration systems, calculations
🛠️ Developer-Friendly - Fluent API with comprehensive error handling
import { defineConfig, createEngine } from "mod-engine";
// Define your domain
const config = defineConfig({
metrics: ["Health", "Damage", "Speed"] as const,
operations: ["sum", "multiply"] as const,
attributes: [
{
key: "Rarity",
kind: "enum",
values: ["Common", "Rare", "Epic"] as const,
},
{ key: "Level", kind: "number", min: 1, max: 100 },
] as const,
});
const engine = createEngine(config);
// Prefer initializing attributes from a defaults object
const attributeDefaults = {
Rarity: "Epic" as const,
Level: 50,
};
// Build items with modifiers using native bulk attribute setter
const epicSword = engine
.builder("Epic Sword")
.setAttributes(attributeDefaults)
.increase("Damage")
.by(100)
.when({ op: "eq", attr: "Rarity", value: "Epic" })
.multiply("Damage")
.by(1.5)
.build();
// Get final stats
const result = engine.evaluate(epicSword);
console.log(result.metrics); // { Health: 0, Damage: 150, Speed: 0 }
npm install mod-engine
npx create-mod-engine-app my-app
# or
git clone https://github.com/brandon-irving/mod-engine
cd mod-engine && npm start
MIT - Build amazing systems with confidence!
FAQs
A TypeScript library for typed attributes and modifiers with deterministic evaluation
The npm package mod-engine receives a total of 9 weekly downloads. As such, mod-engine popularity was classified as not popular.
We found that mod-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.