Skip to content

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

On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.

Open Steam

On-Demand
ts
import { open } from 'protocol-launcher/steam'

const url = open()

Open URL

Opens URL in the system's default web browser.

On-Demand
ts
import { openUrl } from 'protocol-launcher/steam'

const url = openUrl({
  url: 'https://store.steampowered.com/',
})

Open Store Page

Opens up the store for an app.

On-Demand
ts
import { store } from 'protocol-launcher/steam'

const url = store({
  id: 730,
})

Launch Game

Runs an application. It will be installed if necessary.

On-Demand
ts
import { launch } from 'protocol-launcher/steam'

const url = launch({
  id: 730,
  args: '-windowed',
})

Install Application

Installs an application.

On-Demand
ts
import { install } from 'protocol-launcher/steam'

const url = install({
  id: 8230,
})

Uninstall Application

Deletes the specified app's cache files.

On-Demand
ts
import { uninstall } from 'protocol-launcher/steam'

const url = uninstall({
  id: 8230,
})

Validate Local Files

Validates the local files of an app.

On-Demand
ts
import { validate } from 'protocol-launcher/steam'

const url = validate({
  id: 730,
})

Friends Actions

Opens Friends window with optional action.

On-Demand
ts
import { friends } from 'protocol-launcher/steam'

// Add a friend
const url = friends({
  action: 'add',
  id: '12345678',
})
On-Demand
ts
import { friends } from 'protocol-launcher/steam'

// Send a message
const url = friends({
  action: 'message',
  id: '12345678',
})
On-Demand
ts
import { friends } from 'protocol-launcher/steam'

// Set status to online
const url = friends({
  action: 'status/online',
})

Open Settings

Opens Steam settings page.

On-Demand
ts
import { settings } from 'protocol-launcher/steam'

const url = settings({
  page: 'downloads',
})

Open Component

Opens a Steam window/component.

On-Demand
ts
import { openComponent } from 'protocol-launcher/steam'

const url = openComponent({
  component: 'bigpicture',
})
On-Demand
ts
import { openComponent } from 'protocol-launcher/steam'

const url = openComponent({
  component: 'console',
})

Opens a Steam navigation window without making it active.

On-Demand
ts
import { nav } from 'protocol-launcher/steam'

const url = nav({
  component: 'downloads',
})
On-Demand
ts
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.

On-Demand
ts
import { connect } from 'protocol-launcher/steam'

const url = connect({
  ip: '192.0.2.1',
  port: 27015,
})
On-Demand
ts
import { connect } from 'protocol-launcher/steam'

const url = connect({
  ip: '192.0.2.1',
  port: 27015,
  password: 'secret',
})

Exit Steam

Exits the Steam application.

On-Demand
ts
import { exit } from 'protocol-launcher/steam'

const url = exit()

App News

Opens up the news page for an app.

On-Demand
ts
import { appNews } from 'protocol-launcher/steam'

const url = appNews({
  id: 730,
})

Game Properties

Opens the properties for the specified game.

On-Demand
ts
import { gameProperties } from 'protocol-launcher/steam'

const url = gameProperties({
  id: 730,
})

Controller Config

Opens the controller configurator (Steam Input) for the specified game.

On-Demand
ts
import { controllerConfig } from 'protocol-launcher/steam'

const url = controllerConfig({
  id: 730,
})

Backup

Opens up the Backup Wizard and checks the specified application.

On-Demand
ts
import { backup } from 'protocol-launcher/steam'

const url = backup({
  id: 730,
})

Support

Launches the Steam Support utility.

On-Demand
ts
import { support } from 'protocol-launcher/steam'

const url = support({
  params: '730',
})

Named Pages

Opens a special, named web pages in Steam.

On-Demand
ts
import { url } from 'protocol-launcher/steam'

const url = url({
  page: 'Store',
})
On-Demand
ts
import { url } from 'protocol-launcher/steam'

const url = url({
  page: 'SteamWorkshop',
})
On-Demand
ts
import { url } from 'protocol-launcher/steam'

const url = url({
  page: 'StoreAppPage',
  param: '730',
})