Skip to main content

NodeMod

Bringing Node.js to Half-Life through metamod

Node.jsHalf-Life + Node.js

Node.js in Half-Life

NodeMod brings the full power of Node.js 24.6.0 directly into Half-Life through metamod, enabling modern JavaScript/TypeScript development for classic games.

import nodemodCore from '@nodemod/core'; const players : Player[] = await nodemodCore.players.getAll(); players .forEach( player => { console .log(player. netname ); }); TSIntelliSense.netname: string.health: number.origin: Vector3TypeScript API

Rich API & TypeScript Support

Use @nodemod/core for comprehensive TypeScript definitions and utilities to interact with Half-Life's engine, players, and entities.

nodemod-plugin$npminstall @nodemod/core$npmrun buildTypeScript compiled successfully$./hlds_linux-game valveindex.tsnpmgitVSModern Workflow

Modern Development

Write Half-Life mods using modern JavaScript features, npm packages, and familiar development tools while targeting the classic GoldSrc engine.