Sugar DocsBeginner

Sugar examples

Browse complete Sugar patterns from one-line social Boops to connected Apps, evolving Items, and Lore-powered activities.

These examples are made to be adapted. Each one tells you what to create on JOI before showing the code.

If a piece of code uses a name such as score, $weather, or &victory, that name must exist in the variables, App, or Media Library described by its setup.

Social Boops

Participant-aware actions, choices, compatibility results, and personalized language.

Browse Social Boops

Random games and dice

Dice challenges, prompt decks, chances, and results that change every time.

Browse random games and dice

Items that remember

Charges, durability, progress, streaks, and Tamagotchi-style stats that survive after an action.

Browse Items that remember

Apps and Automations

Shared event progress, personal variables across creations, daily changes, and scheduled recovery.

Browse Apps and Automations

Items and Lore

Consumable ingredients, paid actions, transfers, verified rewards, quality changes, and transformations.

Browse Items and Lore

Difficulty labels

  • Beginner examples use text, variables, participants, and small expressions.
  • Intermediate examples add Memory variables, programs, lists, objects, media, or embeds.
  • Advanced examples use Apps, Automations, inventory Items, Item changes, or Lore.

Start with the example closest to something you actually want to create. Follow its links when it uses a concept you have not met yet.