
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A TypeScript library for fetching game information from the Steam store. This library provides easy-to-use functions for searching games by name and retrieving detailed game information by Steam App ID.
npm install steamgrab
# or
yarn add steamgrab
# or
bun add steamgrab
This package is distributed as TypeScript source files rather than compiled JavaScript, which provides several benefits:
Note that you'll need TypeScript ≥4.5.0 in your project to use this package.
import { Steam } from 'steamgrab';
async function searchGames() {
try {
// Get up to 10 games matching "Portal"
const games = await Steam.getGames('Portal');
console.log(`Found ${games.length} games:`);
games.forEach(game => {
console.log(`${game.title} (${game.appid}) - ${game.price}`);
});
} catch (error) {
if (error instanceof Steam.SteamScraperError) {
console.error('Steam scraper error:', error.message);
} else {
console.error('Error:', error);
}
}
}
searchGames();
import { Steam } from 'steamgrab';
async function getGameDetails(appId: number) {
try {
const game = await Steam.getGameInfoById(appId);
if (game) {
console.log(`Title: ${game.title}`);
console.log(`Release Date: ${game.release}`);
console.log(`Price: ${game.price}`);
console.log(`Image URL: ${game.image}`);
} else {
console.log(`No game found with AppID: ${appId}`);
}
} catch (error) {
if (error instanceof Steam.SteamScraperError) {
console.error('Steam API error:', error.message);
} else {
console.error('Error:', error);
}
}
}
// Get details for Portal 2 (App ID: 620)
getGameDetails(620);
getGames(query: string, limit?: number): Promise<GameInfo[]>Searches for games by name and returns an array of game information.
query: The game name to search forlimit: Maximum number of results to return (default: 10)getFirstGameInfo(query: string): Promise<GameInfo | null>Fetches the first game information result by searching for a game name.
query: The game name to search forNote: This function is deprecated. Use getGames(query, 1) instead.
getGameInfoById(appId: string | number): Promise<GameInfo | null>Fetches game information directly using the Steam API with a game ID.
appId: The Steam app ID of the gameGameInfo Interfaceinterface GameInfo {
title: string;
release: string;
price: string;
image: string | undefined;
appid: number | undefined;
}
# Clone the repository
git clone https://github.com/RedWilly/steamgrab.git
cd steamgrab
# Install dependencies
npm install
# Build the library
npm run build
# Run tests
npm test
MIT
FAQs
A TypeScript library for scraping game information from Steam
We found that steamgrab 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.