source-query-ts
TypeScript 1
// Overview
Zero dependency TypeScript A2S and RCON client for Valve Source Engine and CS2 servers. Query player counts, server info and run remote console commands, fully typed.
// Built with
TypeScriptNode.jsRCONA2S
// The problem
Querying Source / CS2 servers (player count, info, RCON) usually pulls in a dependency, and most clients are loosely typed.
// Approach
- A zero-dependency A2S and RCON client in TypeScript.
- Player count, server info and remote console commands.
- Fully typed end to end.
// Engineering challenges
- Implementing the binary A2S and RCON protocols by hand.
- Handling partial reads and challenge-response correctly.
- Strong types without a dependency to lean on.