# games.json

## Adding Games

Run: `node scripts/add-game.js`

Follow the instructions in the Terminal.

### Formatting of games.json

At the top of the file, metadata is stored.

```json
"generatedAt": "2026-03-06T14:54:55.192Z",
"count": 151,
"games": {...}
```

`generatedAt` stores the last time the file was edited by the script.

`count` stores the total number of games.

`games` is an array of all current games.

Games are stored as follows:

```json
{
  "title": "Wordle",
  "url": "/games/wordle.html",
  "img": "https://i.ibb.co/SXZymjyS/images.png",
  "alt": "Wordle"
},
```

`title`  is the name of the game.

`url`  points to where the game is

`img`  points to the icon location.

`alt`  is alt text to be attached.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://space-cat-games.gitbook.io/space-cat-games-docs/mod/games-json.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
