neme.world
v0.7.1Publish a web game to neme.world: upload a preview, go live, roll back, read its play numbers.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
neme_guide Read the neme.world guide
Fetch the guide to making and publishing a game on neme.world: the neme.json fields, the rules a build must meet, the SDK (scores, leaderboards, sharing, clips). Call it first, before neme_init or neme_publish. Changes nothing and needs no token. Returns the whole guide as Markdown, a few pages long, always the current one.
neme_init Create neme.json
Create neme.json in a project folder, filled in from the folder's name (slug, title, empty description and tags, and dir: "dist" if that folder exists, otherwise "."). Use it once, for a project that has no neme.json; then edit the file and call neme_publish. Writes that one file and nothing else: no network, no token. Never overwrites: if neme.json is already there it fails and changes nothing. Returns one line naming the file it wrote.
| Parameter | Type | Description |
|---|---|---|
dir | string | The folder to create neme.json in. Absolute, or relative to the folder this server was started in. Default: that folder. |
neme_publish Publish a game
Upload the game described by dir/neme.json to neme.world as a new numbered version. With preview true it stays private and players see no change; without it the new version becomes the one players get, so do that only when the developer says so. Earlier versions are kept: neme_promote goes back to one, and makes an approved preview live without uploading again. Uses NEME_TOKEN; with none, the game goes online for a day at a temporary, unlisted address (preview true then fails, uploading nothing) and the result ends with a claim link to give the developer, who keeps the game by opening it and s…
| Parameter | Type | Description |
|---|---|---|
dir | string | The project folder: the one holding neme.json. Absolute, or relative to the folder this server was started in. Default: that folder. |
preview | boolean | true: upload as a private preview, leaving what players get unchanged. Needs NEME_TOKEN: with no token there are no private previews, and it fails without uploading anything. false or left out: make t… |
neme_promote Make a version live
Make a version that is already uploaded the one players get: a preview the developer has approved, or an earlier version to roll back to. It uploads nothing (neme_publish does that) and leaves the title, cover and other details as they are. Players move to that version at once; the version they were on is kept, so calling this again with its number undoes it. Find numbers with neme_versions. Uses the same token as neme_publish. Returns the version now live, the game's link and a README badge line to offer the developer. Fails, changing nothing, if there is no such version.
| Parameter | Type | Description |
|---|---|---|
version * | integer | The version's number, as neme_versions lists it (v3 is 3). |
dir | string | The project folder: the one holding neme.json. Absolute, or relative to the folder this server was started in. Default: that folder. |
neme_versions List a game's versions
List the versions of the game in dir/neme.json, newest first: each one's number, date, file count and size, and which one players are on. Changes nothing. Use it to find the number neme_promote or neme_delete_version needs. A game keeps a limited number of versions: when neme_publish is refused for that, list them here and delete old ones with neme_delete_version. Uses the same token as neme_publish. Returns plain text, one line per version. Fails if neme.json is missing or the game has never been published.
| Parameter | Type | Description |
|---|---|---|
dir | string | The project folder: the one holding neme.json. Absolute, or relative to the folder this server was started in. Default: that folder. |
neme_delete_version Delete a version
Delete one version of a game for good, giving its storage back. It cannot be undone and asks for no confirmation, so call it only when the developer has said which version to delete; neme_versions shows the candidates. The version players are on is refused: to remove it, first make another live with neme_promote. Other versions and the game itself are untouched. Uses the same token as neme_publish. Returns the version deleted and the storage freed. Fails, changing nothing, if there is no such version.
| Parameter | Type | Description |
|---|---|---|
version * | integer | The version's number, as neme_versions lists it (v3 is 3). |
dir | string | The project folder: the one holding neme.json. Absolute, or relative to the folder this server was started in. Default: that folder. |
neme_metrics Read a game's numbers
Read how the game in dir/neme.json did over the last 30 days. Changes nothing. Use it when the developer asks how a game is doing; for which build players are on, use neme_versions. Uses the same token as neme_publish, and only the game's own developer can read them. Returns one JSON object of totals: views, visitors, plays, players, playSeconds, shares, playRate (plays per view, 0 to 1), avgPlaySeconds, medianLoadMs, sharedViews, sharedPlays, platformPlays. Fails if the game has never been published.
| Parameter | Type | Description |
|---|---|---|
dir | string | The project folder: the one holding neme.json. Absolute, or relative to the folder this server was started in. Default: that folder. |
neme_playtest Read a game's playtest report
Read what happened when people played each version of the game in dir/neme.json: the evidence for deciding what to change next. Changes nothing. Use it before changing a game that has been played, and again after the next version has been played, to see whether the change helped; for totals by day use neme_metrics. Uses the same token as neme_publish, and only the game's own developer can read it. Returns one JSON object: live (the version players are on), since (first day read), versions (newest first; each with opened, pressedPlay, loaded, ready, stayed30s, stayed2m, stayed5m, players, media…
| Parameter | Type | Description |
|---|---|---|
dir | string | The project folder: the one holding neme.json. Absolute, or relative to the folder this server was started in. Default: that folder. |