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 🙏

© 2024 – Pkg Stats / Ryan Hefner

steam-game-browser

v1.3.5

Published

Steam game browser

Downloads

5

Readme

Steam game browser

Search any game in Steam

You can search by App ID or App Name, example:

const sgb = require("steam-game-browser")

// Search a game by name
sgb.searchByName("Grand Theft Auto V", (err, data) => {
    if (err) return console.error(err) // If the game isn't found or you didn't add a string
    console.log(data) // Read the Game Object section, this shows in the console the name, the AppID, required age, if it's free, controller support, dlc, detailed description, short description
})

// Search a game by ID
sgb.searchById("271590", (err, data) => {
    if (err) return console.error(err) // If the game isn't found or you didn't add a string or integer
    console.log(data) // Read the Game Object section, this shows in the console the name, the AppID, required age, if it's free, controller support, dlc, detailed description, short description
})

Game Object

The game object is something like this:

{
    "type": "game",
    "name": "Some game name",
    "steam_appid": "123121231212",
    "required_age": "18",
    "is_free": true,
    "detailed_description": "It's a game, a normal game...",
    "about_the_game": "You're looking a example of a game object",
    "short_description": "Normal game",
    "supported_languages": "English*, Spanish*. * languages with full audio support",
    "header_image": "https//steam-cdn...",
    "website": "some.game",
    "pc_requirements": {
        "minimum": "Basic PC",
        "recommended": "Ultra PC"
    },
    "mac_requirements": {
        "minimum": "Have money to a Mac",
        "recommended": "The lastest Mac"
    },
    "linux_requirements": {
        "minimum": "Have a PC with Linux OS",
        "recommended": "Have a PC with Windows..."
    },
    "developers": ["Drylotrans"],
    "publishers": ["Drylotrans"],
    "price_overview": {
        "currency": "USD",
        "initial": 99999999999,
        "final": 99999999999,
        "discount_percent": 0,
        "initial_formatted": "",
        "final_formatted": 99.999.999.999
    },
    "packages": [1212312, 12312312, 123121212, 1212312],
    "package_groups": [
        {
            "name": "default",
            "title": "Buy my game",
            "description": "Please don't buy it",
            "selection_text": "Select a purcharse option",
            "save_text": "",
            "display_type": 0,
            "is_recurring_subscription": false,
            "subs": [
                {
                    "packageid": 123123,
                    "percent_savings_text": "",
                    "percent_savings": "",
                    "option_text": "My game - 99,999,999,999",
                    "option_description": "",
                    "can_get_free_license": "0",
                    "is_free_license": false,
                    "price_in_cents_with_discount": 99.999.999.999
                }
            ]
        }
    ],
    "platforms": {
        "windows": true,
        "mac": true,
        "linux": true
    },
    "metacritic": {
        "score": 100,
        "url": "https//metacrtic.c"
    },
    "categories": [
        {
            "id": 2,
            "description": "Single-player"
        },
        {
            "id": 1,
            "description": "Multi-player"
        },
        {
            "id":22,
            "description":"Steam Achievements"
        },
        {
            "id":28,
            "description":
            "Full controller support"
        }
    ],
    "genres": [
        {
            "id": "1",
            "description": "Action"
        },
        {
            "id": "25",
            "description": "Adventure"
        }
    ],
    "screenshots": [
        {
            "id": 0,
            "path_thumbnail": "https//steamcdn...",
            "path_full": "https//steamcdn..."
        }
    ],
    "movies": [
        {
            "id": 123112312,
            "name": "My game trailer",
            "thumbnail": "https//steamcdn...",
            "webm": {
                "480": "https//steamcdn...",
                "max": "https//steamcdn..."
            },
            "highlight": true
        }
    ],
    "recommendations": {
        "total": 12321123123213123123123
    },
    "achievements": {
        "total": 12121212,
        "highlighted": [
            {
                "name": "Thanks for buy it",
                "path": "https//steamcdn..."
            }
        ]
    },
    "release_date": {
        "coming_soon": false,
        "date": "01 Feb, 2019"
    },
    "support_info": {
        "url": "https//steamcdn...",
        "email": "[email protected]"
    },
    "background": "https//steamcdn...",
    "content_descriptors": {
        "ids": [1],
        "notes": null
    }
}