# Games Communities documentation

> The manual of Games Communities (GC): a store for any engine's Windows games, DRM-free, with communities that are Discord-like groups or their own game stores. For players, community owners and officers, developers and AI helpers.

---

<!-- https://gamescommunities.com/docs/index.html -->
# Games Communities documentation

Welcome to the official documentation of **Games Communities** (GC): a home for groups, for gamers first and later for
everyone, like Discord.

- **Communities.** Anyone can make one: chat, voice, forums, roles, bots, its own code and its own look.
- **Boards.** Every game and game topic has a public board: posts, clips, guides, votes and replies.
- **Stores.** A group can turn itself into a store: shelves of games published on GC, bought in GC's cart, and of
  games sold on Steam and other stores, with the game pages GC builds for them.

> [!TIP]
> New here? Start with [Introduction](about/introduction.md), then [Your account](players/account.md).

## How this manual is organized

| Section | For | What's in it |
| --- | --- | --- |
| [About](about/introduction.md) | Everyone | What Games Communities is, questions people ask, the words it uses |
| [Getting started](players/account.md) | Players | Your account, the app, buying games, your library, friends and settings |
| [Communities](communities/overview.md) | Owners, officers, members | Making a group, channels, voice, roles, moderation, integrations |
| [Community stores](stores/selling.md) | Store owners and officers | Making your group a store, the design, your own page, widgets, finding games |
| [Scripts and bots](scripts/overview.md) | Officers who code | Scripts on your community's events, the full API, the editor |
| [AI helpers](ai/connect.md) | Officers, and AI helpers themselves | Connecting Claude Code, Codex or Cursor; every tool; step-by-step recipes |
| [Developers](developers/getting-started.md) | Game developers | Becoming a developer, publishing builds, the store page, money, community stores |
| [Running Games Communities](admin/overview.md) | GC's staff | The pieces of the service, moderation, running it locally |
| [Reference](reference/limits.md) | Everyone | Limits, `gc-cli` commands, the app's addresses |

## For AI helpers

> [!AI]
> If you are an AI helping someone set up a group or a community store, read [AI helpers](ai/connect.md) and
> [Recipes](ai/recipes.md) first. The whole manual is also one plain file: [llms-full.txt](llms-full.txt), with an
> index at [llms.txt](llms.txt). Through the Games Communities MCP server, `reference("manual")` lists these pages and
> `reference("manual", "<words>")` finds the lines that mention those words.

Every page here is also served as Markdown: change `.html` to `.md` at the end of its address, or use the
**View as Markdown** link at the top of each page. **Download all docs (.md)**, under the menu, saves the whole manual
as one Markdown file to give to an AI helper.

---

<!-- https://gamescommunities.com/docs/about/introduction.html -->
# Introduction

Games Communities is a home for groups of people, for gamers first and later for everyone, like Discord. This page
explains the big ideas. The rest of the manual goes into each one.

## Communities

A **community** is a place for people, like a Discord server: text channels, announcement channels, forums, voice and
video, threads, roles, moderation and bots.

Every community is one of two things, and it can change later:

- **A group**: just people. Channels, voice, forums and everything social.
- **A store**: a group that also shows games. Its officers pick games published on Games Communities, or paste links
  to games sold on Steam, Epic, GOG or itch.io, put them on shelves and give the store its own look and page. Players
  buy Games Communities' games in the cart, and the others on the stores that sell them.

Both are called *stores* in the app: "Find stores" finds groups and stores, by what they're about.

Developers upload their games to Games Communities; the stores players support get a share of what they buy.

## Where you use it

- **The Games Communities app** for Windows (the *client*): communities, chat, voice and friends in one window, in
  GC's cat look.
