Playground

# Change a running game's config.

The game is an app that reads its settings from a hotcfg bin. Edit its config, push it, promote it or roll it out to some players, and watch it change while it plays. Follow the missions, or just play. It all runs in your browser.

Mission 1 of 8

## Meet the game

The game under *Your phone* is the app: it fetches its config from production and plays by it. The *Test phone* runs the same game against staging, and the four small screens are other players. Here every phone fetches every 4 seconds so you see changes quickly; a real app fetches at startup and when it returns to the foreground.

1. Play: click the game, then use `←` `→`, or drag across it. Leave it alone and it plays itself.
2. Look at `config.json` below: speed, lives, color, how often things drop, a feature flag and a banner.

[Concepts](https://hotcfg.run/docs/concepts) [Fetching config](https://hotcfg.run/docs/guides/fetching)

Your copy of the game's config. Edit it, then Push to staging. Colors: orange, blue, green, purple, pink, yellow.

config.jsoneditable

Rollout share 25%

staging v1 · production v1 Production already has what staging has: push a change first.

terminal

# What you do here prints what the hotcfg CLI would. Nothing is sent anywhere.

## Now do it with your own app.

Create a bin, push a config, and read it from your app with the fetch recipe for your language. The free plan has every safety feature you used here except rollouts.

[Sign up free](https://hotcfg.run/login) [Read the quickstart](https://hotcfg.run/docs/quickstart)

What's real here

- The schema check is the one the dashboard's editor runs, and the API checks the same rules.
- `config.ts` is what `hotcfg types --lang typescript` writes for that schema.
- Staging, promote, rollouts by bucket, rollback and the fetch with its ETag and two-second fallback follow the [docs](https://hotcfg.run/docs).
- Simulated: the bin, the network and the timing. Nothing leaves this page.
