Read-only demo.Generated sample data. Changes cannot be saved.

Version history

Every save of an endpoint or workflow is kept, newest first (up to 50 per resource), for Island survival demo.

Project overview

Published game revisions

Each package sync that publishes a revision keeps an immutable snapshot of its endpoints, workflows, collections, queries and game values. Old builds inside their support window run their own revision's definitions and values; player records are always shared live data, so collection schema changes must stay backward-compatible.

RevisionPublished (UTC)SupportPlayers (24h)SchemaActions
42 2026-11-23 12:40:26 UTC Live 0 — —

Versions of inventory_craft 1

  1. 2026-10-14 11:18:49 UTC Latest module-install · 66c14a39

2026-10-14 11:18:49 UTC

Changes from this version to the live definition

This version matches the live definition.

Full source of this version
sourceVersion: 1
kind: endpoint
id: inventory_craft
name: Craft item
description: Spends recipe materials and adds the crafted item. Missing ingredients fail with MISSING_MATERIALS.
method: POST
enabled: true
input:
  type: object
  properties:
    recipe_id:
      type: string
  required:
  - recipe_id
steps:
- id: player
  type: read
  collection: inventory_state
  key: '{{steamId}}'
- id: recipe
  type: lookup
  source: values
  table: inventory_recipes
  where:
    field: recipe_id
    op: ==
    value: '{{input.recipe_id}}'
  required: true
  onMissing:
    status: 404
    errorCode: UNKNOWN_RECIPE
    message: Unknown recipe {{input.recipe_id}}.
- id: has_materials
  type: condition
  check:
    field: player.materials.{{recipe.material}}
    op: '>='
    value: '{{recipe.material_cost}}'
  onFail:
    status: 400
    error: MISSING_MATERIALS
    message: You need {{recipe.material_cost}} {{recipe.material}}.
- id: craft
  type: write
  collection: inventory_state
  key: '{{steamId}}'
  ops:
  - op: inc
    path: materials.{{recipe.material}}
    value: '{{-recipe.material_cost}}'
    source: crafting
    reason: Crafted {{recipe.output_name}}
  - op: push
    path: inventory
    value:
      item_id: '{{recipe.output_item}}'
      name: '{{recipe.output_name}}'
response:
  status: 200
  body:
    success: true
    crafted: '{{recipe.output_name}}'
module: inventory

Confirm