Skip to content
View as Markdownllms.txt

Mobile app widgets ​

Home-screen widgets show your game's live numbers without opening the app. There are two styles: Stats (up to four numbers you pick) and Releases (a grid of your deploys, a release garden). A widget shows one game, or All games across every signed-in backend.

Status: early. The widgets read GET /v1/mobile/live on the backend (see Backend requirements). The widget look and the data logic ship over the air, so they can change without a new APK.

Add a widget ​

  1. Long-press the home screen, open Widgets, and choose TypeTorch. Pick a size.
  2. Configure the widget: the game (or All games) and the style, Stats or Releases.
  3. For Stats, pick the four numbers. The app's defaults are session length (last hour), DAU, D1 retention and revenue (last 72 hours).

To change a widget later, open the app's Settings, then Widgets. Changes apply at once.

Sizes ​

The phone picks the layout from the size you give the widget. The release garden shows as many weeks as fit.

SizeStats shownRelease garden
4×2414 weeks
4×1412 weeks
2×2411 weeks
2×13 (2 when very short)24 to 26 weeks

The garden has up to 182 days of history. Days before your backend's deploy history began show as no data, not as zero.

Stats ​

Each Stats widget shows up to four slots. A slot is a number and a small arrow comparing it with the period before.

StatWhat it showsWindow
CCU, servers, peak todayplayers online now, live servers, the highest CCU since 00:00 UTCnow
DAU, WAU, MAUunique players in the last 24 hours, 7 days, 30 daysfixed
New playersplayers whose first-ever session is in the window1 to 72 hours, or 1 to 90 days
D1retention so far today: yesterday's new players back today (grows through the day; the arrow compares with the last complete D1)fixed
D7retention of the latest complete cohortfixed
Session lengthmean length of sessions that ended in the window1 to 72 hours, or 1 to 90 days
Playtimetotal time played in the window, including running sessions1 to 72 hours, or 1 to 90 days
Sessionssessions that ended in the window1 to 72 hours, or 1 to 90 days
RevenueRobux players paid in the window1 to 72 hours, or 1 to 90 days
Payersunique paying players in the window1 to 72 hours, or 1 to 90 days
  • Colours: time units are orange, % is blue, R$ is green. Values are white (dark on the day theme).
  • Arrows: ▲ and ▼ compare the number with the window before it. No arrow shows when that number is unknown.
  • The 2×1 shows the first three slots in a short form.

Release garden ​

The garden draws one cell per UTC day, in columns of seven days. The newest day is in the bottom right and outlined. A release counts on the day it started. It is prod when its channel is prod; any other channel counts as dev.

CellMeaning
Green, darker for moreprod releases that day
Blue, darker for moredev releases that day
Split green and blueboth on the same day (green top left, blue bottom right)
Emptyno release
No fillno data (the backend has no history for that day)

Under the grid the widget shows the prod and dev counts for the period and last prod, for example "2 d ago".

Each game's garden comes from its own deploy history. All games merges the days across games, so a day with a release in any game is coloured.

All games ​

An All games widget fetches every signed-in backend, up to eight at once, and draws the games together.

  • The widget lists up to six games as chips with their icons.
  • Tap a chip to filter the widget to that game. The other chips dim.
  • Tap the picked chip again to clear the filter.
  • The filter is saved for that widget. Tapping a chip redraws from what the widget already has, without a new fetch.

Tap areas on individual parts of the widget need Android 12 or newer. On Android 11 and older, the whole widget opens the app and the refresh corner refreshes it.

Health ​

Health shows how the game is doing right now, next to the numbers. It appears on Stats widgets, on the All games 4×2 and on the release garden's today cell. It comes from the backend's health card, which is cached for a minute.

PartRuleColour
Errorsthe last 60 minutes against the 60 minutes before. ▲4× when errors are at least 1 and at least twice the earlier hour. ▲38% when they rose by more than 10%. ▼61% when they fell by more than 10%. Nothing within ±10%, or when there is no data. ▲ alone when the earlier hour had no errorsred when rising, green when falling
Serversa server is healthy when its Health badge on the Fleet page has no reasons: kernel ok, a heartbeat within 75 seconds, 50 or more TPS, memory 3,000 MB or less. A game with no servers counts as all healthyamber when not all are healthy
Alertsfleet alerts from the last 24 hours that nobody has acknowledged. The All games list shows the newest three across gamesamber when any is open
Today's cell (garden)red when errors are high (at least twice the earlier hour), or when a critical alert from the last hour is among the listed alerts. Amber when any alert is open. Otherwise no ringred or amber ring

On the smallest sizes the errors part shows only the arrow.

Health needs the widget program (see For maintainers). Phones without the widget engine, or with an older backend that sends no health, hide these parts. The numbers still show.

When a widget updates ​

  • Every 30 minutes, on the phone's schedule.
  • When you tap the widget's refresh corner.
  • When you open the app.
  • On every live watch poll of the same game (see Notifications).

A widget that cannot reach its backend keeps its last numbers and shows how old they are. A backend that rejects the token shows "Open TypeTorch to sign in".

Limits ​

  • The widget program has 2 seconds and 16 MB per run. A run that fails shows the widget's unreachable state with the first line of the error, and keeps the last good drawing.
  • The program makes at most eight requests per widget and only to signed-in backends. The phone adds the token. The program never sees a token.
  • Phones without the widget engine keep the older native path. It draws the same widgets without health.

Mockups ​

These are HTML mockups with sample data, made to check the layouts. They are not phone screenshots.

MockupShows
CCU widgets with healththe Stats widgets with health
All games 4×2, variant Cthe All games release garden with health and the latest alerts
Release garden 4×1the one-game release garden in a wide strip
Health 4×1the 4×1 Stats widget with health

A home screen with a 4×2 Stats widget and a 4×2 All games widget

A mockup with sample data (the widgets drawn by the app's widget preview), not a phone capture.

Settings, Widgets: each widget's game, style and four stats

A mockup with sample data (made in HTML from the app's screens), not a phone capture.

See also ​

  • The mobile app: install, sign-in and the Open Cloud key.
  • Notifications: the live watch and battery settings that keep widgets updating.
  • For maintainers: how the widget look and logic are edited and shipped over the air.

Released under the MIT License.