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 ​

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

const url = open()

Open URL ​

Opens URL in the system's default web browser.

{{currentMethod}}
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.

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

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

Launch Game ​

Runs an application. It will be installed if necessary.

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

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

Install Application ​

Installs an application.

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

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

Uninstall Application ​

Deletes the specified app's cache files.

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

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

Validate Local Files ​

Validates the local files of an app.

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

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

Friends Actions ​

Opens Friends window with optional action.

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

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

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

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

Open Settings ​

Opens Steam settings page.

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

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

Open Component ​

Opens a Steam window/component.

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

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

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

Opens a Steam navigation window without making it active.

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

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

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

const url = connect({
  ip: '192.0.2.1',
  port: 27015,
})
{{currentMethod}}
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.

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

const url = exit()

App News ​

Opens up the news page for an app.

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

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

Game Properties ​

Opens the properties for the specified game.

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

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

Controller Config ​

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

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

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

Backup ​

Opens up the Backup Wizard and checks the specified application.

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

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

Support ​

Launches the Steam Support utility.

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

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

Named Pages ​

Opens a special, named web pages in Steam.

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

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

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

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