Steam
Steam is a digital distribution platform developed by Valve Corporation for purchasing and playing video games. Protocol Launcher allows you to generate deep links to interact with Steam client, such as launching games, opening store pages, managing friends, and more.
Usage
There are two ways to use this library:
- On-Demand import from subpaths enables tree-shaking and keeps bundles small.
- Full Import from the root package is convenient but includes all app modules.
Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.
Select Installation Method
Open Steam
import { open } from 'protocol-launcher/steam'
const url = open()Open URL
Opens URL in the system's default web browser.
import { openUrl } from 'protocol-launcher/steam'
const url = openUrl({
url: 'https://store.steampowered.com/',
})Open Store Page
Opens up the store for an app.
import { store } from 'protocol-launcher/steam'
const url = store({
id: 730,
})Launch Game
Runs an application. It will be installed if necessary.
import { launch } from 'protocol-launcher/steam'
const url = launch({
id: 730,
args: '-windowed',
})Install Application
Installs an application.
import { install } from 'protocol-launcher/steam'
const url = install({
id: 8230,
})Uninstall Application
Deletes the specified app's cache files.
import { uninstall } from 'protocol-launcher/steam'
const url = uninstall({
id: 8230,
})Validate Local Files
Validates the local files of an app.
import { validate } from 'protocol-launcher/steam'
const url = validate({
id: 730,
})Friends Actions
Opens Friends window with optional action.
import { friends } from 'protocol-launcher/steam'
// Add a friend
const url = friends({
action: 'add',
id: '12345678',
})import { friends } from 'protocol-launcher/steam'
// Send a message
const url = friends({
action: 'message',
id: '12345678',
})import { friends } from 'protocol-launcher/steam'
// Set status to online
const url = friends({
action: 'status/online',
})Open Settings
Opens Steam settings page.
import { settings } from 'protocol-launcher/steam'
const url = settings({
page: 'downloads',
})Open Component
Opens a Steam window/component.
import { openComponent } from 'protocol-launcher/steam'
const url = openComponent({
component: 'bigpicture',
})import { openComponent } from 'protocol-launcher/steam'
const url = openComponent({
component: 'console',
})Navigation
Opens a Steam navigation window without making it active.
import { nav } from 'protocol-launcher/steam'
const url = nav({
component: 'downloads',
})import { nav } from 'protocol-launcher/steam'
const url = nav({
component: 'games/details',
param: '730',
})Connect to Server
Connects the user to the server specified by the IP.
import { connect } from 'protocol-launcher/steam'
const url = connect({
ip: '192.0.2.1',
port: 27015,
})import { connect } from 'protocol-launcher/steam'
const url = connect({
ip: '192.0.2.1',
port: 27015,
password: 'secret',
})Exit Steam
Exits the Steam application.
import { exit } from 'protocol-launcher/steam'
const url = exit()App News
Opens up the news page for an app.
import { appNews } from 'protocol-launcher/steam'
const url = appNews({
id: 730,
})Game Properties
Opens the properties for the specified game.
import { gameProperties } from 'protocol-launcher/steam'
const url = gameProperties({
id: 730,
})Controller Config
Opens the controller configurator (Steam Input) for the specified game.
import { controllerConfig } from 'protocol-launcher/steam'
const url = controllerConfig({
id: 730,
})Backup
Opens up the Backup Wizard and checks the specified application.
import { backup } from 'protocol-launcher/steam'
const url = backup({
id: 730,
})Support
Launches the Steam Support utility.
import { support } from 'protocol-launcher/steam'
const url = support({
params: '730',
})Named Pages
Opens a special, named web pages in Steam.
import { url } from 'protocol-launcher/steam'
const url = url({
page: 'Store',
})import { url } from 'protocol-launcher/steam'
const url = url({
page: 'SteamWorkshop',
})import { url } from 'protocol-launcher/steam'
const url = url({
page: 'StoreAppPage',
param: '730',
})