# Files & Data Layout

> What Glider writes to disk and to the database.

Glider documentation · Reference · Web page: https://cgglider.com/docs/data-layout/

Sections of this page: [On disk](https://cgglider.com/docs/data-layout.md) · [Database](https://cgglider.com/docs/data-layout/database.md) · [Page schema](https://cgglider.com/docs/data-layout/schema.md)

The data/ directory.

| Path | Holds |
| --- | --- |
| data/pages/<id>.json | The saved page — its whole editor state. |
| data/pages/<id>.files.json | That page's file store. |
| data/pages/<id>.secrets.json | Its secrets, as plain values. |
| data/pages/<id>.runtime.json | Its desired runtime state, restored when the server boots. |
| data/streamdeck.json | The machine-level Stream Deck profile. |
| public/<id>/ | Files uploaded to the page, served at /<id>/… |

> **Desktop app:** The installed app keeps data/ and the uploads folder under its app-data folder instead, so updates never touch them: ~/Library/Application Support/Glider/workspace on macOS, %APPDATA%\Glider\workspace on Windows.

> **Two rules:** Never hand-edit these while the server runs — the app owns them. And treat a copy of data/ as sensitive: the secrets files hold plain values.