- **The website**, [gamescommunities.com](https://gamescommunities.com): the same pages in any browser. You can find groups,
  chat and talk from it.

## Who this manual is for

- **Players**: start at [Your account](../players/account.md).
- **Community owners and officers**: start at [Communities](../communities/overview.md) and
  [Community stores](../stores/selling.md).
- **People who code**: [Scripts and bots](../scripts/overview.md), [Your own page](../stores/pages.md) and
  [Widgets](../stores/widgets.md).
- **AI helpers**: [AI helpers](../ai/connect.md).

---

<!-- https://gamescommunities.com/docs/about/faq.html -->
# Frequently asked questions

## Players

**Is Games Communities free?**
Yes. Making an account, joining communities, chat and voice are free.

**Which systems are supported?**
The app runs on Windows; the website works in any modern browser.

**Can I buy games on Games Communities?**
Yes: games developers publish on Games Communities are bought in the cart and go into your library (see
[Buying games](../players/store-and-buying.md)). A community store also shows games sold on Steam, Epic, GOG or
itch.io; **Buy on <store>** takes you to that store.

## Communities

**What's the difference between a group and a store?**
A group is people and channels. A store is a group that also shows games on shelves. A community becomes a store as
soon as it shows something (a pick, a shelf with games) or gets a Store channel. See
[Communities overview](../communities/overview.md).

**Does a community store handle money?**
Its owner gets a share of what its supporters buy of Games Communities' own games, once it's an open store of 100
members. Outside games are bought on the stores that sell them. See
[Making your group a store](../stores/selling.md).

**Can I write code for my community?**
Yes, every community can: its own channels' CSS, its own page (any website you like), widgets and scripts. Every
part of a design is open from the first member; see [Design](../stores/design.md#everything-from-day-one).

**Can an AI set up my community?**
Yes. Officers can connect Claude Code, Codex or Cursor to their community. See [AI helpers](../ai/connect.md).

## Developers

**Can I sell my game on Games Communities?**
Yes: become a developer, upload your game, and it goes live once an admin approves it (see
[Getting started](../developers/getting-started.md)). A community store can also put your game on its shelves from its
Steam, Epic, GOG or itch.io page, and you can claim that page (**Claim** on it) to look after it.

---

<!-- https://gamescommunities.com/docs/about/glossary.html -->
# Glossary

The words Games Communities uses, and what they mean.

| Word | Meaning |
| --- | --- |
| **GC** | Short for Games Communities. |
| **The client** / **the app** | The Games Communities app for Windows. |
| **The website** | gamescommunities.com: the same pages in a browser. |
| **Community** | A place for people: channels, voice, roles. Either a group or a store. |
| **Group** | A community that doesn't sell games. |
| **Store** / **community store** | A community that picks and sells games. Also used for any community ("Find stores"). |
| **GC Store** | Games Communities' own store: every live game. |
| **Owner** | The person who owns a community. Rank 50. |
| **Officer** | Runs a community with the owner: design, scripts, store. Rank 40. |
| **Moderator** | Keeps chat in order: kick, ban, time out, delete messages. Rank 30. |
| **Member** | Anyone who joined. Rank 20. |
| **Rank** | One of member, moderator, officer, owner. Communities can rename ranks in their design. |
| **Role** | A named set of permissions, as on Discord. A member can have many. |
| **Channel** | A text, announcements, forum or voice room, or a page channel (Home, Store). |
| **Board** | A public place to talk about one game or a game topic, like Reddit: posts, votes, replies. |
| **Shelf** | A row of games in a community store. |
| **Pick** | A game a community recommends, with a short blurb. |
| **Write-up** | A community's longer text about a game, shown on the game's page when opened from that store. |
| **Design** | A community's look: colours, fonts, background, effects, seasons, ranks' names, welcome. |
| **Page** | A community's own website, shown as its store or home. |
| **Widget** | A small sealed web page inside a community: a game, a board, a vote. |
| **Activity** | A widget people start together in a voice channel. |
| **Script** | Code the service runs on a community's events (joins, messages, commands, timers). |
| **Card** | Something a script draws (text, bars, buttons) in a post or block, updated live. |
| **Supporting** | A player supports one community store; it earns a share of what they buy. |
| **Members' deal** | A lower price a developer offers only to a community's members. |
| **Bundle** | Games a community sells together at a lower price, approved by their developers. |
| **Sourcing** | A community store's officers' tool for pitches, deals and games to add, from GC and other stores. |
| **Build** | One upload of a game. |
| **Branch** | A line of builds (default, beta…). Players get what's live on the default branch. |
| **Ident** | A game's short name in addresses, as `cat-quest`. |
| **gc-cli** | The command-line tool for developers and officers. |
| **gc-native** | The program behind the app's window; it also downloads and runs games. |
| **gc-api** | The Games Communities service itself. |
| **MCP** | Model Context Protocol: how AI helpers talk to Games Communities. |

---

<!-- https://gamescommunities.com/docs/players/account.html -->
# Your account

One Games Communities account is your library, your profile, your friends and your communities, in the app and on
the website.

## Signing up

1. Open the app or [gamescommunities.com](https://gamescommunities.com) and choose **Sign up**.
2. Pick a user name and password, and give your email address and birth date.
3. Pass the quick human check (Cloudflare Turnstile).
4. Open the mail Games Communities sends and confirm your address.

> [!NOTE]
> Throwaway email addresses are refused. Your birth date decides which communities you can join (some are 16+ or 18+)
> and some safety defaults for younger players.

New accounts have spending limits for their first days. They lift by themselves.

## Keeping it safe

- **Login codes by email.** A login from a new device asks for a code sent to your email, as Steam Guard does, and
  you get a mail about each new device.
- **Two-factor login.** Settings › Security turns on an authenticator app (any TOTP app). You get recovery codes:
  keep them somewhere safe. Developers and officers who use advanced tools need two-factor.
- **Logins list.** Settings › Security lists every device that is logged in. Log out any of them.
- **Account switching.** The app remembers several accounts; switch from your name's menu.

> [!WARNING]
> Games Communities never asks for your password, codes or card in chat, on a community page or in a bot's message.
> Community designs and scripts can't even write those words. Report anything that does.

## Your profile

Your profile shows your name, avatar, level and badges, the games you play, your showcases, comments and status posts.

- **Privacy** (Settings › Privacy): who sees your profile, your games, your play time and your friends list: everyone,
  friends, or only you.
- **Pictures that may be sensitive** (Settings › Privacy): in 18+ communities, pictures checked as adult are blurred
  until you click them (Standard), hidden (Strict) or shown (Off). Under 16 it's always Strict; Off is only for 18+.
- **Badges and level**: earned by joining and running communities, chatting and taking part. The level grows with
  your badges.
- **Connections** (Settings › Connections): link Twitch, YouTube, Spotify, Steam, GitHub or Reddit. You choose which
  communities see each one.

## Your data

Settings › Privacy lets you download everything Games Communities keeps about you, and delete your account. Changing your
password logs out your other devices.

If you can't get into your account at all, write to support from the login page.

---

<!-- https://gamescommunities.com/docs/players/the-app.html -->
# The app and the website

Games Communities works in two places. They show the same pages; the app also downloads and plays games.

## Installing the app

Download the Games Communities installer from the website and run it. The app updates itself: a new version arrives
in the background and is used the next time it starts.

## Getting around

The header across the top has:

- **The paw** (Games Communities' logo): back to Stores.
- **Stores** (communities), **Library** and your **name** (profile, family, settings, log out).
- **The row of stores**: the communities you joined, as a row of squares. **+** makes or finds one.
- **Notifications** (the bell), **friends** and the **cart**.

On the left, a column lists the pages of where you are: a community's channels, your library, or your friends and messages.

> [!TIP]
> Press **Ctrl+K** for the quick switcher: type the name of a community, channel, friend or game and jump there.
> The app also has page tabs. Drag the stores in your row into your own order, and right-click one to put it in a
> folder.

### The main pages

| Page | What's on it |
| --- | --- |
| **Home** | Your news: events and what's on in your communities. |
| **Library** | Your games, collections, downloads. |
| **Stores** | Find stores and groups by what they're about, your street of stores, their feed. |
| **Friends** and **Direct messages** | Friends, group DMs, calls. |
| **Family** | A family's safety settings for its children. |

## The website

[gamescommunities.com](https://gamescommunities.com) has communities, chat and voice. Anyone can look at open
communities without logging in. Each community has its own address, `gamescommunities.com/c/<community>`, and each
game `gamescommunities.com/app/<game>`, so you can share them.

From the website you can **install a game on your PC**: choose **Install on my PC** on a game you own, and your app
starts the download the next time it's open (up to 20 waiting, for 14 days).

## Help

Your name's menu › **Help** opens the help pages and **Support**, where you can send a request and follow its answers.

---

<!-- https://gamescommunities.com/docs/players/store-and-buying.html -->
# Buying games

## Finding games

Games Communities' own games are found through the community stores: every store has its own picks, shelves and
write-ups. A game's page shows "On the shelves of N communities" and the stores that have it.

## A game's page

A game's page has its pictures and videos, its description, price, system requirements, languages, accessibility
features, reviews and DLC. It says **DRM-free**.

- **Early Access** games say why, for how long, and what's planned, above *About*. **Accessibility** lists the game's
  features (gameplay, audio, visual, input, communication).
- **Reviews**: recommend or not, with words. Filter by language, by *recent reviews* (the last 30 days) and by the
  reviewer's PC. Developers can answer reviews. Sudden floods of off-topic reviews are marked and left out of the score.
- **Ignore** or **hide** a game you don't want to see.

## Buying

1. Choose **Add to cart** (or **Buy as a gift**).
2. Open the cart, check the price, and choose **Checkout**.
3. Pay. The game is in your library right away.

- **Regional prices**: the price is in your country's currency, set for your region.
- **Gifts**: send a game to a friend with a message. They can accept or decline (you get your money back).
- **Product keys**: Library › **Activate a product key** adds a game you got a key for.
- **DLC**: extra content for a game, bought on the game's page.
- **Pre-purchase**: buy a game before it comes out; it downloads when it's released.
- **Trials**: some games can be played for a while for free.
- **Beta tests**: some developers let players join a beta test before release.
- **Supporting a community**: the cart shows which community store you support. A share of what you buy goes to it,
  at no extra cost to you.
- **Members' deals and bundles**: a community store can have lower prices for its members, and bundles that cost less
  when you buy all of their games.

### Refunds and withdrawal

You can ask for a refund within the window shown at checkout and in **Account › Purchases**. In the EU, the **Withdraw**
button in your purchase history ends the contract, as the law asks.

> [!NOTE]
> Prices include VAT where it applies. The receipt in your purchases shows it.

## Families

**Family** (header › Family) lets a household share its games, as Steam Families. A game lent to a family member can
be played by one person at a time. Parents set each child's controls: which games, which features, and how many
minutes a day; children ask, and parents allow or decline.

---

<!-- https://gamescommunities.com/docs/players/library.html -->
# Your library and downloads

The **Library** has every game you own, and the ones lent to you by your family.

## Playing a game

Choose a game and press **Play**. The first time, the app downloads the whole game, then plays it.

Games are DRM-free. A kept game plays **offline** too, with every file it needs on your PC.

## Downloads

- **The downloads queue**: one game downloads at a time; the next waits as "Up next". Reorder them.
- **Pause and resume** one download or all of them.
- **Sleep when downloads finish**: your PC goes to sleep once everything is done.
- **Download settings** (Settings › Downloads): a speed limit, showing speeds in bits, downloading only while not
  playing, and **low bandwidth** mode.
- **Updates** download by themselves; only the changed parts of a game are fetched. After an update, the changed files
  are checked, and any damaged file is fetched again.
- **Game files over this network** (Settings › Downloads): off, with your other PCs, or with any PC on your network.
  Games and updates come from a PC nearby that has them before the internet. Windows' firewall asks once.

## A game's properties

A game's **⚙** › **Properties**:

- **Launch options**: words passed to the game when it starts.
- **Betas**: choose a public beta branch, or type a private beta's password.
- **Installed files**: check the files (a full scan fixes anything wrong), move or uninstall the game.
- **Cloud saves**: on or off. Your saves follow you between PCs. If the cloud and your PC disagree, the app asks which
  to keep.

## The Storage Manager

Settings › Storage lists every game on your drives with its size. Move games between drives, or uninstall several
at once.

**Games are kept in** (Settings › Storage) picks the folder for all your games: **Move games…** moves them to another
drive (NTFS or ReFS; not while a game plays), **Back to Games Communities' folder** brings them home. Your saves, logs and
login stay where they are. If that drive is unplugged, Games Communities uses its own folder until it's back.

## More in your library

- **Collections**: group your games your own way.
- **Hide this game** and **Make it private** (a game's **Manage** menu): a hidden game leaves your library's view
  (the library's *N hidden games* link shows them); a private one isn't shown to friends: they see you're in a game, not which, and
  it's left out of your profile, your recent games and your friends' feed.
- **Other games**: add games from outside Games Communities to your library, to start them from here.
- **Desktop shortcuts** and **custom artwork** for any game.
- **Screenshots**: press the screenshot key in a game. The Screenshot Manager keeps them; share them on your profile.
- **Your move**: a shelf of games where it's your turn (for turn-based games that say so).
- **Play next**: games you own but haven't played, that players like you loved.

## Start with Windows

Settings › Interface › **Run Games Communities when my computer starts** starts the app quietly in the tray.

---

<!-- https://gamescommunities.com/docs/players/friends-and-chat.html -->
# Friends, messages and notifications

## Friends

**Friends** (`#/friends`) lists your friends, who is online and what they play.

- **Add a friend** by name or with your friend link. You see mutual friends on each invite.
- **Nicknames** and **categories**: give a friend a nickname, sort friends into your own groups.
- **Block** or **remove** anyone from their menu.

## Direct messages

**Direct messages** (`#/dms`) are one-to-one chats and **group DMs** with several friends. They have everything
community chat has: replies, reactions, pictures and files, polls, link previews and voice or video calls. Pictures and
videos are checked against lists of known illegal content before they're shared, private groups too. In public groups
that aren't 18+, adult pictures can't be shared.

**Links that leave Games Communities** show where they go before they open, in your browser. A link on a list of
harmful sites (malware, stolen accounts) doesn't open; one that hides where it goes (an address, a link shortener, a
name borrowed from Games Communities or Steam) warns you. **Always open** skips the page for a site you trust, on
this PC.

**Calls with friends**, and calls in a private group's voice channels, of up to 4 with video, or 8 voice only, go straight between your PCs: the clearest sound, and
nothing passes through Games Communities. Like most games' voice, the others in the call can then see your IP address;
the first call asks once. **Hide my address** (also in Voice settings, Small calls with friends) sends your call
through Games Communities' relay instead. When more people join, or someone turns on a camera in a bigger call, the
call moves to Games Communities' voice server without hanging up, still end-to-end encrypted: only the people in the
call can hear it. Children's addresses are always hidden.

**End-to-end encrypted chat** (when it's switched on): between adults, a friend's DM or a group DM's lock button turns
it on for good. New messages can then be read only on the devices of the people in it, and they're kept on each
device: a device added later sees messages from then on, and needs another member's device online to add it. You can
still report a message: the report shows it, with proof of who sent it. Pictures and files aren't encrypted.
In a private group of adults, whoever manages a text channel of up to 20 members can turn it on there too. The safety
code under the conversation is the same on everyone's screen: compare it to be sure no extra device was slipped in.
Settings, Account, **Encrypted chat devices** lists the browsers and PCs holding your keys; forget one you no longer use.

Bots can message you only if you said yes for that community (the community's menu › **Bots and you…**).

## Your status

Your name's menu sets your status: **online**, **away**, **do not disturb** or **invisible**, with a custom line.
While you play, friends see the game. Some games also say what you're doing in them ("Ranked match, 3 wins"), only if
you let your games share it.

## Comments and status posts

Your profile has a comment thread and **status posts**. Friends can comment; you can delete comments on your profile
and turn comments off.

## Notifications

The bell in the header lists what happened: gifts, friend invites, replies, mentions, a game on your wishlist on sale,
game nights about to start.

- Settings › Notifications chooses what pops up and makes a sound.
- Each friend and each community can have its own settings (all messages, only mentions, nothing).

## Chat filtering

Settings › Interface chooses what chat and community pages filter: strong profanity and slurs (the default), slurs
only, or nothing. Your friends' words are left alone unless you say otherwise, and you can add words to always or never
filter.

---

<!-- https://gamescommunities.com/docs/players/boards.html -->
# Boards

**Boards** (`#/boards`, the Community menu › **Boards**) are places to talk about games in public, like Reddit, but
only for games. Every game has its own board, and so does every topic in a fixed list. Nobody can make a board about
anything else.

## Which boards there are

- **A game's board.** Every game with a page on GC has one. Its page links to it (**Links** › **The game's board**).
- **Topic boards** for anything that fits more than one game: action, adventure, RPG, strategy, simulation, sports,
  racing, puzzle, horror, survival, roguelike, platformer, shooter, fighting, MMO, co-op, cozy, indie, retro, VR,
  speedrunning, modding, esports, game dev and deals.

**Find a board** on the front page looks for a game or a topic by name.

## The front page

The front page shows posts from the boards you **follow** (up to 500). If you follow none, or you're not signed in, it
shows posts from every board. If you follow some, **Your boards** and **Every board** switch between the two. The side
shows your boards, the boards busy this month and the topics.

Anyone can read boards, even without signing in, in the app or on the website.

## Sorting

- **Hot**: well-voted and recent posts first.
- **New**: the newest first.
- **Top**: the most votes in the last day, week, month or year, or of all time.

You can also show only one kind of post.

## Posting

On a board, **New post** asks for:

- **A kind**: Discussion, Clip, Screenshot, Guide, Bug, Looking for group, Mod or News. A clip needs a link (YouTube,
  Twitch, Medal…), and a screenshot needs a picture.
- **A title** (up to 300 characters).
- **Words**, if you like (up to 20,000; Markdown works).
- **A link**, if you like.
- **Up to 6 pictures** (PNG, JPEG, WebP or GIF, up to 8 MB each).

You can post 25 times a day. You can edit your words or delete your post later.

## Replies and votes

Anyone signed in can reply to a post or to another reply, up to 8 levels deep. Replies show best first and fold away
with everything under them. You can reply 500 times a day.

Vote posts and replies **up** or **down**; the score decides Hot and Top. Voting again on the same arrow takes the vote
back.

When someone replies to your post or your reply, the bell tells you.

## A community's forum post on a board

When an open community's forum is public and its members are all ages, a new forum post can also show on a game's or
topic's board (**Also on a board** under the new post). The board shows the post with its community's name and a link
back. Replies stay in the community. Edits show on the board too, and the post leaves the board when the thread is
deleted.

## Keeping boards kind

Be kind, mark spoilers in the title and keep to the game. Report a post or reply from its menu.

A game's board is moderated by the game's team (whoever claimed its page) and by GC. Topic boards are moderated by GC.
Moderators can:

- **pin** a post;
- **lock** a post so it takes no more replies;
- **remove** a post or reply, and bring it back;
- **ban** someone from posting on that board, with a reason, and lift the ban later.

---

<!-- https://gamescommunities.com/docs/players/settings.html -->
# Settings

Open them from your name's menu › **Settings**.

| Section | What you can set |
| --- | --- |
| **Account** | Email, password, purchases, account data. |
| **Security** | Two-factor login, recovery codes, logged-in devices. |
| **Privacy** | Who sees your profile, games, play time and friends; download or delete your data. |
| **Interface** | Start page (Home, Stores or Library), **Dark** or **White** mode, run at startup, chat filtering, low modes. |
| **Store** | Content to hide, languages, *not interested* games. |
| **Notifications** | What pops up and makes a sound. |
| **Voice** | Microphone, speakers, camera, push to talk, noise suppression. See [Voice and video](../communities/voice.md). |
| **Connections** | Linked accounts (Twitch, YouTube, Spotify, Steam, GitHub, Reddit). |
| **What groups may do** | Every yes you gave a group (its bots hearing your achievements or messaging you, its widgets knowing who you are, running or showing jump scares, a linked account shared with it), each with Take back. |

## Calm and safe browsing

Community stores can have moving backgrounds, effects, sounds and widgets. Settings › Interface lets you turn them down:

- **No moving shops**: community stores stand still (also on when Windows asks for reduced motion).
- **No widgets**: community widgets don't run.
- In any channel, the **eye** in its bar switches that community's channels to Games Communities' plain look.

A widget runs only after you say yes for that store, once.

## Low performance and low bandwidth

**Low performance** mode turns off effects and animations across the app. **Low bandwidth** mode loads smaller pictures
and no videos until you ask.

---

<!-- https://gamescommunities.com/docs/communities/overview.html -->
# Communities overview

A **community** is a place for people on Games Communities, like a Discord server. It has channels for text,
announcements, forums and voice, roles and permissions, moderation, bots and its own look. A community can also be a
**store** that picks and sells games.

## Groups and stores

Every community starts as a **group** and becomes a **store** when it sells something:

| | Group | Store |
| --- | --- | --- |
| Channels, voice, forums, roles, bots | ✓ | ✓ |
| Its own design and page | ✓ | ✓ |
| A **Home** channel (its page's front) | ✓ | ✓ |
| A **Store** channel (its games) | Add it with *Start selling…* | ✓ |
| Events | ✓ | ✓ |
| Shelves, picks, write-ups, bundles (GC's games, and games from Steam, Epic, GOG, itch.io) | | ✓ |
| Members' deals, events with deals | | ✓ |
| Supporters and earnings | | ✓ |
| **Today** (the week's numbers) and **Sourcing** (pitches, deals, adding games) | | ✓ |

A community counts as a store once it has a pick, a shelf with a game, a bundle, a Store channel, or when it is a game's
own community. Both are listed when people **Find stores**.

## Kinds

- **Player communities**: anyone makes one.
- **A game's community**: a game's own, run by its developer team. The game's owner is its owner and the team are its
  officers. It shows the game as its hero, the studio's other games and DLC.

## Private or public

The owner decides, and can switch any time in the community's settings; its size never changes it. The new rules
start at once, and members are told in chat.

- **Private (friends)**: never listed or found, and never sells. You invite a friend by name, or with a link that lets
  in one person and is then used up. Make as many links as you like. Its scripts get double time and memory, and it
  may use its own app keys and outgoing webhooks.
- **Public: open**: listed in Find stores; anyone can join, and anyone can read its channels.
- **Public: invite-only**: the same rules as open, but not listed yet: joined with an invite from a member, or an
  officers' invite link that lasts some days. For a community that isn't ready to open.

Stores are always public. A public group's owner can ask its officers to use two-factor login to change its code; a
store's officers always need it.

No kind has a member limit, and each player can own and join as many communities as they like.

## Ranks

| Rank | Number | Can |
| --- | --- | --- |
| **Owner** | 50 | Everything, including who it's for (its audience) and deleting the community. |
| **Officer** | 40 | Everything else: design, page, scripts, store, roles, channels. |
| **Moderator** | 30 | Kick, ban, time out, manage messages, read the moderation log, game nights. |
| **Member** | 20 | What the community's *@everyone* role allows. |

On top of ranks, **roles** give finer permissions, as on Discord. See
[Roles and permissions](roles-and-permissions.md). A community can rename its ranks and give them colours and badges
in its [design](../stores/design.md).

## Who it's for

The owner picks the community's **audience**: *All ages*, *16+* or *18+ verified*. A 16+ or 18+ community asks visitors
to confirm their age before they can open or join it. The audience can be raised only when the owner and every member
fit it.

## The community's pages

- **Overview** (`#/communities/<id>`): its banner, numbers, channels, events, picks, friends there and what members play.
- **The channels** (`#/c/<id>`): the columns you know from Discord: channels on the left, the open channel in the
  middle, members on the right (by rank, then who's playing, then online).
- **Home** and **Store**: page channels at the top of the list. See [Your own page](../stores/pages.md).

---

<!-- https://gamescommunities.com/docs/communities/what-a-group-can-do.html -->
# What a group can do

Every feature a community (a group or a store) has, in plain words, with its limits and who may use it.md` and `docs/client.md` under the same names. Ranks: member,
moderator, officer, owner. "Officers" means officers and the owner.

## A group and a store

- **One thing, two uses**: every community is a group (channels, voice, forums) until it sells something (a pick, a game
  on a shelf, a bundle, a game's own community) or has a Store channel; then it is also a store. A group has no Today
  or Sourcing pages. Officers turn a group into a store with Start selling… (adds the Store channel).
- **Kinds**: a player's community; a game's own community (turned on by the game's team in Developers > Selling: the
  team are its officers, the game's owner its owner, its forum is the game's discussions board, always open, can't be
  deleted, only switched off); Games Communities' own community (open, run by GC's admins, its store is GC's store).
- **Private or public** (the owner's setting, never its size; no member limit on either; a player owns and joins any
  number): a **private** group (friends) is never listed or found and never sells; its invites go to a person: a
  friend by name, or a link that lets in one person and is then spent. A **public** one is **open** (listed in Find
  stores, anyone joins and reads its channels) or **invite-only** (the same rules, not listed yet; reusable links).
  Stores are always public. Only the owner switches it (community settings); the new rules start at once and members
  are told in its first text channel.
- **Reach** (how much its code may do): private group, public group, or store (a public one that sells).
- **Make one**: Create a community: Private (friends), Public: open or Public: invite-only; Empty group (only #general, private), Game store (the store kit, open), or a
  starter kit: Friends hangout, Clip wall, Gaming clan, Study group. A kit brings categories, channels (topics, slow
  mode, a read-only #rules), roles, a look and GC switches already on. Friends can be invited while making it (up to 50).
  Also made from a template link (`#/template/<code>`) or a library kit.
- **Its settings** (officers, Community settings…): name (64), tagline (200), about (2000), up to 5 genres (the store's
  tags; they decide where it shows in Find stores), website (https), open or invite-only, icon and banner (2 MB each).
- **Its own address**: `gamescommunities.com/c/<address>` (3-30 small letters, digits, dashes; GC's words reserved),
  for open communities; `#/c/<address>` in the client.
- **Who it's for** (owner): all ages, 16+ (birth date) or 18+ (verified by the card check). Raised only once the owner
  and every member fit (officers see who doesn't); lowered any time. Under-age players don't find it and can't open or
  join it. 18+ also gives its scripts more room.
- **Joining**: Join on an open one; invites from members with the Create invite permission (friends only, not banned,
  blocked players never); invite links by officers (1 to 30 days, 7 unless set; a link shows the community's name, tagline, icon and
  members before joining); an invite can be declined. Leave the
  community any time (not the owner of a game's community).
- **Handing over and deleting**: the owner makes someone else owner (they become an officer); the owner deletes a
  player's community (Delete the community).
- **Its front** (`#/communities/<id>`): banner, name, numbers, Go inside, about, founded, friends here, members playing
  now, its store and channels, Suggest a game.
- **Getting around**: joined communities in the row of stores under the header on every page (each card shows what's
  going on there), dragged into order, put in folders (name, colour; rename, take one out, ungroup), the
  same on every device; Ctrl+K quick switcher (`#` channels, `@` people, `*` communities); Alt+Up/Down between
  channels (Shift: unread only).

## Ranks, roles and permissions

- **Ranks**: member, moderator (also kicks, bans, times out, manages messages, reads the log, runs game nights),
  officer (everything, can't touch higher ranks), owner. Officers set ranks below their own.
- **Roles** (as Discord's, Manage roles): up to 250 a community and 50 a member; name (50), colour, emoji or icon, shown apart in the
  members list, mentionable; ordered by seniority; each adds Discord's permission bits. A role manager gives and changes
  only roles below their own and only bits they hold. GC's own **Develop** lets a role build the group as officers do:
  its code, page and their files, AI keys and the AI page, Library installs, the Development and Library buttons. @everyone's permissions set what plain members may do.
- **Channel permissions**: per channel or category, for @everyone, moderators, a role or one member: take away, leave,
  give (up to 100 overwrites a channel); a channel follows its category until given its own (Sync with its category). A channel nobody may see is left
  out of everything (messages, typing, mentions). Private channels show a lock.
- **Nicknames**: one's own (Change nickname) or others' below one (Manage nicknames), 32 characters; chat shows the
  nickname, the top role's colour and emoji.
- **Flair** (officers): a member's short label (24) and colour beside their name.
- **Ranks' names and colours**: renamed and recoloured in Design….
- **Linked roles**: a role members claim themselves by connecting an account (Twitch, YouTube, Spotify, Steam, GitHub,
  Reddit, or the group's own sites); dropped on its own when the connection goes.

## Channels

- **Kinds**: text, announcements (officers write; others can follow them), forum (each post a thread), voice, category,
  thread, widget (an activity filling the channel), Home (the community's own page front) and Store (its store page).
  Home and Store sit at the top, one of each, no messages.
- **Managing** (Manage channels): new channel, new category, rename, topic (200), move (or drag onto another), delete,
  slow mode (up to 6 hours between a member's messages; Bypass slow mode skips it), permissions. Up to 500 channels.
- **A card on top** (channel types): a script's card drawn at the top of a text channel with the chat under it
  (A card at the top of #channel…).
- **Following announcements**: an announcements channel followed into a channel of another community (Manage webhooks
  there; up to 50 follows a community); Publish on a message copies it to every follower.
- **Today** (officers of a store): the week's numbers, one next step, what sold, the road from Just started to Landmark, the fest,
  Bring your people (message, link and a drawn shopfront picture to share).

## Chat

- **Messages**: up to 2000 characters, live, typing shown, full history; Discord's Markdown (bold, italics, underline,
  strikethrough, spoilers, headings, small text, quotes, lists, inline code and code blocks coloured by language); replies, edits by the
  author, deletes, pins (moderators), reactions (any emoji or the community's own, 20 kinds a message), forwarding to
  another channel, copy its text or its link, report it, jump to any message; links that leave GC ask first.
- **Mentions**: @name, @role (mentionable roles), @everyone (officers or the permission), @here; the mentions inbox;
  a bell notification; the band counts unread and mentions.
- **Pictures and files**: pictures pasted or attached (4 MB); files of any kind but programs (10 a message, 10 MB each),
  marked as spoilers. In a private group a bigger file goes straight from the sender's PC to members who download it
  (while the sender's GC stays open; the calls' "hide my address" answer counts).
- **Links**: previews fetched safely (5 embeds a message, the sender can remove them); YouTube, TikTok, Spotify,
  SoundCloud, Vimeo, Twitch and Instagram links become the site's own player (shown after a click); game links become
  game cards.
- **Polls**: a question (300) and up to 10 answers (55, an emoji each), one or several picks, open for set hours or
  until ended; votes change while open.
- **Search**: words plus `from:`, `mentions:`, `in:`, `has:`, `before:`, `after:`, `during:`, `pinned:`.
- **Threads**: from a message or in a channel; public or private (members and managers only), invitable; archive after
  1 hour, 1, 3 or 7 days idle; lock, pin (forum posts), rename, delete; join, leave, members list.
- **Forums**: posts are threads with a first message or picture; moderators lock, pin and delete them.
- **A forum post on a game's board**: an open, all-ages community's forum post can also show on a game's or topic's
  board (Boards, `#/boards`); it reads live from the thread, its replies stay in the community, and it goes with the thread.
- **Emoji and stickers** (Manage expressions): up to 250 own emoji (256 KB, animated too) and 60 stickers (512 KB;
  Lottie or Rive animated ones too), PNG, JPEG, WebP or GIF.
- **Read marks**: per channel, mark the community read.

## Voice and video

- **Voice channels**: talk, camera (720p), Go Live (screen share with sound); the call stays while browsing GC.
- **Each person**: mute for me, volume up to 200%; with the bits, server mute, server deafen, move to another voice
  channel, disconnect (each in the log).
- **Voice settings**: microphone, speakers, camera, voice activity or push to talk (a key or mouse side button; works
  while a game has focus in the app), noise suppression (Strong, Standard, Off), echo cancellation, automatic gain,
  call sounds, soundboard volume.
- **Soundboard**: up to 100 sounds (MP3, Ogg, WAV, 512 KB; name (32), emoji, volume; Manage expressions), played in
  the call (one every 2 s; Use soundboard); each member picks an entrance sound.
- **Activities in a call**: start, join or watch an activity in a voice or text channel.
- **Calls with friends** (direct messages and group DMs): small ones (4 with video, 8 voice only) go straight between
  the players' PCs, free for GC; the player is told once that the others see their address and may hide it (GC's
  relay). Bigger ones move to GC's voice server without hanging up. Children's addresses are always hidden. A private
  group's voice channels work the same; a moderator's server mute or deafen moves the call to GC's server, which
  enforces it.
- **Encrypted chat** (switched off for now): adults in a friend's DM or a group DM can turn on end-to-end encryption
  with the lock button, and in a private group of adults whoever manages a text channel (up to 20 who see it) can: then only their devices can read new messages, kept on each device. Reports still work: the
  report shows the message with proof of who sent it. Pictures and files still go through GC's checked file store.
- **Encrypted calls**: private groups' calls and calls with friends are end-to-end encrypted: only the people in the
  call can hear and see it, never GC's servers or a hosting member's PC. A new key each time someone joins or leaves;
  a safety code everyone in the call can read out to check no one is listening in.
- **A member's PC hosts the group's calls** (private groups, and calls with friends or in group DMs): a member ticks
  *My connection hosts my calls* in Voice settings, and while their GC app is open the group's voice channels and
  their own calls run on their connection (up to 25 people), free for GC. A router without UPnP takes two ports
  forwarded by hand. The calls stay encrypted, so their PC can't listen; joiners are told once that the host sees
  their address and may hide it. When the PC goes or fills up, the call moves to GC's servers by itself. GC's own
  voice servers sit in several regions; a call goes to the one nearest whoever starts it.

## People

- **Presence**: online, away, do not disturb, invisible; a custom status (emoji, 128 characters, for a time).
- **A profile per community**: its own bio (190) and picture (4 MB).
- **Notifications**: per community and per channel (all, mentions, nothing) and mutes for a time or until lifted.
- **The members list**: by rank and hoisted roles, online, what each plays; tucks to faces.
- **Regulars**: 4 of 5 stamps (a month in, came to a night, bought here, voted, 10 messages) show as a regular's line on
  profiles and reviews.
- **Home** (`#/home`): events, game nights, deals, mentions, members playing, picks, shelves, rising votes and
  announcements from all one's communities and friends.
- **Across all stores**: Members' Deals (`#/member-deals`: every open store's members' deals, biggest first, with the
  player's own store's price) and Events (`#/nights`, the header's Events: one's own groups' events first, I'm in, Play once it's on,
  then every other store's next one).
- **Bots and you**: a member's own yes or no to the community's bots seeing their achievements, sending them DMs and
  its widgets knowing who they are, its page and widgets using the microphone and camera; all off until they say yes, erased when they leave.
- **What groups may do** (Settings): every yes a member gave any group, in one list like a phone's app permissions;
  each taken back with one button, and the group asks again next time.

## Moderation and safety

- **Kick, ban, time out** (moderators, on lower ranks): bans with a reason (512), an end, and up to seven days of their
  messages deleted; time outs (no writing, reacting or voice) for set minutes.
- **AutoMod**: up to 25 rules: words (wildcards, allowed words, 1000 a rule, 60 characters each), spam, mention floods; block, alert a
  channel or time out.
- **Verification levels** 0-4: none; account 5 minutes old; a day old; also a member 10 minutes; also an account a week
  old.
- **Rules** (4000 characters) members accept before talking.
- **Delete many messages** at once (2 to 100).
- **The log** (moderators): kicks, bans, ranks, time outs, deleted messages, pins, channels, roles, permissions,
  voice moderation, design and code changes, switches, library installs, outside games added.
- **Reports**: anyone reports a message, the community or its page; a reported community's store and page are kept for
  GC's admins.
- **Viewers' own filters**: profanity and slur filtering, words to always or never filter; no moving shops; no widgets.
- **GC's own checks**: the shop words check (no passwords, codes, cards or speaking as GC) on designs, themes, pages and
  bot posts; link checks (no IP addresses, shorteners, lookalikes); private groups have neither (links still warn when
  clicked; going public, GC asks first to change what breaks the public rules); admins can clear a design and page or stop a
  community's code, with a statement of reasons.
- **Known-illegal pictures and videos**: every one sent anywhere on GC, private groups too, is checked against the
  lists of known child-abuse, intimate-image abuse and terror content before it's kept; a match is never shared and
  goes to GC's admins.
- **Outside links**: before a link leaves GC, GC says where it goes; links on lists of harmful sites don't open, and
  ones that hide where they go warn. Members can always open a site they trust. A group's own page has GC's strip
  above it saying whose page it is; a page or widget keeping the computer busy (sooner while GC is out of sight) is
  paused, with "Run it again".
- **Adult pictures**: in public groups and stores every picture (and video, once GC's box reads them) is checked once; one flagged adult is shared only in
  18+ groups (elsewhere it's refused, and hidden if the group stops being 18+). Private groups' pictures aren't checked. Profile pictures and board pictures flagged adult aren't kept.
  In 18+ groups each member's safety level decides: blurred until clicked (Standard, the default), hidden (Strict,
  always under 16) or shown (Off, 18+ only).
  Such a picture can be forwarded only into another 18+ group, where the same rules apply.

## Its look

- **The shop's look** (officers): tint (plum, night, rose, mint, amber, sky) and stage frame (cream, gold, lilac, ink).
- **Design…** (officers; a draft or published; every live change kept as a version, 50 kept, any one restored):
  colour and font, background (wallpaper and dim), effect, bursts, seasons (by date, or takeovers between two
  moments, up to 60 days), labels and scores, ranks' names, the welcome for new members, its building, its address,
  its channels' look.
- **Built-in choices**: fonts (Germania, Bungee, Pacifico, Press Start, Creepster, Cinzel, Fredoka, Permanent Marker,
  Orbitron, Lobster, Bangers, Silkscreen); effects (snow, petals, fireflies, leaves, stars, bubbles, confetti); header
  styles (wide, framed, split); buildings (shop, cafe, arcade, castle, cottage, tower) with windows; scores
  as paws, stars, hearts, stamps or numbers.
- **The store designer** (officers): its header (a picture, style, position, title, words (1000), signed, links,
  its numbers, an animation), then blocks in any order: text (4000), picture, spotlight (one game), trailer,
  countdown, people (a line for each), links, questions and answers, top members, carousel (slides with
  captions and links), tabs, Markdown, HTML (64 KB; built by dragging pieces in the visual editor, or written),
  widget, card (a script's live card), music (8 MB, loops), effect (a scene in a box, 60-720 px high), animation.
- **Its own tabbed pages**: pages beside the store (`#/c/<id>/store/<slug>`, a name of 30), each its blocks in
  order or one widget filling it (an app of its own).
- **Scores and labels**: labels of its own (name, colour), any on a game, and a score of 1-5, shown on its cards.
- **Welcome**: a title, words and rules shown to new members.
- **Its look in its channels too**: colour, background, font, effect and seasons over its chat, forum and voice.
- **Everything from day one**: every part of the look and code is every community's from its first member; widgets,
  activities and shaders stay off for 30 days after GC takes a design of its down.
- **Scenes** (the scene editor: presets to start from, a live preview as made or as a weak PC plays it): layers of
  pictures (depth, drift, sway; blend normal, add, screen, multiply), particle emitters (from a point, line, box, ring
  or the edge; rates, gravity, wind, colours,
  sprites, the mouse pushing or pulling), lights (rays, spot, vignette), fog, colour grade, bloom; 400 particles at once. A different scene per place (the store, a page, channels, one channel, the header, overlay).
- **Bursts**: confetti, hearts, sparks or own ones (300 pieces each), played on a join,
  a buy, a word, a !command, or by a script or widget (30 a minute).
- **Animations**: Lottie or Rive (2 MB) in the header, rank badges, blocks, scenes and stickers.
- **Shaders**: own GLSL (or WGSL) layers in scenes, with up to 4 pictures each; turned off for everyone if
  they crash players' GPUs.
- **3D backdrops**: a sky, lights (one casting shadows), fog, a camera (orbit, mouse, scroll), uploaded `.glb` models (8 MB,
  100,000 triangles, textures of 2048 px, their own animations) that turn, spin and bob, particle emitters, bloom;
  200,000 triangles together.
- **CSS**: its own CSS for its store page (256 KB) and for its channels (side column, bar, members, chat, forum, voice),
  kept away from GC's own parts (prices, Play and Buy, labels, Report, names, avatars, call controls); own
  fonts (WOFF/WOFF2, 1 MB each); a check that says what cleaning would take out. A viewer can turn a channel's look off for
  themselves.
- **Hide GC's header**: a store hides GC's own store header and uses its own header block or HTML.
- **Shelves' styles**: cards, row, tiles, big, list.
- **Themes**: a gallery of shared looks (search, Try it as a draft, install with pictures and fonts) and six built-in
  starter themes; a community shares up to 50 of its own (name 40, about 200).

## Its own pages (its own website inside GC)

- **Files**: any site of up to 5,000 files (HTML, CSS, JS, JSON, SVG, WASM, pictures, fonts, sounds, `.glb`; a file up
  to 512 MB), as a draft, then published; 50 versions kept, any one brought back. Upload one file, or a zipped folder.
- **Where it shows**: in the Home and Store channels, at `#/c/<id>/p/<path>`, and on the website at `/c/<id>` (with its
  words written out for search engines).
- **What a page can use** (`GC.*`): `me` (who is looking, asked once), `store` (its pieces), `games` and `game` (its
  games with pictures and trailers), `theme`, `open` (a game), `addToCart`, `playtest` (start a game's trial), `go`
  (channels, join, a channel or a member), `toast`, `burst`, `data` (public data), `picture`, `on` (its scripts'
  events), `music` (played by GC across its pages, faded in, muted by the viewer); 31 built-in fonts named in its CSS.
- **Outside sites and devices**: a page's `gc.json` lists the sites it reads (`fetch`, through GC, so viewers' IP
  addresses stay theirs) and the devices it uses; widgets tick theirs. The microphone and camera work once a member says
  yes (asked once for the group, taken back in Settings; never for under 18s outside private groups); a gamepad and
  fullscreen once listed; nothing else, ever. A page's own game servers (WebSockets) connect straight from the member's
  PC only after their yes (asked once; those servers see their IP address; members only, under 18s only in private
  groups, never children).
- **Its own game page**: a `game.html` shown in place of GC's game page for games opened from the store, under GC's fixed
  bar (Buy, Install, Play, sale and lowest price, Standard page); the page gets the game's words, pictures, trailers,
  and can add it to the cart or start its trial on a click.
- **Page starters**: a store's home, a group's home and a `game.html`, working pages its AI helper starts from.
- **First page**: a new community gets a written page from its parts (name, tagline, about, Join and Channels, its
  shelves); every older one got its store written out once.
- **Tools**: AI helpers write, preview (screenshots at window, full and phone sizes, with errors listed) and publish it;
  `gc-cli page push|pull <folder> --community=<id>` syncs a folder.
- **Safety**: published only after GC's words check; paused when it keeps the computer busy; Report in GC's bar.

## Widgets and activities

- **Widgets**: small sealed pages (no network unless allowed, no forms, popups or way out) in the store or a page; their
  own HTML and JS or TS (256 KB), npm packages (MIT, ISC, BSD, Apache licences; bundled on Save, 2 MB), GC's UI kit in
  the store's accent, written in the code editor. Off for 30 days after GC takes a design down.
- **What a widget can use** (`GC.*`): `me`, `store`, `theme`, `open`, `toast`, `send` (to its scripts' `widget()`),
  `on` (their `live()` messages), `data` (public data), `picture`, `sounds` and `sound` (the soundboard), `burst`, `fetch`
  (allowed https hosts, 256 KB an answer), `show` (GC's own pieces: words, real game cards, buttons,
  progress), `resize` and `autoResize`, `room` (an activity's live room), `scare`.
- **Viewers decide**: a widget runs only after the viewer says yes for that shop; `GC.me` only for members who said yes.
- **Activities**: a widget marked as an activity (2-50 players) is a live shared room (Yjs) started in a channel:
  players write, others watch; officers clear rooms. A room holds 1 MB.
- **Widget channels**: a channel that is one activity filling it.
- **Jump scares** (the app only): a widget shows the store's picture over the whole screen with a sound, after the
  viewer lets it, one every 10 s.

## Its own code (scripts and bots)

- **Who**: officers (Code and AI helpers…). Changing a store's code needs two-factor login, a public group's when its
  owner asks for it (community settings), a private group's never;
  writing a store's script (not a group's) or sharing one to the library always does.
- **Languages**: JavaScript, Luau, Python, WebAssembly, and Blueprints (nodes and wires, no typing: events, actions, flow,
  data, maths, members and text nodes; View as code, Turn into code).
- **Events it hears**: join, leave (kicked or not), message, edit, delete, reaction, thread, roles given or taken,
  buy (a game bought through the store), achievement, quest done, status (a member went live or a new song), playing (a
  member's game), webhook, widget calls, button, menu and form presses, !commands and slash commands, every N minutes,
  at a time of day. Filters narrow them (channel, starts with, contains, game, emoji, role).
- **What it does**: posts and replies as its bot (up to 10 buttons, five a row, link buttons, a menu of 25 options,
  forms of 5 fields asked on a press, a card), edits its own posts, DMs members
  who said yes (3 a run, 60 an hour, 5 a member a day, kept 30 days), community data (50,000 keys, 16 KB a value; `public.` ones readable by pages and widgets), members' data
  (50 keys of 4 KB each; leaderboards), flair, the design and its blocks (a countdown's end, a block's words), live messages to pages, cards, bursts, soundboard sounds in voice, quests,
  league data, members' linked accounts and live status, members' games, outgoing webhooks, and library pieces it
  uses (`use`).
- **Powers**: each script asks only what its code names (read chat, post, members, flair, data, design, live, cards…);
  saving approves them and the log says when new ones come.
- **Commands**: `!name` and slash commands with options (text, number, yes/no, member, channel, role; choices,
  min and max), listed in the "/" menu; answers only the runner sees.
- **Cards** (up to 500): Adaptive Cards (text, pictures, media, columns, facts, tables, inputs, bars, countdowns, buttons) in a
  store block, a channel's top, or a message; filled in live for each viewer (their own data, leaderboards); a secret
  overlay link shows one live in OBS.
- **Settings forms**: a script declares a form (fields: text, numbers, yes/no, lists, colours, channels) so
  officers change it without code.
- **Quests** (play a game, or any GC game, for N minutes by a date); members join and see their progress;
  scripts hear when one finishes.
- **Learning**: 11 learning quests that teach scripts step by step (Script Learner badge).
- **Writing and testing**: an editor with TypeScript's help (completion, hovers, red lines), Try it on a made-up event,
  a test room (a pretend copy of the community with five pretend members; nothing real touched), a debugger (breakpoints,
  steps, variables), each run's log streamed live, the cost of each run (time, statements, memory), errors in plain
  words with the line marked, Copy for my AI; Your editor (in the app) puts the group's one folder (`site/` its page,
  `scripts/`) on the PC and opens VS Code or any editor, each save saved to the group; `gc-cli dev` does the same from a browser or a terminal.
- **Data in and out**: export the community's and members' data (JSON or CSV), import members' data from CSV (tried
  first).
- **Take it with you**: the owner downloads the whole group as a zip (channels, roles, look, pictures, page, scripts and
  their data) from its settings, and anyone makes a new group from one (Create a community › From an export): scripts
  start switched off, the page as a draft; its shared themes come too, members' data only the importer's own.
- **Run it yourself**: `gc-cli host` runs a private group's scripts on the owner's own server, always on (GC's client
  doesn't take over while it's connected).
- **Its own domain** (public groups, free): the owner names it in the group's settings, adds the TXT record and CNAME
  GC shows, presses Check; GC gets its certificate at the first visit, and the domain opens the group (an open group's
  page and preview at the domain itself, for search engines and shared links; search engines find only that page there).
- **Its own voice server and file bucket** (any group): the owner gives its LiveKit (address, key, secret) and/or an
  S3-compatible bucket in the group's settings; GC checks it answers, keeps the secret sealed, and sends the group's new
  calls and all its files there (old files copied over; taken off, they come back). Known illegal pictures still checked.
- **Limits**: scripts of 256 KB each, 8 MB together (names of 40); a run gets 300 ms and 24 MB; 600 runs an hour
  (60 by one member), 10 posts a run and 600 an hour, 120 live messages a minute, library pieces within the 8 MB; 20
  failures in a row switch a script off; the last 50 runs kept with their logs; private groups and
  18+ get double time and memory; a private group's scripts run on its owner's PC while their GC client is open (ten
  times the time and memory), on GC's when it isn't (or when the owner turns it off in Settings). When GC's server is busy, a group doing much more than the others waits its turn
  a little (scripts, live rooms, outside sites); the others aren't slowed by it.
- **Library** (shared between communities): share a script or a whole kit (layout, up to 20 scripts and its theme);
  others search it, rate it, try it in their test room, install it (pinned version, auto-update unless it asks new
  powers), remix it, or make a new community from a kit.
- **Leagues** (Code › Library): points tables two to 20 communities share a leaderboard, season or event and its data; officers invite, join, leave;
  a community is in up to 50.

## AI helpers

- **Keys** (officers, up to 5 each, 180 days): connect Claude Code, Codex, Cursor or any MCP client to one community;
  a prompt to paste is copied for them.
- **Its tools**: get the community, the store and the design, search GC's games, list and view uploads and pictures,
  upload a file or from a link, list, read, write, edit and delete page files, page starters, sample data, preview,
  publish, edit the store's words, save and delete shelves, save channels, mark games, add outside games, list, read,
  try, save, switch and delete scripts, script templates, get and set data, the reference.
- **What a key can change**: the page and its files, the design, channels' CSS, channels (widget ones too), the store's
  shelves and labels, uploads, scripts (try in the test room, save), data, outside games; it reads the reference and
  the manual and previews the page as players see it. Never money, members, ranks or chat.
- **AI chat** (AI › AI chat; the app only): tell Claude Code (your own install and Claude plan) what you want, in a
  chat like Claude's app: it reads and edits the group's folder and uses its tools; pick its model; Sign in to Claude.
- **AI helper on this PC's models** (hidden for now; the app only): a chat with a model on this PC: GC's own (the best for the
  PC picked, downloaded once into a folder you pick, deleted from the same place), Ollama, LM Studio or another server
  here (the choice, its context and whether it sees kept on the PC); each step on one line, Stop, New
  chat; keeps going in the corner dock; undo from Design… › History…. Share this chat to help train GC's helper:
  ticked per chat (adults), keys and members' names taken out, withdrawn by unticking or Withdraw all.
- **AI Code** (the app only, settings › AI): PowerShell on this PC in the same folder as Code (`site/`, `scripts/`; its saves are the group's), set up so Claude
  Code, Codex and Cursor reach its AI helpers with no prompt to paste; Start Claude Code or Start Codex; keeps running
  in a corner dock.
- **Safety**: a page is published by AI only after it looked at it; a key stops when its officer leaves or steps down.

## Integrations (Discord's, so Discord's tools work)

- **Incoming webhooks**: per channel (15), posted to at Discord's own addresses.
- **Apps and bots**: developers' apps with bot tokens (25 each, 50 in a community, 100 commands an app), slash commands
  sent to the app,
  OAuth2 (`#/authorize`), Discord's REST and Gateway, so discord.js, discord.py and JDA bots connect unchanged.
- **What Discord bots can do here** (Discord's v10 addresses): read, send, edit and delete messages and delete many at
  once, list channels, read the community and the bot's own account and communities, register slash commands (for all or
  one community), answer interactions, send and edit through webhooks, OAuth2 tokens, the Gateway's events.
- **Members' own apps**: officers allow apps members added to their own account to answer in the community.
- **Script webhooks**: in (GitHub, Twitch, YouTube, Standard Webhooks or plain, signatures checked) and out
  (up to 5: signed events to an https address, retried, the last 100 deliveries listed, test sends).
- **Automation**: n8n, Activepieces and Zapier pieces (send, edit, delete messages; new message and event triggers).
- **Members' connections**: Twitch, YouTube, Spotify, Steam, GitHub, Reddit accounts shared with the community, their
  live status and what's playing for scripts and linked roles.
- **Private groups' own apps**: officers paste their own Twitch, YouTube, Spotify, GitHub or Reddit app keys, or add any
  OAuth2 site (up to 5).
- **Game status**: a game's Rich Presence (Discord's RPC) shared with the member's communities' scripts.
- **Templates**: a template link (one a community) makes a new community with its roles, channels and permissions.

## A store

- **Its store page**: the stage (one shelf shown big at the top), shelves (up to 100, 200 games each, each its own style;
  outside games too), picks (up to 5000) with a blurb (200) and link, write-ups (4000 characters and 6 pictures, shown on the game page opened from the store), labels (up to 4 a game)
  and a score (1-5) on games, members' votes (50 each), wanted (members' wishlists), what members played and play now, its studio's
  games and DLC (a game's community), reviews by members, Suggest a game. GC's standard game page is never changed.
- **Arranging it** (officers): the store's pieces in order or hidden (up to 100), shelves made and filled, an event planned.
- **Events** (moderators, any group): a name, a time and, with GC's own games on, a game; members say they're going
  and are reminded ten minutes before.
- **Sourcing** (officers): Outside games and what members suggest; with GC's games, pitches from developers (accept to a shelf, the stage or picks; decline with a reason; later;
  ask a review copy: 3 a game, 100 a month), the brief (what it wants, never, prices, rating, trailer or demo needed, languages,
  pitches open, closed or by invitation), lanes of games that fit (members' tastes, its kinds, similar stores, fresh
  ones) with why, save or pass, invite a developer to pitch (300 characters), deals asked and running
  (10 live at once), reach (visitors, games opened,
  wishes, buys, earnings).
- **Today** (officers): the week's new members and messages, a next step, how it grows.
- **Being found**: Find stores (each player's top matches by the topics they picked and their groups' topics; topics
  to require or hide, who runs it, size, age, its shop; sorts; every choice in the address), the Stores page's feed,
  its directory row, Not for me, the news strips between rows (an event on, a lively group), a new player's first
  groups (pick topics), the street, neighbours, Share the shop (its website link).
- **Bundles**: 2-10 priced games at 10-90% off (10 a store); each game's team approves.
- **Members' deals**: 10-90% off for its members for 1-14 days, offered by the game's team or asked by the store; both
  agree; one copy a member, never a gift; the 30-day low shown.
- **Group deals**: a game's team sets a deal that unlocks once N members wish for it.
- **Store events**: 1-14 days with a name and words; developers find them and join with a deal.
- **The fest** (open stores' officers): when GC runs a street-wide fest (up to 14 days), a store enters with what it's
  putting on (a title of 80, a game) and shows on the Stores page's fest.
- **Disclosures**: cards say "Review copy from the developer", "Sent by the developer", "Members' deal from the
  developer"; developers' sales and beta tests for members show too.
- **Money**: a player supports one store for 14 days and the owner gets 15% of what they buy (after VAT and the payment
  fee, paid out of GC's cut, not on the owner's own games); a game put in the cart from the store pays the owner 12%
  instead (never the buyer's own store, never the game's owner); Earnings… shows it, paid with payouts. Both
  need an open store of 100 members. Supporting can't be changed or stopped during its 14 days.
- **After play**: after a real session of a game bought at a player's store, one tap tells that store what they thought
  (a message from them in its first text channel); asked once a game.
- Off with `gc-extras` (`docs/parked/groups.md`): Scout, finding stores by their games.

## Games from other stores (outside games)

- **Paste a link** (officers, Sourcing > Outside games; or an AI helper): a Steam, Epic, GOG or itch.io page link builds
  a game page on GC: name, words, developer, publisher, genres, release, age rating, pictures, screenshots, trailers.
  The same game is reused by every community that pastes it.
- **Other stores**: GC finds the game on the other stores (Wikidata, Steam's and GOG's search); officers tick the right
  ones or paste a missing store's page.
- **On shelves and the stage**: shown as game cards with the cheapest store's price in the viewer's country and its
  sale ("-50% $9.99 on Steam"); prices from Steam, GOG and itch.io, checked often; Find stores shows "N games on sale".
- **Its page** (`#/app/og:<id>`): facts, screenshots, videos after a click, About, Where to buy (each store's price,
  cut, lowest, countdown) with Buy on <store> (opens Steam's client when installed); says the stores sell it, not GC;
  no cart or library entry; Report and Claim (the real developer asks GC to give it to them).
- **Members suggest** (Suggest a game on the store's page): members paste a Steam, Epic, GOG or itch.io link with a
  note (300, 5 a day); officers see the most suggested first and
  take or dismiss them.
- **Removing**: officers take a game out of the community and its shelves; GC's admins take a game page down on a
  complaint.

## Things only GC decides

- GC's standard game page, prices and the 30-day low, Play and Buy, paid placements' labels and Report stay out of
  every community's CSS, HTML, pages and scripts.
- AI keys never reach money, members, ranks or chat.
- GC's admins can stop one script, a community's code or every script, clear a design and page, stop a library piece,
  and take down outside games.
- Direct messages and group DMs (up to 10 friends) are separate from communities.

---

<!-- https://gamescommunities.com/docs/communities/making-one.html -->
# Making a community

## Create it

1. Press **+** at the end of your row of stores, or **Make a community store** on the Scout page.
2. Pick **Store** or **Group**:
   - **Store** starts open to everyone, with a Store channel.
   - **Group** starts with only `#general`, private.
3. Pick a **starter kit** to begin from, or the plain one (*Plain store* or *Empty group*). Each kit shows its words,
   channels and roles.
4. Pick **Private (friends)**, **Public: open** or **Public: invite-only** (a store is always public).
5. Give it a name, and create it.

### Starter kits

| Kit | What you get |
| --- | --- |
| **Friends hangout** | Chat, plans, memes and two voice rooms. |
| **Clip wall** | `#clips` and `#screenshots` slowed down so each one gets seen, a watch party room. |
| **Gaming clan** | Ranks for leaders, members and recruits, looking-for-group, a strategy forum, squad voice rooms. |
| **Game store** | An open community store: news and deals channels, a recommendations forum, curators, a game night room. |
| **Study group** | Questions in a forum, resources kept tidy, quiet study rooms, tutors, and a channel for breaks. |

Each kit comes with categories, channels (with topics, slow mode and a read-only `#rules`), roles and a look.

## Invite people

- **Invite a friend…** from the community's menu sends an invite to a friend.
- **Invite link…** (officers) makes a link that lasts the days you choose. Invite links look like
  `#/c/invite?code=…` in the app.
- Open communities can also be found in **Find stores** and shared with their `gamescommunities.com/c/<id>` link.

## Set it up

The community's menu (its name at the top of the channels column) has the officers' tools:

| Menu item | What it does |
| --- | --- |
| **Design…** | Colours, fonts, background, effects, seasons, labels, ranks, welcome, building, channels' CSS. See [Design](../stores/design.md). |
| **Themes…** | Ready-made looks: try one, use it, or share yours. |
| **History…** | Every version of the design that went live; bring one back. |
| **Roles…** | Roles and their permissions. |
| **New channel…**, **New category…** | Text, announcements, forum, voice, Home or Store. |
| **Moderation…** | AutoMod, rules, verification, bans. |
| **Code and AI helpers…** | Scripts, data, widgets, AI helpers' keys, the test room. |
| **Integrations…** | Webhooks, apps, slash commands, script webhooks. |
| **Follows…**, **Template…** | Announcement follows, a template of the community. |
| **Quests…** | Play-time goals for members. |
| **Who it's for…** | The audience (owner only). |
| **Start selling…** | Turns a group into a store (adds the Store channel). |

## Rules

Members accept the **rules** before they can talk, if the community has them.

## Templates

**Template…** makes a link that copies the community's channels, roles and settings (no messages or members) into a new
community.

## Folders

Members can drag communities in their row of stores into **folders**: right-click a store › *New folder with it*.

## Deleting a community

The owner can delete it from the community's menu › **Delete the community**. This can't be undone.

---

<!-- https://gamescommunities.com/docs/communities/channels.html -->
# Channels and chat

## Channel kinds

| Kind | What it is |
| --- | --- |
| **Home** | The community's page front (its own website). One per community, at the top. |
| **Store** | The community's store page (its `store.html`, or the front if it has no Home). One per community. |
| **Text** | Chat for everyone allowed in. |
| **Announcements** | Only officers write; others read, react and **follow** it into their own community. |
| **Forum** | Every post is a thread with a title. A game's community's forum is the game's discussions board. An open, all-ages community's post can also show on a [board](../players/boards.md). |
| **Voice** | Voice, video, screen sharing, activities. See [Voice and video](voice.md). |
| **Category** | A folder of channels. Folded per player; a lock shows on private ones. |

A community can have up to 500 channels and categories. Each has a name, a **topic**, a place in the list
and, optionally, **slow mode** (how long members wait between messages).

## Messages

Chat is live: you see people typing and new messages arrive at once.

- **Reply**, **edit**, **delete**, **react** (emoji, the community's own emoji), **pin**.
- **Mentions**: `@name`, `@role`, `@everyone`. Tab completes a name. The row of stores counts your mentions.
- **Files and pictures**: attach several, or paste a picture.
- **Link previews**: links show a card; YouTube, Twitch, Spotify and others play in the chat after a click.
- **Polls**: a question with answers and an end time.
- **Threads**: a message's **…** › *Start thread* makes a side conversation.
- **Stickers, emoji and GIFs**: the expression picker. Officers add the community's own emoji, stickers and sounds.
- **Report** any message from its menu.
- Messages written by scripts carry a **BOT** tag.

Every message is kept, until its writer or a moderator deletes it.

## Game links

A link to a game shows as a card with its price and a button. Members' deals show on it when the community has one.

## Permissions per channel

A channel's **…** › **Permissions of #channel…** makes it private, or gives and takes away permissions for *@everyone*,
moderators, a role or one member. **Sync with its category** copies the category's permissions. See
[Roles and permissions](roles-and-permissions.md).

## Channel cards

A script can draw a **card** at the top of a channel: a scoreboard, a countdown, a sign-up form. See
[Scripts](../scripts/reference.md#cards).

## Following announcements

An announcements channel can be **followed** by another community: its posts are copied into a channel there.
The follower's officers choose the channel (**Follows…**).

## Channel look

A community's design can style its channels with its own CSS and its colours. Members can turn this off for
themselves with the **eye** in the channel's bar. See [Design › Channels' CSS](../stores/design.md#channels-css).

---

<!-- https://gamescommunities.com/docs/communities/voice.html -->
# Voice and video

Voice channels work as on Discord. Click one to join; the call stays with you while you browse the store, and the
controls sit in the header.

## In a call

- **Mute** and **deafen** yourself. Others see it.
- **Camera** (720p) and **Go Live** (share your screen with its sound, or a game).
- Each person's **…**: *Mute for me*, *Volume…* (up to 200%). With permission: *Server mute*, *Server deafen*,
  *Move to…*, *Disconnect*.
- **Soundboard**: play the community's sounds to everyone in the channel; set your **entrance sound**.
- **Activities**: start a widget together (a game, a drawing board). See [Widgets and activities](../stores/widgets.md).

## Voice settings

Settings › Voice (or the gear in the call controls):

| Setting | Choices |
| --- | --- |
| Input | Microphone, its volume |
| Output | Speakers, their volume, soundboard volume |
| Camera | Which camera |
| Mode | **Voice activity** or **Push to talk** (any key, or a mouse side button) |
| Noise suppression | **Strong** (RNNoise), **Standard** (the browser's), **Off** |
| Echo cancellation, automatic gain | On or off |
| Call sounds | Join and leave chimes |

> [!TIP]
> In the app, **push to talk works while a game has focus**. The app only reads the key's state; it doesn't hook the
> keyboard or put anything into the game.

## Calls on a member's PC

In a **private** group, a member can carry the group's calls on their own connection: Voice settings, **My connection
hosts my calls** (in the app). While their app is open, the group's voice channels, and their calls with friends and
in group DMs, run on their PC, up to 25 people. The call stays encrypted, so their PC carries it but can't hear it.
If the router doesn't open ports by itself (no UPnP or NAT-PMP), forward a UDP and a TCP port to the PC in the
router's settings and type them under the switch.

A private group's calls are **end-to-end encrypted**: the people in the call agree a key among themselves, so neither
Games Communities' servers nor a hosting member's PC can hear or see them. The call gets a new key whenever someone
joins (they can't hear what came before) or leaves (they can't listen on). Under the call it shows a **safety code**:
everyone in the call sees the same 20 digits, so read it out; if someone's differs, something is listening in. Public groups' and stores' calls aren't, so their moderators' tools keep working.

The first time you join a call like that you're asked once: like a call with friends, the hosting member can see your IP
address. **Hide my address** sends your call through Games Communities' relay instead. If the host's PC closes or
fills up, the call moves to Games Communities' servers by itself. Their router must allow it (UPnP); if it can't, the
setting says why, and calls stay on Games Communities' servers.

## Voice in direct messages

Direct messages and group DMs can start a voice or video call too.

---

<!-- https://gamescommunities.com/docs/communities/roles-and-permissions.html -->
# Roles and permissions

Permissions work as on Discord: every member has the **@everyone** role, plus any roles given to them. A role adds
permissions; a channel can take them away or give more.

## Ranks come first

- **Owners** and **officers** have every permission.
- **Moderators** also kick, ban, time out, manage messages and read the moderation log.
- **Members** have what *@everyone* and their roles give.
- A member who is **timed out** can only read.

## Making roles

The community's menu › **Roles…**:

1. **New role**, then give it a **name**, a **colour** (a swatch or any colour) and an **emoji**.
2. Tick **Show apart** (*hoist*) to list its online members in their own group, and **Anyone may mention** to let
   members `@` it.
3. Tick its **permissions**.
4. Order roles with the up and down buttons: the most senior is at the top.

A community can have 250 roles; a member up to 50. Members are shown with their nickname and their most senior coloured
role's colour and emoji.

> [!NOTE]
> Someone with *Manage roles* can only change or give roles below their own most senior role, and only permissions
> they have themselves. The service checks every action again.

## Giving roles

A member's **…** › **Roles…**. Roles can also come from:

- **Linked roles**: a role needs a connected account (say, a Twitch account), and members who have it get it.
- **Scripts** (a member's roles changing is an event scripts can listen to).

## Channel permissions

A channel's or category's **…** › **Permissions of #channel…**:

- **Private**: only the roles and members you add can see it.
- For *@everyone*, moderators, a role or one member, each permission is **taken away**, **as their roles say**, or
  **given**.
- **Sync with its category**: use the category's settings.

## Nicknames

**Your nickname here…** sets your name in one community. Someone with *Manage nicknames* can change others'.

---

<!-- https://gamescommunities.com/docs/communities/moderation.html -->
# Moderation and safety

## Moderation…

The community's menu › **Moderation…** (officers):

- **AutoMod**: up to 25 rules. A rule watches for words (with `*` wildcards, and words to allow), spam or floods of
  mentions, and then blocks the message, alerts a channel, or times out the sender.
- **Verification level** (0-4): how much a new member must have done (a confirmed email, an account age, time in the
  community) before they can talk.
- **Rules**: words members accept before they can talk (up to 4,000 characters).

## Dealing with people

From a member's **…**:

| Action | What it does |
| --- | --- |
| **Time out…** | They can only read, for the time you pick. |
| **Kick** | Removes them; they can join again. |
| **Ban…** | Removes them for good or until a date, with a reason; can delete up to seven days of their messages. |

Moderators can also **delete** many messages at once (2 to 100), and turn on **slow mode** in a channel.

## The moderation log

**Moderation log…** lists what moderators and officers did: bans, kicks, timeouts, deleted messages, and changes to
roles, permissions and channels. Changes to the design and scripts are logged too.

## Reports

Anyone can **report** a message, a profile, a community page or a game. Reports go to Games Communities' staff, who can
remove content and end accounts or communities that break the rules. The person reported gets a statement of reasons.

## Safety for younger players

- Communities pick their audience (all ages, 16+, 18+ verified). See [Overview › Who it's for](overview.md#who-its-for).
- Bots can't message players under 16, and under-18s only in private communities.
- Players under 18 get safer defaults for who can message them and find them.

> [!WARNING]
> No community page, design or bot can ask for passwords, codes or card details, or pretend to be Games Communities.
> Such words are refused when saved, and look-alike letters are caught too.

---

<!-- https://gamescommunities.com/docs/communities/integrations.html -->
# Integrations, apps and bots

Games Communities speaks Discord's language for bots and apps, so many Discord tools work with it.

## Integrations…

The community's menu › **Integrations…** (officers):

- **Webhooks**: an address outside programs can post messages to, into a channel of your choice.
- **Apps**: bots and apps added to the community, with the permissions they asked for. Remove any at any time.
- **Slash commands**: the commands apps and scripts added, shown in the `/` menu as you type.
- **Into scripts**: a webhook address whose posts go to your [scripts](../scripts/reference.md#webhooks) (GitHub,
  Twitch, YouTube, or any site that signs its posts), not into a channel.
- **Outgoing webhooks**: your scripts can send data to your own server (private groups only).

## Bots with Discord libraries

Games Communities has a **gateway** that works like Discord's (version 10, JSON), so bots written with discord.js,
discord.py and similar libraries can connect to it with a bot token, once pointed at Games Communities' addresses.

## Developer apps

**Developer apps** (`#/developer-apps`) lets anyone make an **app**: a bot user, OAuth2 sign-in for your own site, and slash commands.
**Personal apps** can be added to your own account and used in your DMs and anywhere you are.

## Connections and linked roles

Members connect their Twitch, YouTube, Spotify, Steam, GitHub or Reddit accounts in Settings › Connections, and choose
which communities see each one.

- **Linked roles**: Roles… › a role › **Linked role** ticks the sites it needs. Members with those accounts get it.
- Scripts can see members' shared connections and whether they are **live** or **playing** right now.
- **Own app keys**: a private group can use its own Twitch or other app keys.
- **Own sites**: any site that signs people in with OAuth2 can be added as a connection.

## Your own code

For bots that live inside Games Communities, with nothing to host, see [Scripts and bots](../scripts/overview.md).

---

<!-- https://gamescommunities.com/docs/communities/take-it-with-you.html -->
# Take it with you, run it yourself

A group is never locked in: its owner can take all of it, run parts of it on their own machines, and give it its own
address.

## Download the whole group

The group's settings › **Download the whole group** (owner): a zip with `group.json` (the group, its channels, roles,
look, blocks, scripts with their code and settings, themes, and the data its scripts keep, the community's and each
member's), `page/` (the group's own page, its files as they're served) and `files/` (the pictures, fonts and tracks its
look and blocks use). Messages aren't in it: each member downloads their own in Settings › Privacy.

To bring it back, or start a copy somewhere: **Create a community › From an export…** and pick the zip. You get a new
invite-only group with its channels, roles, look, blocks, shared themes, data and your own member data (other
members' data stays out: they aren't in the new group); its scripts start switched off (read them, then
turn them on) and its page is a draft till you publish it. Anything that doesn't pass today's checks is named.

## Scripts on your own server

A private group's scripts already run on its owner's PC while their GC client is open (Settings, **Run my private
groups' scripts on this PC**, turns that off). To keep them running all the
time, on a server or a PC that's always on:

1. Install `gc-cli` there and `gc-cli login` as the group's owner.
2. Run `gc-cli host`. It runs every private group of yours that has scripts on, each run in a locked-down process, with
   ten times the time and memory GC's own hosts give. Ctrl+C stops it.

While it's connected your GC client leaves the scripts to it. When it's gone, GC's own hosts run them again. GC still
checks everything a script asks for, as always.

## Its own domain (public groups)

Free, no certificate to buy:

1. The group's settings: type the domain (`play.example.com`) and press **Use**.
2. At your domain's DNS add the **TXT** record GC shows (`_gc.play.example.com` holding `gc-domain=...`) and a
   **CNAME** from your domain to the name GC shows.
3. Press **Check**. Once GC finds the record (DNS can take an hour), the domain opens the group; its certificate comes
   at the first visit.

An open group's domain is its own address: links shared to it show the group's name and picture, and search
engines find the group there.

Only the owner sets or removes it. A domain belongs to one group, and a private group has none.

## Its own voice server and file bucket

Any group can carry its own calls and files:

- **Voice**: run [LiveKit](https://livekit.io) on your own server, then in the group's settings give its address
  (`wss://voice.example.com`), API key and secret, and press **Use**. Games Communities checks it answers; the group's
  new calls go there (calls already going finish where they are).
- **Files**: any S3-compatible bucket (MinIO, SeaweedFS, Backblaze B2, Wasabi and the like). Give its address, the
  bucket's name, an access key and secret. The group's files move there, and new ones go straight to it.

Both must be on the open internet on the usual port (443). Games Communities keeps the secret sealed and never shows it
again; it still checks every file for known illegal pictures. **Back to GC's** takes either off (a bucket's files come
back first).

---

<!-- https://gamescommunities.com/docs/stores/selling.html -->
# Making your group a store

A community store shows games its own way, on shelves its officers fill: games published on Games Communities, and
games sold on Steam, Epic, GOG or itch.io. Players buy Games Communities' games at its checkout, and they go into their
GC library; the others are bought on the stores that sell them. Your store earns a share of what its supporters buy.

## Becoming a store

- Make a community and pick **Store**, or
- In a group, open the community's menu › **Start selling…**: it adds the **Store** channel.

## Adding games

Officers add Games Communities' games from developers' pitches ([Sourcing](sourcing.md)) or a game's page.
Officers paste a game's Steam, Epic, GOG or itch.io page link (**Sourcing** › **Outside games**, or an AI helper).
Games Communities builds the game's page from it: name, words, pictures, trailers, and the price on each store that
sells it, in the viewer's country. The page's **Buy on <store>** opens that store. Members suggest games the same way
(**Suggest a game** on the store's page); officers see the most suggested first.

## What a store shows

The **Store** channel shows your store's page. Until you publish your own page, Games Communities writes a first one
for you from your store's pieces; officers can then change it freely (see [Your own page](pages.md)).

A store's pieces, all set by officers:

| Piece | What it is |
| --- | --- |
| **Stage** | The big games at the top (up to 6). |
| **Shelves** | Rows of games, each with a name, words and a style (cards, row, tiles, big, list). |
| **Picks** | Recommended games, each with a kind and a blurb (200 characters) and an optional link. |
| **Write-ups** | A longer text about a game (4,000 characters, 6 pictures), shown on its page when opened from your store. |
| **Page look** | A game's page opened from your store can wear your tagline, backdrop and tint, and hide some boxes. |
| **Labels and scores** | Your own labels ("Cozy", "Co-op") and a 1-5 score on each game. |
| **Events** | Moderators plan an event (a game night too); members say they're going and get reminded ten minutes before. |
| **Sale events** | A sale event of 1 to 14 days; developers can join it with a members' deal. |
| **Deals** | Members' deals and the developers' own sales of your games. |
| **Bundles** | 2 to 10 priced games sold together at 10-90% off, once their developers approve. Up to 10. |
| **Votes**, **Wanted**, **Played**, **Playing** | What members vote for, wish for, have played and play right now. |

Officers set shelves and bundles in the Store channel's menu › **Shelves and bundles…**.

> [!NOTE]
> A player community never picks its own officers' games: no self-promotion. A game's own community shows its studio's
> games anyway.

## Supporters and earnings

- A player **supports** one community store. A shop link (your `gamescommunities.com/c/<id>`) makes visitors support
  you if they support no one yet.
- Once an open store has 100 members, a share of what its supporters buy goes to the store's **owner** (never on the
  owner's own games; it comes out of Games Communities' cut, not the developer's). The owner's menu › **Earnings…** shows it and sets up
  payouts.
- The cart shows the store a player supports.

## Members' deals

A **members' deal** is a lower price a developer offers only to your members. Ask for one in
[Sourcing](sourcing.md), or accept one a developer offers. Members see the green members' price on covers, in the
cart and at checkout. **Group deals** unlock a members' deal once enough members wish for the game.

## Today

Officers get **Today**: the week's new members and messages, one next step to take, and how the community grows.

## Being found

- **Find stores** lists open groups and stores; players filter by topic, look and size, and pick topics they like
  for the matches.
- **The street**: each player's own street of the stores they joined.
- Your store's sign, tint and frame (the community's menu › **Look…**) show on the street.

---

<!-- https://gamescommunities.com/docs/stores/design.html -->
# Design

Every community, group or store, can have its own look. Officers open the community's menu › **Design…**: a tab for
each part. Changes are a **draft** until you **publish** them; every published version is kept, and **History…**
brings an old one back.

## The parts

| Part | What you set |
| --- | --- |
| **Colour and font** | The accent colour and the title font: Germania, Bungee, Pacifico, Press Start, Creepster, Cinzel, Fredoka, Permanent Marker, Orbitron, Lobster, Bangers or Silkscreen. |
| **Background and effect** | A wallpaper picture, how dim it is (0-90), and an effect (snow, petals, fireflies, leaves, stars, bubbles, confetti), or your own **scene**. |
| **Bursts** | Confetti-like bursts on joins, purchases, words or commands. |
| **Seasons** | Looks that come back each year between two dates, or a one-off **takeover** for a sale (up to 60 days). |
| **Labels and scores** | Labels for games, with colours, and how scores are drawn: paws, stars, hearts, stamps or numbers. |
| **Ranks** | Your own names, colours and badges for member, moderator, officer and owner. |
| **Welcome** | A title, words and rules shown to new members. |
| **Building** | Your store's building on the street: shop, cafe, arcade, castle, cottage or tower, and its window colour. |
| **Address** | Your own short address (`#/c/<address>`). |
| **Channels** | CSS for your chat, forum and voice channels, and whether they wear your colours. |

Members can also get a **flair** (the menu's **Flair…**): a word and a colour by their name.

**Themes…** has ready-made looks, six of them built in (colour, font, scores and an effect, plus a preset scene): **Try it** makes it your draft, leaving your words and pages as they are; you can also share your
own look as a theme.

## Everything from day one

Every part of a design is open to every community from its first member: backgrounds, effects, seasons, scenes,
bursts, moving pictures, animations, shaders, channels' CSS, your own page, widgets and activities, scripts and AI
helpers. Your own address is for open communities. If Games Communities takes a design down, its widgets, activities
and shaders stay off for 30 days.

## Scenes

A **scene** is a background made of layers: pictures, particles, light, fog, animations, shaders and a 3D backdrop.
The store, each page, the channels, the header and overlays can each have their own. Open the **Scene editor** in
Design… › Background and effect. Everything about them, with their limits: [Effects](effects.md).

## Channels' CSS

The channels' CSS (up to the size the editor shows) styles the channel list and the open chat, forum or voice channel.
It is kept inside the channels, so it can't reach the rest of the app.

- `[data-part=list]` is the channel list, `[data-part=channel]` the open channel; `[data-kind=text|announcements|forum|voice]`
  and `[data-channel="name"]` pick one kind or one channel.
- Classes: `.c-channels`, `.c-link` (`.active`, `.unread`, `.c-kind-<kind>`), `.c-chat`, `.c-messages`, `.c-day`,
  `.c-message` (`.c-me`, `.c-mine`, `.c-bot`, `.c-pinned`), `.c-body`, `.c-sender`, `.c-time`, `.c-pin`, `.c-reply`,
  `.c-text`, `.c-picture`, `.c-reactions`, `.c-typing`, `.c-composer`, `.c-locked`, `.c-forum`, `.c-thread`, `.c-title`,
  `.c-post`, `.c-voice`, `.c-person` (`.c-speaking`), `.c-ring`.
- Custom properties are `--my-*`, plus `--accent` and `--on-accent`.
- `url()` only for your own uploads. `@media`, `@supports`, `@keyframes` and `@font-face` are kept.
- CSS can't write words: quoted strings hold at most 4 symbols or emoji, no letters or digits.
- Games Communities' own pieces (names, avatars, badges, menus, notices) are out of its reach.

```css
.c-message.c-bot { border-left: 3px solid var(--accent); }
[data-kind=voice] .c-person.c-speaking { box-shadow: 0 0 0 2px var(--my-glow, #9fdc5c); }
```

## Safety rules

- Words asking for passwords, codes or cards, or speaking as Games Communities, are refused in designs, themes, pages
  and bot posts.
- CSS animations are slowed to at most 3 flashes a second.
- Viewers can turn off moving shops and widgets, and switch any community's channels to the plain look.

> [!AI]
> An AI helper changes the design with `set_design` (each part replaces the old one whole) and reads it with
> `get_design(parts)`. `reference("design")` has every field and its allowed values; `reference("channels")` the
> channels' CSS rules. See [AI helpers' tools](../ai/tools.md).

---

<!-- https://gamescommunities.com/docs/stores/effects.html -->
# Effects

A community's officers can give its pages moving backgrounds: falling snow, light rays, fog, glowing particles, Lottie
and Rive animations, their own shaders and 3D backdrops. Games Communities draws them all with its own renderer and
holds the budget, so an effect never slows a player's PC or a game.

Open **Design…** › **Background and effect**. The simple choice is one of the built-in effects (snow, petals, fireflies,
leaves, stars, bubbles, confetti). Or build your own **scene**, shaders too.

## Scenes

A **scene** is a background made of layers:

| Layer | What it is |
| --- | --- |
| **Picture** | An upload, at a depth (0-1: moves with the mouse), drifting or swaying, with a blend (normal, add, screen, multiply) and opacity. |
| **Emitter** | Particles: a shape (point, line, box, ring, edge), a rate, life, speed, angle and spread, gravity, wind, spin, size and up to 6 colours over its life, a built-in sprite or your own, glow, and the mouse pushing or pulling them. |
| **Light** | Rays, a spot or a vignette. |
| **Fog** | 1-4 bands, flowing. |
| **Grade** | A tint, contrast and saturation over the whole page. |
| **Bloom** | A glow on the bright parts. |
| **Animation** | A Lottie or Rive file, placed and sized, moving gently with the mouse. |
| **Shader** | Your own GLSL code. See [Shaders](#shaders). |

A scene can also have one [3D backdrop](#3d-backdrops) behind all its layers. A layer can be drawn **over** the page;
prices, buy buttons and legal parts are always kept clear of it.

### The Scene editor

- **Presets** to start from: snow, embers, rain, aurora, starfield, sakura, magic dust, god rays, fog bank.
- **The layers list**: add a layer, order them, hide one, take one off. Each kind has its own form.
- **A live preview** (16:9) in the real renderer, over a pretend shelf; "as a weak PC plays it" shows the Light mode.
- **The budget** as Games Communities counts it (layers, particles at once, pictures, how much of the screen is
  covered) and **this PC's cost** (milliseconds a frame).

### The budget

A scene is refused when it's over: 8 layers, 6 emitters, one grade, one bloom, 4 pictures (sprites and shader textures
count), 400 particles alive at once (rate times the longest life), and layers that together cover more than the
screen once. Other numbers are brought into range.

Every scene playing on one screen shares the same 400 particles. Effects run at 30 frames a second. When a PC is slow,
they step down for the visit: fewer particles, no glow, bloom or fog, half resolution, then a still frame. They pause
when the page is hidden or scrolled away, on a battery under 20%, and while any game plays.

## Places

Different places can have a scene of their own in place of the design's: **the store** front, **a page** of your own
site, **all channels** or **one channel**, **the header**, and **overlays** for streamers. A season
brings its own scene (one of the presets) for its dates.

A game's page opened from your store can wear a scene too (its page look; a preset). Starter themes bring a preset scene.

## Bursts

A **burst** is a one-off shower over the whole window: confetti, hearts, sparks, or your own (emitters, up to 300
particles in all, up to 6 seconds, built-in sprites). **Design…** › **Bursts** sets them, each played on any of:
a member joining, a purchase through the store, a word in a message, or a `!command`. **Try** plays one.

Scripts play them with `burst('confetti')` (everyone watching) or `burst('hearts', memberId)` (one member), widgets and
pages with `GC.burst(name)` (only that viewer). Up to 30 a minute for a community; a player sees at most 12 a minute.

## Animations

Upload **Lottie** (`.json` or `.lottie`) or **Rive** (`.riv`) files. They play in the header, in ranks'
badges, in stickers and as a scene's animation layer.

| Rule | Limit |
| --- | --- |
| File | 2 MB |
| Lottie | Has layers, 1-120 frames a second, up to 600 s, up to 4096 px; a `.lottie` up to 100 files and 16 MB unpacked |
| Rive | Format 7 or newer |

They pause when hidden or while a game plays, and show their first frame when effects are off.

## Shaders

A **shader** layer runs your own GLSL ES 3.00 code, Shadertoy-style:

```glsl
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = fragCoord / iResolution.xy;
  fragColor = vec4(uv, 0.5 + 0.5 * sin(iTime), 1.0) * vec4(iAccent, 1.0);
}
```

- **Inputs**: `iTime`, `iTimeDelta`, `iFrame`, `iResolution`, `iMouse`, `iScroll`, `iAccent` (your accent colour) and
  `iChannel0`-`iChannel3` (up to 4 of your pictures).
- **Rules**: ASCII, up to 16,000 characters, no `#version` or `#extension`; drawn at 0.25-1 of the screen's resolution
  (0.5 if not set).
- **WebGPU**: an optional WGSL version (`fn mainImage(fragCoord: vec2f) -> vec4f`, inputs as `gc.iTime` and so on)
  runs where the PC has WebGPU; the GLSL is still needed for the rest.
- The editor has templates (gradient flow, aurora, water caustics, starfield, plasma) and shows this PC's compile errors
  on your lines.

Changing shaders needs two-factor officers, as code does; they stay off for 30 days after Games Communities takes a design down.

To keep players safe, Games Communities watches every shader: one too slow for the GPU is drawn smaller, then stopped;
one that flashes more than 3 times a second stops at once. If players' GPUs fail on a shader, it's turned off for
everyone until its code changes.

## 3D backdrops

A scene's **3D backdrop** plays behind all its layers:

- **Sky**: a colour, a gradient (up to 3 colours) or a 360° picture that also lights the models; an exposure.
- **Lights**: ambient, sun, point; one sun casts shadows.
- **Fog**, **bloom**, and emitters of 3D particles (built-in sprites).
- **Models**: `.glb` files, placed, turned and sized, spinning, bobbing or playing their animation.
- **Camera**: where it stands and looks, its field of view (20-90), orbiting, following the mouse or the page's scroll.

The editor has presets (night sky, sunset haze, 3D snowfall, embers) and shows the backdrop's cost on this PC.

| A model (`.glb`) | Limit |
| --- | --- |
| File | 8 MB, glTF 2.0 binary |
| Triangles / draw calls / nodes / animations | 100,000 / 32 / 1,000 / 32 |
| Textures | PNG, JPEG or WebP, up to 2048 px |
| Refused | meshopt or Draco compression, KTX2 textures, GPU instancing |

A whole backdrop may have up to 200,000 triangles, 64 draw calls and 64 MB of textures. A 360° sky is PNG, JPEG or WebP
(no HDR).

## For players

Settings › Interface › **Effects** (this device): Full, Light (half the particles and resolution) or Off. **No moving shops**,
Windows' reduced motion and low performance mode show a still frame. See [Settings](../players/settings.md).

---

<!-- https://gamescommunities.com/docs/stores/pages.html -->
# Your own page

A community's **page** is a normal website you write, shown in its **Home** and **Store** channels and at its
`gamescommunities.com/c/<id>` address. Groups have one too. Games Communities' bar (Join, channels, Report) stays around
it; prices and **Buy** are only on Games Communities' game pages, which your page opens with `GC.open(ident)`.

## Files

- `index.html` is the front (shown in **Home**); `store.html` is shown in **Store** (the front if there's no Home).
- Other pages and folders work as on any site: relative links such as `about.html` or `css/site.css`.
- Write it however you like: plain HTML, any library or framework, or a build tool (upload the built files).
- Up to the number of files and the size per file shown in the editor; PNG and JPEG are kept as WebP when that's
  smaller, under the same name.
- Paths use letters, digits, `-_.~()+@` and spaces; folders with `/`; no dot files.

## Drafts, publishing and history

Every change goes to the **draft**. **Publish** shows it to everyone as a new version. The page's **History** keeps old
versions; bring one back and it becomes the draft and goes live again.

Ways to change the files:

- **In the app**: the Store channel's officers' menu, the page's files and code editor.
- **From your PC**: `gc-cli page pull <folder> --community=<id>` downloads the files; `gc-cli page push <folder>
  --community=<id> [--publish]` sends them back.
- **With an AI helper**: see [AI helpers](../ai/connect.md).
- **A whole folder as a zip**: upload it, and it becomes the draft (one wrapping folder is taken off).

## The seal

The page runs in a sealed frame of its own:

- No cookies, logins, `localStorage` or IndexedDB (they throw). Keep state in memory, or in the community's
  [data](../scripts/reference.md#data) through its scripts.
- Scripts, styles, fonts, pictures, media, workers and `fetch()` load only from the page's own files. Inline `<script>`
  and `<style>`, `eval`, WebAssembly, `data:` and `blob:` are fine; pictures may also use `GC.games()`' addresses.
- No forms (handle submit in JavaScript), popups or new tabs. Links inside the page work; `GC.go` and `GC.open` leave it.

## The GC bridge

Every HTML file gets the `GC` object first (don't add it). Each call returns a Promise.

| Call | Answers |
| --- | --- |
| `GC.home` | The page's folder address. |
| `GC.me()` | The viewer if a member: `{ id, name, nick, rank }`, else `null`. Asked once, shared with widgets. |
| `GC.store()` | The store: `name`, `tagline`, `about`, `tags`, `member`, and its pieces (see below). No prices. |
| `GC.games()` | Every game the store shows (up to 500), with their pictures' addresses. |
| `GC.theme()` | `{ accent, font, dark }`. |
| `GC.open(ident)` | Opens a game's page (from a click). |
| `GC.addToCart()` | On `game.html`: adds its game to the viewer's cart and opens the cart (from a click). |
| `GC.playtest()` | On `game.html`: starts its game's free minutes when `GC.game().playtest` has them (from a click). |
| `GC.go(where)` | `"channels"`, `"join"`, `{ channel: id }` or `{ member: id }` (from a click). |
| `GC.toast(text)` | A short message (one every 3 s). |
| `GC.burst(name)` | Confetti, hearts, sparks or the design's own burst. |
| `GC.data(key)` | A `public.` key of the community's data. |
| `GC.picture(hash)` | An upload as a `data:` address. |
| `GC.fetch(url)` | A GET of one of the sites `gc.json` lists, through Games Communities: `{ status, type, body }`, text up to 256 KB. |
| `GC.on(name, fn)` | Hears a script's `live(name, data)`. |

### gc.json: outside sites, servers and devices

A page reaches only its own folder until a `gc.json` at its top says more:

```json
{ "sites": ["api.example.com"], "connect": ["wss://game.example.com"], "devices": ["microphone", "camera", "gamepad", "fullscreen"] }
```

- `sites` (up to 20 names, no addresses): what `GC.fetch` reads. Games Communities fetches them, so viewers' IP
  addresses stay theirs. Members under 18 outside private and 18+ groups get none.
- `connect` (up to 10, `wss://` or `https://` and a name, a port maybe): your own servers (a game's WebSocket) the page
  reaches straight from the viewer's PC with `fetch` or `WebSocket`. They see the viewer's IP address, so Games
  Communities asks each member once first; until they say yes (and for those signed out, children, and under 18s
  outside private groups) the page runs without them.
- `devices`: the microphone and camera work once a viewer says yes (Games Communities asks once for the group's page
  and widgets; Settings › What groups may do takes it back); members under 18 outside private groups are never asked.
  A gamepad and fullscreen work once listed. Anything not listed stays off.

A `gc.json` that doesn't read right stops the page publishing, with why.

`GC.store()`'s pieces: `layout` (the pieces in order), `stage` `[{game, blurb}]`, `shelves` `[{id, name, about, style,
games}]`, `events` `[{name, about, starts, ends, live, games}]`, `deals` `[{game, ends}]`, `bundles` `[{name, games}]`,
`studio`, `dlc`, `picks` `[{game, kind, blurb, author}]`, `voted` `[{game, votes}]`, `wanted` `[{game, members}]`,
`played` `[{game, players}]`, `playing` `[{game, members}]`, `nights` `[{title, game, starts, going}]`. Games are idents.

```html
<!doctype html>
<link rel="stylesheet" href="css/site.css">
<h1 id="name"></h1>
<div id="shelves"></div>
<script>
  const store = await GC.store();
  const games = Object.fromEntries((await GC.games()).map((g) => [g.ident, g]));
  document.getElementById("name").textContent = store.name;
  for (const shelf of store.shelves) {
    const row = document.createElement("section");
    row.innerHTML = `<h2>${shelf.name}</h2>`;
    for (const ident of shelf.games) {
      const b = document.createElement("button");
      b.textContent = games[ident]?.title ?? ident;
      b.onclick = () => GC.open(ident);
      row.append(b);
    }
    document.getElementById("shelves").append(row);
  }
</script>
```

> [!NOTE]
> The example uses top-level `await`: put it in `<script type="module">` in a real page.

The page tells Games Communities where it is (its path and `#`), so the store's link opens it there again.

## Safety

Pages are checked when published: words asking for passwords, codes or cards, or speaking as Games Communities, are
refused. Visitors can **Report** a page.

---

<!-- https://gamescommunities.com/docs/stores/widgets.html -->
# Widgets and activities

A **widget** is a small web page of your own inside a community: a mini game, a vote, a scoreboard, a drawing wall. An
**activity** is a widget people start together in a voice channel.

## Where widgets show

- **On your page**: a page's own widgets.
- **As activities**: Design… marks a widget an *Activity* (and how many players). A channel's header then shows
  **Activities**; people **Start**, **Join** or **Watch** one. Games Communities draws the bar of players and watchers
  above it.

A widget runs only once the viewer says yes for that store (one click, remembered). Officers always see their own.
Viewers can turn widgets off in Settings.

## The seal

A widget is its own page in a sealed frame: no network, storage, cookies, forms, popups or way out. It talks to Games
Communities only through `GC.*` calls, each returning a Promise.

## Widget calls

| Call | What it does |
| --- | --- |
| `GC.me()` | The viewer if a member: `{ id, name, rank, flair }`, else `null`. |
| `GC.store()` | `{ name, accent, games: [{ ident, title }] }`. |
| `GC.theme()` | `{ accent, font, dark }`. |
| `GC.open(ident)` | Opens a game's page. |
| `GC.toast(text)` | A short message in the store's name. |
| `GC.data(key)` | A `public.` key of the community's data. |
| `GC.send(name, data)` | Calls the scripts' `widget(name)` handler and answers with its return (members only). |
| `GC.on(name, fn)` | Hears a script's `live(name, data)`. |
| `GC.picture(hash)` | An upload as a `data:` address for `<img>`. |
| `GC.resize(px)`, `GC.autoResize()` | Its height (60-2400). |
| `GC.fetch(url)` | A GET of one of its allowed hosts, through Games Communities: `{ status, type, body }`, text up to 256 KB. |
| Devices | Ticked in its editor (microphone, camera, gamepad, fullscreen): the microphone and camera once the viewer says yes (asked once for the group), the rest at once. |
| `GC.show(pieces)` | Games Communities draws its own pieces instead of the page (below). |
| `GC.burst(name)` | A burst over this viewer's window (12 a minute). |
| `GC.sounds()`, `GC.sound(id, volume)` | The soundboard's sounds, played here (4 a second, cut at 5.2 s). |
| `GC.scare({ picture, sound, seconds, size })` | A jump scare over the screen (app only, once the viewer allowed it, one every 10 s). |
| `GC.room(name)` | A shared live room (below). |

### GC.show

Pieces Games Communities draws for you, with real game cards and buttons:

```js
GC.show([
  { kind: "text", text: "Tonight's pick", size: "big" },
  { kind: "game", ident: "cat-quest" },
  { kind: "row", children: [
    { kind: "button", label: "I'm in", id: "in" },
    { kind: "progress", value: 7, max: 10, label: "7 of 10 seats" },
  ] },
]);
GC.on("press", ({ id }) => GC.send("signup", { id }));
```

Kinds: `text` (`size: big|small`), `game`, `button` (presses come to `GC.on("press")`), `picture` (`hash`, `alt`),
`progress`, `row` and `column` with `children`. Up to 200 pieces, 4 deep. `GC.show([])` shows the page again.

### GC.room

Every widget can join a shared room, kept in step for everyone in it:

```js
const room = await GC.room("board");
room.on("change", () => draw(room.all()));
room.set("cell-4", "X");        // JSON, up to 16 KB
room.say({ cheer: true });       // a message to the others, not kept
```

`me`, `write`, `peers`, `get`, `all`, `set`, `delete`, `say`, `on('change'|'say'|'peers'|'status')`, `leave`.

## Widgets with packages

A widget's code can be a module (JavaScript or TypeScript) with **npm packages**: they are pinned, their licences
listed, and bundled when you save. `GC.me` asks the viewer once whether the widget may know who they are.

## Stopped widgets

A widget that keeps the computer busy too long is stopped.

---

<!-- https://gamescommunities.com/docs/stores/sourcing.html -->
# Finding games: Sourcing

## Sourcing (for officers)

**Sourcing** (`#/c/<id>/sourcing`, under Store in the channels column) is where a store's games come from:

- **Outside games**: paste a game's Steam, Epic, GOG or itch.io page link. Games Communities builds its page (name,
  words, pictures, trailers, each store's price) and finds it on the other stores; tick the right ones or paste a
  missing store's page. Then put it on a shelf or the stage.
- **Members suggest**: links members pasted with **Suggest a game** (a note of 300 characters, 5 a day), most
  suggested first. **Take** adds one to Outside games; **Dismiss** drops it.
- **Removing**: take a game out of your community and its shelves. Games Communities' staff take a game's page down
  on a complaint, and its real developer can **Claim** it.

With games published on Games Communities, Sourcing also works with their developers:

| Tab | What's there |
| --- | --- |
| **Pitches** | Developers asking you to carry their game: with review copies, a deal, a beta or a game night. |
| **Deals** | Members' deals offered, asked, coming and running. |
| **Brief** | What your store is about, so developers know what to pitch. |
| **Reach** | What your store brought developers: visits, games opened, wishes and buys. |

## Honesty labels

A store's cards say when a developer gave something: **Review copy from the developer**, **Sent by the developer**,
**Members' deal from the developer**. Deal tags show the lowest price of the last 30 days.

## For developers

Developers see the other side in **Games Communities for developers › Stores**: their pitches and invites, **Find
stores** (the pitch form), and what each store brought. See [Working with stores](../developers/stores.md).

---

<!-- https://gamescommunities.com/docs/scripts/overview.html -->
# Scripts and bots

A community's **scripts** are code Games Communities runs for it when something happens: a member joins, writes a
message or a `!command`, buys a game, presses a button, or a timer fires. Scripts post as the community's bot, keep the
community's data, draw cards and talk to its widgets. There is nothing to host: the service runs them.

Every community can have scripts, whatever its size.

## Where to write them

- **In Games Communities**: the group's settings › **Code** is one folder: `site/` (the group's page: HTML, CSS,
  JavaScript) and `scripts/`. **+ New** › **A script** (an empty JavaScript page) or **A blueprint** (boxes and wires,
  no typing). Luau, Python and WebAssembly run too.
- **In your own editor**: **Code** › **Your editor** (in the app) puts the same folder on your PC and opens VS Code,
  Cursor or any editor; each save is saved to the group. **AI** › **AI Code** works in that folder too. From a browser
  or a terminal: [gc-cli dev](tools.md#gc-cli-dev).

## Learn

**Code and AI helpers…** › **Learn** has 11 small quests that teach scripting step by step: *Say hi*, *Say their name*,
*Your first command*, *Say it back*, *Roll a die*, *Count the messages*, *Points for each member*, *Give a flair*,
*Settings, no code*, *Add a button*, *On a timer*. Each has a task, a hint, **Check it** and **Show me a way**. Passing
them counts toward the *Script Learner* badge.

## A first script

```js
// Greets new members and answers !hello
on('join', e => post('general', `Welcome, ${e.member.name}!`));

command('hello', e => reply(`Hello ${e.member.name}, you are member number ${members.count()}.`));
```

The top level only registers **handlers** (`on`, `command`, `every`, `at`, `widget`, `button`…). Everything else
happens inside them. See the [Script reference](reference.md).

## Powers

A script may use only what its code names when it's saved: posting, reading chat, members, flair, data, design, live
news, cards, connections, webhooks and so on. Officers see each script's **powers**, and the officers' log names new
ones when a script changes. Any other call is refused.

## Limits

Each run has up to **300 ms**, **250,000 statements** and **24 MB** (double in a private group: the owner's
setting, any number of members). While a private group's owner has the GC client open, its scripts run on their PC with
ten times these limits; otherwise on Games Communities' servers. Scripts have no network, files or timers of their own: they use the calls Games Communities gives
them. The editor shows each run's cost, red from 75% of the limit.

Games Communities' staff can stop a script that misbehaves; officers see why.

## Other languages

- **Luau**: the same API by the same names; tables for objects, arrays from 1, `nil` for null.
  ```lua
  on("join", function(e) post("general", "Hi " .. e.member.name) end)
  command("win", function(e) reply(`Wins: {memberData.add(e.member.id, "wins", 1)}`) end)
  ```
- **Python** and **WebAssembly**: pick them as the new script's language; they run in the same sandbox with the same
  calls.
- **Blueprints**: events, actions and values as boxes joined by wires, for officers who don't code.

---

<!-- https://gamescommunities.com/docs/scripts/reference.html -->
# Script reference

Every call a community script can make. Scripts are JavaScript in strict mode (or [Luau](overview.md#other-languages)
with the same names).

## Handlers

The top level only registers handlers.

```js
on('join' | 'leave' | 'message' | 'buy' | 'widget' | 'status' | 'game' | 'playing' | 'webhook', e => { ... })
on('message', { channel: '1v1', startsWith: '!win' }, e => { ... })   // a filter: wakes only for these
command('roll', e => { ... })          // "!roll 1 6": e.args = ['1', '6'], e.text, e.member, e.channel
widget('vote', e => answer)            // a widget's GC.send('vote', data): e.data, e.member; the answer goes back
every(60, e => { ... })                // every N minutes (1 or more)
at('18:00', e => { ... })              // each day at this time (UTC)
button('join', e => 'You're in!')      // a press on this script's button 'join' (or 'join:anything')
menu('role', e => ...)                 // a pick in its menu: e.values
form('apply', e => ...)                // a button's form: e.fields
```

`buy` is a game bought through the store (no buyer named). What a `command`, `button`, `menu` or `form` handler
returns is shown only to whoever used it; `reply()` posts for everyone.

### Filters

| Event | Filter fields |
| --- | --- |
| `message` | `channel` (name, id or a list), `startsWith`, `contains` |
| `command` | `channel` |
| `buy`, `playing` | `game` (ident or a list) |
| `leave` | `kicked: true \| false` |
| `status` | `site` (or a list), `live: true \| false` |
| `webhook` | `hook`, `event` (a name or a list) |
| `edit` | `channel`, `startsWith`, `contains` |
| `delete`, `thread` | `channel` |
| `reaction` | `channel`, `emoji`, `added` |
| `roles` | `role` |
| `achievement`, `quest` | `game` |

Text matches ignore case.

### More events

```js
on('edit', e => ...)        // e.member, e.channel, e.id, e.text, e.was (the text before)
on('delete', e => ...)      // e.member (who deleted), e.author (who wrote; null if a bot's), e.bot, e.channel, e.id
on('reaction', e => ...)    // e.member, e.channel, e.message = { id, bot }, e.emoji, e.added
on('thread', e => ...)      // a public thread started: e.member, e.channel (its parent), e.thread = { id, name }
on('roles', e => ...)       // e.member, e.added, e.removed = [{ id, name }], e.by (null: they, onboarding or a linked role)
on('achievement', e => ...) // e.member, e.game = { ident, title }, e.achievement = { name, title }
on('quest', e => ...)       // a member finished a quest: e.member, e.quest = { name, title, game, minutes }
```

Achievements reach scripts only from members who let the community's bots have them.

### Commands with options

```js
command('roll', {
  description: 'Rolls dice',
  options: [
    { name: 'sides', type: 'whole', required: true, min: 2, max: 100 },
    { name: 'why', type: 'text' },
  ],
}, e => `You rolled ${random(e.options.sides) + 1}`);
```

A command with a description is in the `/` menu, which asks its options. `!roll 6 for luck` fills them in order (the
last text option takes the rest). Types: `text`, `whole`, `number`, `yes/no`, `member`, `channel`, `role`; `choices`
(a list, or `{ name, value }`), `min` and `max` (for text: its length). Required options first.
`e.slash` is true when it came from the menu.

### Settings

```js
const s = settings({
  properties: {
    channel: { type: 'string', title: 'Where to greet', format: 'gc-channel', default: 'general' },
    words: { type: 'string', title: 'Welcome words', default: 'Welcome!' },
  },
});
on('join', e => post(s.channel, `${s.words} ${e.member.name}`));
```

Called once at the top: a JSON Schema form officers fill in (string, number, integer, boolean, array of strings;
`title`, `description`, `default`, `enum` (+ `enumNames`) or `oneOf [{ const, title }]`, min/max, `format: 'color'`
or `'gc-channel'`). `s` holds their values, the defaults for the rest.

## What's in an event

`e.member = { id, name, rank, flair }` (rank 20 member, 30 moderator, 40 officer, 50 owner). `e.channel = { id, name }`.

## Posting

```js
post('general', 'Hello!')               // as the script's bot, in a text or announcements channel; 3 a run
reply('Rolled 4')                        // in the channel the message or command came from
post('general', 'Sign up?', {
  buttons: [{ label: 'Join', id: 'join', style: 'success' }, { label: 'Rules', url: 'https://…' }],
  menu: { id: 'role', placeholder: 'Pick one', options: ['Tank', 'Healer'], min: 1, max: 1 },
})
edit(id, 'New text')                     // or edit(id, { text, card, buttons, menu }): one of its own posts
dm(memberId, 'text', { buttons, menu })  // a direct message; true if sent
```

- **Buttons**: up to 10; `style` primary, secondary, success, danger; `emoji`; `disabled`. A button's `form:
  { title, fields: [{ id, label, long, required, placeholder, min, max }] }` (up to 5 fields).
- **Menus**: up to 25 options, as `{ label, value, description }` or texts.
- **DMs** fail (false) when the member hasn't let the community's bots message them (*Bots and you…*), is under 16
  (under 18: private communities only), or got 5 today. Up to 3 a run, 60 an hour.

## Data

```js
data.get(key), data.set(key, value), data.add(key, n), data.delete(key), data.list(prefix)
```

The community's own JSON data. Keys starting `public.` can also be read by widgets and the page (`GC.data`).

```js
memberData.get(id, key), memberData.set(id, key, value), memberData.add(id, key, n)
memberData.delete(id, key), memberData.list(id, prefix), memberData.top(key, n)  // [{ member, value }]
```

Data about one member: 50 keys of 4 KB each, erased when they leave, are kicked or banned.

## Members

```js
members.get(id), members.find(name), members.count()
flair(memberId, 'Champion', '#ffcc00')   // or flair(memberId, '') to clear
connections.get(id)      // [{ site, name, url }]: accounts the member shared with this community
connections.status(id)   // [{ site, live: { title, game, viewers, since, url } | null, playing: { title, by, url } | null, checked }]
game.get(id)             // { game: { title, steamAppId, ident, source }, phase, mode, map, character, team,
                         //   party: { key, size }, match: { key, players: [{ name, team, character, member }] }, stats, since } | null
match.members(key)       // [member]: members in that match or party (e.match.key, e.party.key) who share it
playing.get(id)          // the old shape: { game: { ident, title }, status, groupSize } | null
on('status', { site: 'twitch', live: true }, e => ...)   // e.member, e.site, e.live, e.playing, e.was
on('game', { game: 'A game', phase: 'end' }, e => ...)   // e.member, game.get's fields, e.was
on('playing', { game: 'a-game' }, e => ...)              // e.member, e.game, e.status, e.groupSize, e.was
```

Connections are Twitch, YouTube, Spotify, Steam, GitHub and Reddit, checked each minute (YouTube each five), only those
the member lets this community see. `game` is what the member is doing in a game (phase: menu, queue, lobby, picking,
loading, match or end; anything unknown is null), only if they share their games with this community (Settings > In
game) and said yes to that game. Keys are hashed with the game; members in one match share its `match.key`. Players who
aren't members are names inside the event only: a script never keeps them.

## Cards

```js
cards.set('board', card), cards.get(name), cards.delete(name), cards.list()
post('general', 'Tonight:', { card: 'board' })   // or reply({ card: 'board' })
```

A card is UI Games Communities draws in a post or a page, updated live: set it again and every message showing it
changes. Cards are **Adaptive Cards 1.6**: `TextBlock`, `Image` (an upload's hash), `Media` (`{ sources: [{ url }],
poster }`: a YouTube, TikTok, Spotify, SoundCloud, Vimeo, Twitch or Instagram link), `Container`, `ColumnSet`,
`FactSet`, `Table`, `ActionSet`, `Input.Text|Number|Toggle|ChoiceSet`, and GC's own `GC.Bar { value, max, label }`
and `GC.Countdown { until, label }`. Buttons are `{ type: 'Action.Execute', title, verb, data }`: `widget(verb)`
answers, with `e.data` = data plus the inputs.

```js
cards.set('score', {
  type: 'AdaptiveCard', version: '1.6',
  body: [
    { type: 'TextBlock', text: 'Raid progress', weight: 'Bolder' },
    { type: 'GC.Bar', value: data.get('raid') ?? 0, max: 100, label: 'Boss HP' },
  ],
  actions: [{ type: 'Action.Execute', title: 'Hit!', verb: 'hit' }],
});
widget('hit', e => { data.add('raid', 1); /* set the card again to update it */ });
```

**Overlay links**: a card can be shown live in a stream, as OBS's browser source. Officers make the link with
`POST /v1/communities/<id>/cards/<name>/overlay` (one per card; the link is shown once, making it again stops the old
one; `DELETE` stops it). The overlay shows the card as a signed-out viewer sees it, without buttons, over the design's
`overlay` scene (see [Effects](../stores/effects.md#places)).

## Look and live news

```js
design.get(), design.set({ accent: '#ff66aa', effect: 'snow' })   // once a run; checked as the Design editor
live('scores', data)              // tells the community's open widgets and page: GC.on('scores', …)
burst('confetti'), burst('hearts', memberId)   // over everyone's pages (or one member's); 30 a minute
sounds.list()                     // [{ id, name, emoji }]
sounds.play('Lounge', 'airhorn')  // a soundboard sound to a voice channel; one every 2 s
```

## Webhooks

```js
on('webhook', { hook: 'github', event: 'push' }, e => ...)
// e.hook, e.kind (plain, github, twitch, websub, standard), e.event, e.id, e.body (JSON or text), e.contentType
webhooks.send('my-server', data)   // to an outgoing webhook with Scripts' data ticked; private groups only, 3 a run, 16 KB
```

Incoming webhook addresses are made in Integrations › **Into scripts**; their signatures are checked. Outgoing ones are
signed as Standard Webhooks sign, and tried again for a day and a half.

## Leagues and quests

```js
leagues.all(), leagues.get(league, key), leagues.set(league, key, value), leagues.add(league, key, 1)
leagues.delete(league, key), leagues.list(league, prefix)   // data shared between communities in a league
quests.set('marathon', { title: 'Play 2 hours', description, game: 'cat-quest', minutes: 120, ends: Date })
quests.get(name), quests.list(), quests.delete(name), quests.progress(name, memberId?)
```

A **league** is several communities sharing data (each one's officers say yes in Code… › Leagues). **Quests**
are play-time goals; members join them themselves, and only their Games Communities play time since then counts.

## Library scripts

```js
const board = use(12, 3)   // library script number 12, version 3: what it put on exports
```

Scripts shared in the [library](tools.md#the-library) can be used by number and version (pinned). Their handlers and
powers become this script's. Up to 5.

## Everything else

`log(...)`, `random(n)`, `now()`, `community = { id, name, members, open }`.

## Powers and limits

A script may use only what its code names when saved: posting (`post`/`reply`), `members`, `flair`, `data`,
`memberData`, `design`, `live`, `cards`, `connections`, `playing`, `webhooks.send`, `leagues`, `sounds`, `burst`;
listening for `message` reads chat, for `webhook` hears outside sites.

Limits: 300 ms, 250,000 statements and 24 MB a run (double in a private group); no network, files or timers of its own.

> [!AI]
> This page is the same API `reference("scripts")` answers through the MCP server. Try a script with `try_script`
> before `save_script`.

---

<!-- https://gamescommunities.com/docs/scripts/tools.html -->
# The script tools

Officers open the community's menu › **Code and AI helpers…** (Code… for short). Its tabs:

## Scripts

Every script with its language, whether it's on, its powers and its last runs. A script's page has:

- **The editor** (CodeMirror): help while typing (every call and event is known, with its types), errors in plain words
  with their line marked.
- **Its settings form**, above the code, when the script calls `settings()`.
- **Try it**: runs the script on a made-up event (a join, a message, a command…) without keeping anything, and shows
  what it would post and change, with its cost.
- **Its last runs**, streaming live while you watch: what each did, its logs and errors, its cost (time, statements,
  memory).
- **Switch on/off**, and delete.

## The test room

**Test room** is a pretend channel: write messages and commands as a made-up member and see the scripts answer, press
their buttons and fill their forms, all without touching the real community. It keeps going between tries.

## The debugger

In the test room, click beside a line of code to set a **breakpoint**. A run stops there: see its values, then step on.

## Blueprints

A **blueprint** is a script drawn as boxes and wires: an event box (*a member joins*, *a command*), action boxes (*post*,
*give a flair*, *add to data*) and value boxes, joined in order. Good for officers who don't code.

## Data

**Data** shows the community's data (keys and values) and members' data. Change or delete values by hand.
**Data in and out** downloads all of it as a file, or loads one back.

## Leagues

**Leagues** lists the leagues the community is in, invites to join one, and makes a new one with other communities.

## The library

The **library** (`#/lib`) is scripts and kits shared between communities. Publish a script of yours with a version;
others use it by number (`use(12, 3)`), or copy it. Each item shows its powers.

## AI helpers

**AI helpers** makes keys for Claude Code, Codex or Cursor. See [AI helpers](../ai/connect.md).

## Terminal

In the Windows app only, **Terminal** opens PowerShell in a folder ready for an AI helper (its key and settings already
there). Start Claude Code or Codex from its buttons.

## gc-cli dev

Write scripts in your own editor and try them from your PC:

```sh
gc-cli dev ./scripts --community=<id> --init        # fills the folder with the community's scripts
gc-cli dev ./scripts/welcome.js --community=<id> --event=join --as=cat-1   # tries one on an event
gc-cli dev ./scripts --community=<id> --push        # saves them
```

`--event=join|message|command|…` and `--text=…` set the made-up event. Without `--push`, nothing is saved.

## Script webhooks

Integrations › **Into scripts** makes webhook addresses for outside sites (GitHub, Twitch, YouTube, or any site that
signs its posts); their posts arrive as the `webhook` event. See [Script reference › Webhooks](reference.md#webhooks).

## Bots and you

Every member decides what a community's bots may do with them: the community's menu › **Bots and you…**: messages from
its bots, its widgets knowing who they are, their achievements, their game status. Officers see none of the settings,
only the answers in scripts.

---

<!-- https://gamescommunities.com/docs/ai/connect.html -->
# Connecting an AI helper

An **AI helper** (Claude Code, Codex, Cursor, or anything that speaks the Model Context Protocol) can build your
community with you: ask it for a look, a page, a widget or a script, and it makes them in your community, through the
same checks as your own editors.

## What a key opens

A key opens one community's look and code: its design, page, shelves, scripts and data. Never money, members, ranks, or
chat as you. A key:

- is made by an officer, up to 5 a community;
- stops working when that officer steps down or leaves, and after 180 days;
- is a secret, like a password. Delete a key you don't use any more.

## The quick way

1. Open the community's menu › **Code and AI helpers…** › **AI helpers**.
2. Name the key and press **Make a key and copy a prompt**.
3. Paste the prompt into Claude Code, Codex or Cursor. It connects itself: no settings to edit.

The helper's server is named `gc-<your community's name>`, so several communities can be connected at once.

An empty **Store** channel shows its officers **Connect an AI helper**, the same steps.

## By hand

The address is your Games Communities address followed by `/v1/mcp` (for example `https://gamescommunities.com/v1/mcp`),
with the key as a Bearer token.

**Claude Code**:

```sh
claude mcp add --scope user --transport http gc-my-store https://gamescommunities.com/v1/mcp --header "Authorization: Bearer <your key>"
```

**Codex** (`~/.codex/config.toml`):

```toml
[mcp_servers.gc-my-store]
url = "https://gamescommunities.com/v1/mcp"
http_headers = { Authorization = "Bearer <your key>" }
```

**Cursor and others** (`~/.cursor/mcp.json` or their MCP settings):

```json
{ "mcpServers": { "gc-my-store": { "url": "https://gamescommunities.com/v1/mcp", "headers": { "Authorization": "Bearer <your key>" } } } }
```

## The AI helper on your PC

In the Windows app, Code… › **AI helper** is a chat with a model running on your own PC, no key to copy and no account
anywhere else. Under **Runs on**, **GC's model** comes first: the app checks your graphics card and memory and picks the
best model that fits (pick another from the list). The first time you open the AI helper, that model starts downloading
by itself (unless it's too big for your PC or one is there already); **Download** does it again later. It asks where to
keep it the first time (models are 3 to 23 GB: pick a drive with room), goes on where it stopped if cancelled, and checks every file before using it; **Delete…**
removes it again. The model starts with your first ask (a big one takes a minute) and stops 10 minutes after its last
answer. Nothing you say leaves your PC.

> [!TIP]
> Already use [Ollama](https://ollama.com) or [LM Studio](https://lmstudio.ai)? Get a model in it that can call tools,
> then pick it under **Runs on** instead (another server on this PC works too: its address ending in `/v1`, for example
> llama.cpp's `llama-server` on `http://127.0.0.1:8080/v1`). Set **Context** to what the server gives the model, and tick
> **It sees pictures** only for a model that reads pictures. The app remembers the choice on this PC.

Tell it what you want; each step it takes shows as one line (click to read it). **Stop** ends its answer, **New chat**
starts afresh. It publishes only after it looked at its draft; undo any change from Design… › **History…**. Closed, the
chat keeps going at the window's corner. A small model can't do as much as Claude Code or Codex: for big changes, use the
terminal.

**Share this chat to help train Games Communities' helper** (under the chat, off in each new chat; officers 18 or over):
ticked, the chat goes to Games Communities after each answer, to train its own model. Keys are taken out on your PC,
your community's members' names on the service, and pictures are never sent. Untick it to withdraw that chat, or
**Withdraw all** for every chat you shared: they're deleted at once. See the [privacy policy](/privacy).

## The terminal

In the Windows app, Code… › **Terminal** opens PowerShell in a folder that already holds the key's settings
(`.mcp.json`) and a `CLAUDE.md` about your community. Press **Start Claude** or **Start Codex**.

## Giving the helper this manual

The helper already has `reference(topic)` for the exact rules. For the bigger picture, point it to this manual:

- `reference("manual")` lists the manual's pages; `reference("manual/<page>")` gives one (for example
  `reference("manual/stores/design")`); `reference("manual", "<words>")` finds lines across all of them.
- `https://gamescommunities.com/docs/llms.txt` lists every page as Markdown; `llms-full.txt` is all of it in one file
  (`games-communities-docs.md` to download). Any page's address ending in `.md` instead of `.html` is that page as Markdown.
- Every page has **View as Markdown** at the top.

Next: [what the helper can do](tools.md), and [things to ask it](recipes.md).

---

<!-- https://gamescommunities.com/docs/ai/tools.html -->
# What an AI helper can do

These are the tools a connected helper gets. Each goes through the same checks as the editors in the app.

## Looking

| Tool | What it answers |
| --- | --- |
| `get_community` | The community: name, size, what its design may use, its channels, what its store has. **Start here.** |
| `reference(topic, find)` | The rules for a part: `design`, `channels`, `widgets`, `scripts`, `store`, `page`, `manual`. With `find`, only the lines with those words. |
| `get_design(parts)` | The saved design (pictures and fonts by hash) and what it may use; only the parts asked for. |
| `get_store` | The shelves with their games, labels and scores (what `GC.store()` gives the page). |
| `search_games(query, take)` | Games Communities' games by words of their title or ident (1-50). |
| `list_uploads` | The community's uploaded pictures and fonts, newest first. |

## The look

| Tool | What it does |
| --- | --- |
| `set_design(patch)` | Changes parts of the design, each part replacing the old one whole. `channelsCssAppend` adds CSS after the saved channels' CSS. Answers with what the cleaner left out. |
| `edit_text(target, old, new, all)` | Changes part of a long text (`channelsCss` or `script:<name>`) without sending it all again. |
| `upload_link(page)` | A one-time address (15 minutes, one file) to `PUT` a file with `curl -T`: a picture (4 MB), font (1 MB), track (8 MB) or animation. With `page`, a file of the page (or `"/"` for a zip of its folder). |
| `upload_file(base64)` | A small file as base64. Prefer `upload_link`. |

## The page

| Tool | What it does |
| --- | --- |
| `list_files(folder)` | The draft's files, whether the draft differs from what shows, the live version, the last versions, the limits. |
| `get_file(path, version, from, count)` | A text file of the draft or of a published version, in parts if long. |
| `write_file(path, text)` | Writes a whole text file (html, css, js, json, txt, svg) into the draft. |
| `edit_file(path, old, new, all)` | Changes part of a file of the draft. |
| `delete_file(path)` | Takes a file out of the draft. |
| `publish_page` | Shows the draft to everyone as a new version (it needs `index.html`). |

## The store

| Tool | What it does |
| --- | --- |
| `save_shelf(id, name, about, style, games)` | Adds a shelf (no id) or changes one. Styles: cards, row, tiles, big, list. |
| `delete_shelf(id)` | Deletes a shelf. |
| `mark_game(game, labels, score)` | Puts up to 4 of the design's labels and a 1-5 score (0: none) on a game. |
| `save_channel(id, name, kind, topic, widget, parent)` | Makes a channel (no id) or changes one. Kinds: text, announcements, forum, voice, category, widget (one of `get_community`'s activities fills it). |

## Group settings

| Tool | What it does |
| --- | --- |
| `group_settings(method, path, body, base64)` | Reads (GET) or changes anything of the group its officer may, as them: its name and words, Sourcing (pitches, saved and passed games, picks, the brief, deals asked, outside games, members' suggestions), Sales, Events, Activities, Shelves, moderation (filters, bans, time outs), members, roles, invites, chat, emoji, stickers and sounds. Only what the officer's rank and roles let them; never deleting the group. `reference("settings")` lists every path. |

## Scripts and data

| Tool | What it does |
| --- | --- |
| `list_scripts` | The scripts: names, what each listens for, on or off, failures in a row. |
| `get_script(script, runs, code)` | A script's code and its last runs (0-50). |
| `try_script(...)` | Runs code on a made-up event (`join`, `leave`, `message`, `command`, `buy`, `widget`, `every:<minutes>`, `at:<HH:MM>`) without doing anything: what it would post, set and change, its log and error. Keeps a room between tries: send its id back. |
| `save_script(name, code, enabled)` | Saves a script by name. Without code, saves the code last tried (kept 30 minutes). |
| `switch_script(script, on)` | Switches a script on or off (one failing 20 times in a row is switched off by itself). |
| `delete_script(script)` | Deletes a script and its runs. |
| `get_data(prefix, key)` | The community's data by prefix (up to 100 keys; long values as sizes), or one key whole. |
| `set_data(key, value)` | Sets a key to a JSON value (up to 16 KB), or deletes it (null). |

## Good habits

> [!AI]
> - Start with `get_community`, then `reference(topic)` for what you'll change, and `reference("manual", "<words>")`
>   for how members will see it.
> - Try every script with `try_script` before `save_script`.
> - Upload files with `upload_link` and `curl -T`, not base64.
> - Change long CSS, HTML and code with `edit_text` or `edit_file`, never by sending it all again.
> - Ask `get_design(parts)` for only the parts you need.
> - Games Communities draws prices and buy buttons itself: a page opens a game with `GC.open(ident)`.
> - The community's code can't reach logins, other sites, or Games Communities' own header and columns.
> - Never write words asking for passwords, codes or cards, or speaking as Games Communities: they are refused.

---

<!-- https://gamescommunities.com/docs/ai/recipes.html -->
# Recipes: building with an AI helper

Step-by-step plans for common jobs. Officers can paste the **Ask** line into their helper; helpers can follow the
**Steps**.

## Set up a new group

**Ask**: "Set up our group for a cozy farming-games crowd: welcome, rules, a look, and a few fun bots."

**Steps** (the officer first makes the community in the app and picks a starter kit: channels and roles come from it):

1. `get_community`: its name, channels and what its design may use.
2. `reference("design", "welcome")`, then `set_design` with `welcome { show, title, words, rules }` and `accent`, `font`.
3. `effect` (snow, petals, fireflies, leaves, stars, bubbles, confetti) and a wallpaper (`upload_link`, then
   its hash in the design).
4. `ranks` with the group's own names, colours and badges.
5. Scripts: write a greeter or a `!command`, `try_script` on `join` or `command`, then `save_script`.

## Open a community store

**Ask**: "Make us a store for horror games: shelves, labels, a page."

**Steps** (the officer first makes it a store: **Start selling…**, or picks Store when making it):

1. `get_community`, `get_store`.
2. `search_games("horror")`, and more words, to find games.
3. `set_design` with `labels` (for example *Jump scares*, *Slow burn*, *Co-op*) and `rating` (paws, stars, hearts,
   stamps, numbers).
4. `save_shelf` for each shelf (up to 20, 40 games each), with a style.
5. `mark_game` with labels and a score for the best ones.
6. Write the page (below).

> [!NOTE]
> A community store never picks its own officers' games.

## Write the store's page

1. `reference("page")` for the seal and the `GC` bridge.
2. `list_files`: what's there, the limits.
3. `write_file("index.html", …)` (the Home channel's front) and `write_file("store.html", …)` (the Store channel), and
   their CSS and JavaScript files. Read the store with `GC.store()` and `GC.games()`; open games with `GC.open(ident)`.
4. Pictures and fonts: `upload_link(page: "img/hero.webp")`, then `curl -T`.
5. Change files with `edit_file`.
6. `publish_page` once the officer is happy.

A ready-made site (React, Vue, Svelte, anything): build it, zip the built folder, `upload_link(page: "/")`, `curl -T`
the zip, then `publish_page`.

## Style the channels

**Ask**: "Make our chat look like a neon arcade."

1. `reference("channels")`: the classes and rules.
2. `set_design({ channelsCss: "…" })`, or `channelsCssAppend` for small additions.
3. Later changes with `edit_text("channelsCss", old, new)`.

## A season or a sale takeover

1. `reference("design", "seasons")`.
2. `set_design({ seasons: [...] })`: from and to as `MM-DD`, with the season's accent, effect or scene. A one-off
   takeover for a sale lasts up to 60 days.

## A points game with a scoreboard

**Ask**: "Give members a point for each message and show the top ten on our page."

1. Script: `on('message', …)` with `memberData.add(e.member.id, 'points', 1)`, and `command('top', …)` with
   `memberData.top('points', 10)`.
2. Keep the top ten in `data.set('public.top', …)` so the page can read it, and `live('top', …)` to update open pages.
3. `try_script` on `message` and `command`, then `save_script`.
4. On the page: `GC.data("public.top")` to draw it, `GC.on("top", …)` to update it.

## A widget activity for voice

1. `reference("widgets")`.
2. Write the widget's HTML; use `GC.room(name)` to share the game's state and `GC.show` for GC's own pieces.
3. Mark it an Activity in Design, with how many players.

## A live card

1. A script with `cards.set('board', { type: 'AdaptiveCard', version: '1.6', body: [...], actions: [...] })`.
2. `post('general', 'Tonight', { card: 'board' })` once; `cards.set` again later changes every message showing it.
3. `widget(verb)` handles its `Action.Execute` buttons.

## Check before you finish

- `get_script(name, runs)`: the last runs, their errors.
- `list_files`: does the draft differ from what shows? Publish it.
- `get_design`: is what the cleaner left out what you meant?

---

<!-- https://gamescommunities.com/docs/developers/getting-started.html -->
# Selling your game on Games Communities

Games Communities sells Windows games made with any engine: Unity, Unreal, Godot, GameMaker, your own. You upload the
same build you'd give any store. There is **no SDK** to add and **no DRM**: players download your game and play it.

## Before you start

1. **An account** with **two-factor sign-in** on (Settings › Account, or `gc-cli 2fa on`).
2. **Your developer details**: the developer pages (header › your name › **Games Communities for developers**) ask your
   legal name, country, whether you sell as a trader, and to agree to the developer terms.
3. To be paid, a payout account (see [Money](money.md)).

## The road to release

| Step | What happens |
| --- | --- |
| **Draft** | Make the game: its name, store page, prices, build. Only you see it. |
| **Review** | Send it for review. Games Communities checks the page, the build and the content survey. |
| **Approved** | It can show as *Coming soon* (at least two weeks before release), then go **live**. |
| **Rejected** | You get the reason; fix it and send it again. |

New developers can have one game in review at a time, and send up to 3 games each 30 days.

## Your first upload

```sh
gc-cli login
gc-cli publish-native ./MyGame --exe=MyGame.exe --title="My Game"
```

`publish-native` makes the game if it's new, uploads only what changed, and makes a **build**. See
[Publishing builds](publishing.md).

## What players get

- The game in their library on Windows, downloaded through the Games Communities app, updated by itself.
- **DRM-free**: no launcher needed to start it, and an **offline installer** to keep.
- Achievements, cloud saves and their play time, if you use them.
- Your game's page, its community, its news, reviews and wishlists.

## Next

- [Publishing builds](publishing.md): uploads, branches, going live, rolling back.
- [Your store page](store-page.md): words, pictures, prices, release dates, DLC.
- [Money](money.md): the cut, VAT, payouts.
- [Working with stores](stores.md): community stores that carry your game.

---

<!-- https://gamescommunities.com/docs/developers/publishing.html -->
# Publishing builds

## Uploading

```sh
gc-cli publish-native <folder> [--exe=Game.exe] [--title="My Game"] [--note="What changed"] [--set-live=<branch>]
```

- `<folder>` is the game as players would run it; `--exe` its start file.
- Only the parts that changed are uploaded (the files are cut into chunks, and known chunks are skipped).
- Each upload is a new **build** with a number and its note.

## Checks on every build

Every build is checked before players get it: that it starts from its exe, holds no DRM or anything that phones home to
sign in, and matches its content survey. A build that fails gets the reason.

## Going live

- A game not yet released: each upload goes live on the **default** branch by itself.
- A released game: an upload waits until you **set it live**, with your two-factor code:
  ```sh
  gc-cli builds <ident>                       # the game's builds
  gc-cli set-live <ident> <build> [--branch=default]
  ```
- **Rolling back** is setting an older build live.
- The last 10 builds are kept.

## Branches

A **branch** is another line of builds players can pick in the game's properties: a beta, an older version, a test
for friends.

```sh
gc-cli branch <ident> beta --description="Next update" [--password=secret]
gc-cli branch <ident> beta --delete
```

With a password, only players who know it can pick the branch.

## Teams and build machines

- Add people to the game's **team** on the developer pages, each with what they may do.
- A **build token** (Builds › Build tokens; up to 10 a game) lets a build machine upload without your login: set
  `GC_BUILD_TOKEN` and run `publish-native` as usual. A token uploads only its game, can set builds live only on its
  beta branch (never default), and stops working when its maker leaves the team.

## Taken down

Games Communities can pull a build that breaks the rules or harms players; you get the reason, and the last good build
goes back live.

## Game status from your game

A running game can say what the player is doing ("In the forest, level 3") through the app's game-status pipe, which
speaks Discord's Rich Presence format on its own pipe (`gc-ipc-0`): a Rich Presence library pointed at that
pipe works. Friends see it when the
player lets their games share it. `gc-cli game-status "text"` acts as a game, to try it.

---

<!-- https://gamescommunities.com/docs/developers/store-page.html -->
# Your store page

Everything on the game's page is set in the developer pages, or from a folder with gc-cli:

```sh
gc-cli store-page <ident> <folder>
```

## What's on it

- **Name, short words and long words**, its genres and tags.
- **Pictures**: the cover, the header, screenshots and trailers.
- **Languages**, what it needs to run, its controller support.
- **Accessibility**: the features your game has, from Steam's 16 (gameplay, audio, visual, input, communication).
  Players search by them.
- **Early Access**: while your game is in it, answer six questions (why, how long, the full version's plans, its state
  now, pricing, how you listen to players), up to 2,000 characters each. Shown above *About*.
- **Content survey**: what's in the game (violence, fear…). It sets the age labels.
- **Release date**: an exact day or a looser one (a month, a season, a year). A game shows as **Coming soon** for at
  least two weeks first; players can wishlist it and are told when it's out.

## Prices

- A base price, and **regional prices** for each currency.
- **Sales**: a discount with a start and end; deal tags show the lowest price of the last 30 days.
- **Pre-purchases** before release.
- **Off sale**: stop selling without taking it from owners' libraries.
- Free games and **trials**: a free part of a paid game.

## More you can sell or give

- **DLC**: add-ons with their own pages and prices.
- **Product keys**: keys for players who bought elsewhere, redeemed in the app.
- **Game tickets**: let your own servers check a player owns the game.
- **Playtests**: a free test version players ask to join.

## Inside the game

- **Achievements**, **cloud saves** and the **workshop** (players' mods), if your game uses them.
- **Events**: in-game events and launches shown on the page and to players who follow the game.

## News

```sh
gc-cli news <ident> "Update 1.2 is out" --body-file=notes.md
```

News shows on the game's page and to its followers.

## Reviews

- Players who own the game can review it; you can **answer** each review in public (one answer, up to 8,000 characters,
  changed or taken back any time). The reviewer gets a mail with your first answer.
- When a burst of reviews comes that's not about the game (a **review bomb**), Games Communities marks it, and the score
  can leave it out.

## How it's doing

**Store page traffic** shows visits, where they came from (search, stores, communities, links), wishlists and buys.

A game's page has a **Players** box (playing now, the peaks, 30 days), and the most played games are in **Most played**.

## Being seen: a fair hearing

Every new game gets a **hearing**: Games Communities shows it to a first group of players, whatever its sales. If those
players play it, come back to it, wish for it or buy it about as much as the store's usual game, it's shown to a bigger
group, then a bigger one. A game that stops can ask for a new hearing with a newer build, 30 days after its last start.
While many plays of the current build go wrong, its hearing waits.

**Games Communities for developers** › **Visibility** shows where your game is: its hearing's steps, how players shown it
did against the store, how often it was shown each day and where, and players' boosts.

**Capsule tests**: upload one or two other covers; each player sees one of them (always the same one) everywhere, and
Visibility shows which does better. **Keep** the winner, and it becomes your page's cover.

---

<!-- https://gamescommunities.com/docs/developers/money.html -->
# Money

## Your share of a sale

```
your share = (price − VAT) − Games Communities' cut − payment costs
```

- **VAT** (or sales tax) is taken off first: Games Communities sells to the player and pays it.
- **The cut** is a percentage, dated: a rise is told 30 days before it starts; a fall starts at once. Each sale uses the
  cut of its day.
- **Payment costs** come off before the split.
- A community store's share for bringing the buyer comes out of Games Communities' part, not yours.

## Payouts

- Set up a payout account on the developer pages (**Your earnings**). Payment is through Games Communities' payment
  partners; you sign up with them there.
- Paid to developers in the EEA, the UK, Switzerland, the US and Canada.
- A part of each sale is held for a while in case of refunds and chargebacks, then paid with the rest.

## The pages

| Page | What it shows |
| --- | --- |
| **Price & sales** | Prices, regional prices, discounts. |
| **Sales** | Each sale: when, where, the price, the VAT, the cut, your share. |
| **Your earnings** | What's owed, what's held, what's been paid, your payout account. |

## Refunds

Players can get a refund within the store's rules (see [Refunds and withdrawal](../players/store-and-buying.md#refunds-and-withdrawal));
a refunded sale's share is taken back.

## Ending

You or Games Communities can end selling with 30 days' notice; players keep the games they bought.

---

<!-- https://gamescommunities.com/docs/developers/stores.html -->
# Working with community stores

Community stores are players' own shops inside Games Communities: they pick games, show them their way and bring their
members. A store never sells your game itself: players buy it from Games Communities as always, and your share is the
same.

## Find stores

**Games Communities for developers › Stores**:

| Tab | What's there |
| --- | --- |
| **Find stores** | Stores that fit your game, by their kinds and members, and their **Brief** (what they want pitched). |
| **Pitches** | Your pitches and the stores' invites. |
| **What stores brought** | Each store's visits, games opened, wishes and buys for your games. |

## Pitching

A pitch asks a store to carry your game, with an offer:

- **Review copies** for the store's officers;
- a **members' deal**: a lower price only for the store's members;
- a **beta** or a **game night** with the developers.

The store sees it in its Sourcing. Cards say when something came from you: *Review copy from the developer*, *Members'
deal from the developer*.

## Events and bundles

- **Events**: stores run sale events of 1-14 days; join with a members' deal.
- **Bundles**: a store can put your priced game in a bundle (10-90% off); it only sells once you approve.
- **Group deals**: a members' deal that unlocks once enough of a store's members wish for your game.

## Your game's own community

Every game can have its own community, run by its developers: news, chat, playtests, a store of the studio's games.

---

<!-- https://gamescommunities.com/docs/admin/overview.html -->
# Running Games Communities

This part is for Games Communities' own admins: the people who run it and keep it safe.

## Admin accounts

An account becomes an admin when the service is started with `--admin=<user>`. Admins see the same app as everyone,
plus the admin pages. Every change an admin makes through the service (each request to `/v1/admin/...` but reads) is
written to the **admin log**: who, when, what was sent and the answer.

## GC Tools

**GC Tools** is the admins' menu on their own PC, one key a job:

| Key | Job |
| --- | --- |
| **0** | The public store on this PC: start, stop, update, invite codes, make an admin. |
| **1**, **U**, **%** | Publish a new app release; choose who gets it (beta first, then a share of players); feature flags for a share of players. |
| **2**, **3** | Upload the website; update the service. |
| **4** | Invite someone. |
| **5**, **N**, **X** | Reports and notices of illegal content; the safety numbers; remove something at once. |
| **6** | Ban or unban a player. |
| **Y**, **!** | Take down a shop's code; script kill switches. |
| **+**, **D** | The street's house stores; the front page's picks. |
| **E**, **H** | Error reports from players' apps; support requests. |
| **A** | The admin log. |
| **S**, **L**, **R**, **-**, **B**, **F**, **T** | Status, live logs, restart, undo the last service update, backups, server files, a terminal on the server. |
| **9**, **P**, **G**, **O**, **C** | Run all checks; preview the website; local stores full of test games; the client. |
| **W**, **?** | Open the website; this manual. |

GC's own games (the `gc-games` flag): **7**, **K** (pull a game or build; held builds), **8**, **#**, **V** (review
games; end a developer account; review bombs), **M** (money), **Z** (deal checks). Later: **D** (front page picks,
with the store front), **\*** (the Steam lab), **I**, **J** (GC Ship; the developer tools' checks).

## Health

`/healthz` answers the service's health: its database, its disk and its virus checks. GC Tools' **S** shows each
service with its memory and how long it has run.

## Recovering an account

A player who lost their email address, or whose account was stolen:

```sh
gc-api --data=<folder> --recover-account=<player>:<their new email>
```

Only after checking who they are. Every login ends and the player sets a new password from the new address.

See also [Moderation](review-and-moderation.md) and [Running it on your PC](running-locally.md).

---

<!-- https://gamescommunities.com/docs/admin/review-and-moderation.html -->
# Review and moderation

## Reviewing games

GC Tools' **8** lists the games sent for review, **riskiest first**: a new account, a first game, many games sent in
30 days, refused copies, the build check's flags. For each game:

- its page, its content survey, its build's check;
- **Approve**: it can show as Coming soon and go live;
- **Reject**, with the reason the developer reads.

## Builds

- Every build is checked: viruses, DRM, copies of another developer's game or assets. A build that looks wrong is
  **held** (GC Tools **K**) until an admin lets it through or refuses it.
- **Pull a game or a build** (GC Tools **7**): a pulled game is gone from lists, pages, Play and downloads; its files
  stay, so putting it back is instant. A pulled build is replaced by the last good one.

## Reports

Players report games, reviews, posts (boards' posts and replies too), profiles, pages, messages and games' pages; anyone can send a **notice of illegal content**
from the website or the app. GC Tools' **5** lists them; **X** removes something at once with the reason its author
gets. Each decision is recorded with its reason; authors can appeal.

**Safety numbers** (**N**): reports per kind and how fast each was decided, for the yearly reports the law asks for.

**Known-illegal files** (`GET /v1/admin/file-matches`): pictures and videos refused (or taken down later) because they
matched a known-illegal hash list, with the list, where they were sent, who sent them and from which address. Each is
reported as the law asks. Off unless gc-api runs with `--hash-check=` (Meta's HMA on GC's box, `setup-hma.sh`).

**Harmful links** (`--bad-links=urlhaus`): lists of malware and phishing links downloaded every 30 minutes; members'
links on them don't open (the client asks `GET /v1/links/check` first).

**Adult pictures** (`--picture-check=<model.onnx>`): public groups' pictures are classified once each; flagged ones are
refused and hidden in groups that aren't 18+. A wrongly flagged one: `POST /v1/admin/picture-labels/<sha256>/clear`.

## Players

- **Ban** (GC Tools **6**): with a reason the player sees when they log in, for some days or for good. A ban ends all
  their logins.
- **Support** (**H**): players' requests for help, oldest first.

## Communities

- **Take down a shop's code** (**Y**): a community's design, page or widgets that break the rules go back to the plain
  look, with the reason its officers read.
- **Script kill switches** (**!**): stop one script, a community's code, or a library piece and every script using it.
- **Deal checks** (**Z**): members' deals that look abused, such as members flooding into a store just before a deal.

## Developers

- **Endings** (**#**): end a developer account, with the rule and reason; 30 days' notice, at once for illegal content.
- **Review bombs** (**V**): sudden waves of negative reviews; mark them so the score can leave them out.

---

<!-- https://gamescommunities.com/docs/admin/running-locally.html -->
# Running it on your PC

For developing Games Communities itself. You need .NET 10 and Node 22.

## Build

```sh
dotnet build GamesCommunities.slnx -v q -nologo -clp:ErrorsOnly
cd store/client && npm ci && npm run build && npm run check
```

`npm run build` also builds this manual into `dist/docs/`.

## The service

```sh
dotnet run --project shared/GamesCommunities.Api -- --data=<folder> [--admin=<user>]
```

It listens on `http://127.0.0.1:5080`, keeping everything (SQLite and files) in `<folder>`. Useful flags for a test
service: `--no-review` (games go live without review), `--voice-dev` (voice without a media server).

## The website

```sh
cd store/site
GC_API=http://127.0.0.1:5080 node server.mjs
```

Open `http://127.0.0.1:3200`. The manual is at `/docs/`.

## The app

```powershell
.\tools\Start-GC.ps1 -Api http://127.0.0.1:5080
```

> [!WARNING]
> Anything that starts the launcher on a PC with a real Games Communities install must pass `--folder=<scratch>`, so
> it doesn't touch the real install.

## Test data

`store/client/dev/seed-communities.mjs` fills a local service with communities, with flags for more:
`--shops`, `--design`, `--scripts`, `--code`, `--pages`, `--more`, `--street`.

## Publishing a game to it

```sh
gc-cli login --api=http://127.0.0.1:5080
gc-cli publish-native <folder> --exe=Game.exe
```

## Tests

```sh
dotnet test --project shared/tests/GamesCommunities.Services.Tests
dotnet test --project store/tests/GamesCommunities.Store.Tests
```

---

<!-- https://gamescommunities.com/docs/reference/limits.html -->
# Limits

The numbers the service holds to. A request past one is refused with the limit in its words.

## Communities

| What | Limit |
| --- | --- |
| Communities a player is in | 100 |
| Open communities a player owns | 3 |
| Members of a private group | No limit |
| Members of a public community (open or invite-only) | No limit |
| Name / tagline / about | 64 / 200 / 2,000 characters |
| Tags | 5 |
| Channels and categories | 500 |
| A message | 2,000 characters |
| Channel topic | 200 characters |
| Roles / roles a member has | 250 / 50 |
| A role's name / a nickname | 50 / 32 characters |
| AutoMod rules / words a rule | 25 / 1,000 (60 characters each) |
| Rules text / a ban's reason | 4,000 / 512 characters |

## Boards

| What | Limit |
| --- | --- |
| A post's title / words / link | 300 / 20,000 / 500 characters |
| Pictures a post / a picture | 6 / 8 MB |
| A reply | 10,000 characters |
| Replies a post / how deep | 2,000 / 8 |
| Posts / replies a day | 25 / 500 |
| Boards a player follows | 500 |
| A ban's reason | 300 characters |

## Design and stores

| What | Limit |
| --- | --- |
| Labels / seasons / bursts | 12 / 8 / 8 |
| A takeover season | 60 days |
| Bursts over pages | 30 a minute |
| Shelves / games a shelf | 20 / 40 |
| Bundles / games a bundle | 10 / 2-10, at 10-90% off |
| A pick's blurb / a write-up | 200 / 4,000 characters, 6 pictures |
| An event | 1-14 days |
| Design versions kept | 50 |

## Pages

| What | Limit |
| --- | --- |
| Files | 5,000 |
| A file | 512 MB |
| A path | 200 characters |
| Versions kept | 50 |

## Scripts

| What | Limit |
| --- | --- |
| A run | 300 ms, 250,000 statements, 24 MB (double in a private group; ten times on its owner's PC) |
| Posts a run | 3 |
| DMs | 3 a run, 60 an hour, 5 a member a day |
| Buttons / menu options / form fields | 10 / 25 / 5 |
| Command options | 10 |
| Data keys / a key / a value | 50,000 / 120 characters / 16 KB |
| Member data | 50 keys of 4 KB a member |
| Quests | 20 |
| Library scripts used | 5 |
| Outgoing webhooks | 3 a run, 16 KB |
| Soundboard from scripts | one every 2 s |
| AI helper keys | 5 a community, 180 days each |
| Failing runs before a script is switched off | 20 in a row |

When GC's server is busy, a group running far more than the others waits its turn a little (scripts, live rooms,
`GC.fetch`); the others aren't slowed by it.

## Widgets

| What | Limit |
| --- | --- |
| Height | 60-2,400 px |
| `GC.fetch` | text up to 256 KB |
| `GC.show` | 200 pieces, 4 deep |
| `GC.room` values | 16 KB of JSON |
| Bursts / sounds | 12 a minute / 4 a second, cut at 5.2 s |
| Jump scares | one every 10 s, 0.3-3 s long |

## Uploads

| What | Limit |
| --- | --- |
| A picture | 4 MB |
| A font | 1 MB |
| A track | 8 MB |
| An upload link | 15 minutes, one file |

## Developers

| What | Limit |
| --- | --- |
| Games in review | one at a time (new developers) |
| Games sent | 3 each 30 days |
| Coming soon before release | 2 weeks |
| Builds kept | 10 |
| Build tokens | 10 a game |
| A cut rise | 30 days' notice |

---

<!-- https://gamescommunities.com/docs/reference/gc-cli.html -->
# gc-cli

`gc-cli` is Games Communities' command line, for developers and community officers. (It isn't called `gc`: in
PowerShell that's `Get-Content`.)

The login is saved in Games Communities' data folder, where the app finds it too. `--api=https://…` picks the service
until a login is saved; after that the saved one's service is used.

## Account

| Command | What it does |
| --- | --- |
| `gc-cli signup [--invite=CODE]` | Makes an account. |
| `gc-cli login` / `logout` / `whoami` | Logs in or out; says who you are. |
| `gc-cli 2fa [on\|off\|codes]` | Two-factor sign-in, and new backup codes. |

## Games

| Command | What it does |
| --- | --- |
| `gc-cli publish-native <folder> [--exe=Game.exe] [--title=...] [--note=...] [--set-live=<branch>]` | Uploads a build (only what changed). See [Publishing builds](../developers/publishing.md). |
| `gc-cli builds <ident>` | The game's builds. |
| `gc-cli set-live <ident> <build> [--branch=<branch>]` | Sets a build live (asks your two-factor code). |
| `gc-cli branch <ident> <name> [--description=...] [--password=...] [--delete]` | Makes, changes or deletes a branch. |
| `gc-cli games [search]` | Games on the store. |
| `gc-cli store-page <ident> <folder>` | Sends a store page from a folder. |
| `gc-cli news <ident> <title> [--body=...\|--body-file=...]` | Posts news. |
| `gc-cli game-status "<text>"` | Acts as a game on the app's game-status pipe, to try it. |

## Communities

| Command | What it does |
| --- | --- |
| `gc-cli dev <folder\|file> --community=<id> [--init] [--push] [--event=...] [--text=...] [--as=cat-1]` | Pulls, tries and pushes scripts. See [The script tools](../scripts/tools.md#gc-cli-dev). |
| `gc-cli page pull <folder> --community=<id>` | Downloads the page's draft. |
| `gc-cli page push <folder> --community=<id> [--publish]` | Sends a folder as the page's draft (and publishes it). |
| `gc-cli host` | Runs your private groups' scripts on this machine till Ctrl+C. See [Take it with you](../communities/take-it-with-you.md). |

## Admins

| Command | What it does |
| --- | --- |
| `gc-cli invites [count] [--note=...]` | Lists or makes invite codes. |
| `gc-cli publish-app <folder> [--sign=<key file>] [--rollout=<percent>] [--expires=<days>]` | Publishes an app release. |
| `gc-cli app-releases` | The app's releases. |
| `gc-cli app-rollout <version> <percent>` / `--halt` / `--resume` | Who gets a release. |
| `gc-cli release-key <key file> [--encrypt\|--no-passphrase]` | Makes the key that signs app releases. |

---

<!-- https://gamescommunities.com/docs/reference/addresses.html -->
# Addresses

## The website

| Address | What |
| --- | --- |
| `gamescommunities.com` | The store. |
| `gamescommunities.com/c/<id or address>` | A community's page; visiting it makes you a supporter if you support no store yet. |
| `gamescommunities.com/install` | The Windows app's installer. |
| `gamescommunities.com/docs/` | This manual. |
| `gamescommunities.com/docs/llms.txt` | The manual's pages for AI helpers, as Markdown links. |
| `gamescommunities.com/docs/llms-full.txt` | The whole manual in one Markdown file. |
| `gamescommunities.com/docs/<page>.md` | One page as Markdown (its `.html` address ending in `.md`). |
| `gamescommunities.com/docs/games-communities-docs.md` | The whole manual as one Markdown file to download. |
| `gamescommunities.com/v1/mcp` | The MCP server for AI helpers (a community's key as a Bearer token). |

## Pages of the app

The app and the website share their pages, by the part after `#`:

| Address | Page |
| --- | --- |
| `#/cart`, `#/purchases` | Cart, purchase history. |
| `#/library`, `#/downloads`, `#/collections`, `#/screenshots` | Your games, downloads, collections, screenshots. |
| `#/friends`, `#/dms`, `#/profile` | Friends, direct messages, your profile. |
| `#/home`, `#/shops`, `#/nights` | Your communities, stores, events. |
| `#/c/<id>`, `#/c/<id>/sourcing` | A community; its Sourcing. |
| `#/boards`, `#/b/<board>`, `#/b/<board>/<post>` | Boards' front page, a board, a post. |
| `#/lib` | The scripts library. |
| `#/family`, `#/settings` | Family, Settings. |
| `#/dev`, `#/developer-apps` | Games Communities for developers; developer apps (bots and integrations). |
| `#/activate` | Redeem a product key. |
| `#/app/<game>` | A game's page. |
| `#/legal/terms`, `#/legal/privacy`, `#/legal/rules`, `#/legal/guide`, `#/legal/help` | Terms, privacy, rules, the guide, help. |
| `#/report` | Report something. |
