Rich presence
While someone plays, their friends see your game’s name next to them in Spawnle. Rich presence adds a line of detail:
Sofi — Playing Neon Moth · Level 3 · 2 lives
await spawnle.presence.set("Level 3 · 2 lives");
// Back at the menuawait spawnle.presence.clear();- One line of text, up to 80 characters.
- It clears itself when the player starts another game or goes offline.
- Update it when something meaningful changes — a new level, a new mode — not every second.
Ideas: "In the lobby · 3/4 players", "Chapter 2: The Lighthouse",
"Speedrunning World 1", "Building a castle".
Over REST: PUT /v1/sdk/presence
with { "details": "…" }; an empty string clears it.