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

steam-server-status-challenge-fix

v2.1.2

Published

A steam server status library for node

Downloads

5

Readme

Steam Server Status library

How to get it

The easiest way to get it is via [npm]

npm install steam-server-status

If you want to run the latest version (i.e. later than the version available via [npm]) you can clone this repo, then use [npm] to link-install it:

npm link /path/to/your/clone

Of course, you can just clone this, and manually point at the library itself, but I really recommend using [npm]!

How to use it

The library provides basic functionality for requesting the status and statistics of a steam source engine game. The simplest use case you just make a call like this:

var steamServerStatus = require(steam-server-status');
steamServerStatus.getServerStatus(
    'tf.bonta-kun.net', 27015, function(serverInfo) {
        if (serverInfo.error) {
            console.log(serverInfo.error);
        } else {
            console.log("game: " + serverInfo.gameName);
            console.log("server name: " + serverInfo.serverName);
            console.log("players: " + serverInfo.numberOfPlayers + "/" + serverInfo.maxNumberOfPlayers)
        }
});

This will connect to a server and split out ot the logs what game the server is playing, what the server name is listed as and how many people are playing on it.

Server Info Object

This object hems very closely to the Valve's response format documentation.

error

This is used to check if there was an error talking to the server, it will be undefined if there were no problems, if it's populated it'll be a error message.

version

Version, as far as I can tell it's always 49.

serverName

This is what the server's name is listed as. It corresponds to the hostname attribute in server.cfg, but is not a network hostname.

map

Current map.

gameDirectory

Game directory, can be used to determine what game is being played.

gameName

A nicer representation of the game name, extracted from the value for gameDirectory.

gameDescription

The game description returned by the server, it's generally slightly less than acurate.

applicationId

Steam application id. See this page if you're interested in learning more.

numberOfPlayers

Current number of players on teh server.

maxNumberOfPlayers

Maximum (visible) number of players.

numberOfBots

Number of bots currently running around on ther server.

dedicatedServer

If the server is a dedicated server or not.

operatingSystem

Host operating system of the server. 'l' for Linux, 'w' for Windows.

passwordRequired

Boolean to say if the server requires a password.

secure

Boolean to say whether is VAC secured or not.

gameVersion

Current version of the game the server is running.

hostname

This is just echoed back from the request.

port

This is just echoed back from the request.