# Package page sections

Each package version has the same eight sections. Open **Edit sections** on its
package page, or fill in `package-docs.json` locally. Use Markdown in each field.
All fields are required. State when a section does not apply.

| Field | Include |
| --- | --- |
| `usage` | Inputs and a working code example in a fenced code block |
| `composition` | How parts connect, with imports and shared services |
| `settings` | Settings, defaults, ranges, and preview controls |
| `requirements` | Host, renderer, capabilities, and known limits |
| `lifecycle` | API, loading, updates, resource ownership, and disposal |
| `assets` | Asset files, loading, and advanced exports |
| `provenance` | Original creator, source changes, and asset credits |
| `verification` | Checks, evidence links, and unverified behavior |

The JSON object also needs `schemaVersion: 1`. Each text field allows up to
10,000 characters. The server rejects unknown fields and incomplete pages.
This checks page structure. It does not prove the claims or accept a conversion.

## Author with the CLI

CLI 0.9.0 creates the file when you create or clone a package. For an older project:

```sh
threetopia docs init
# Fill in package-docs.json.
threetopia docs check
threetopia push
```

`push` uploads the page after it validates the package. To change only the page:

```sh
threetopia docs pull --force
# Edit package-docs.json.
threetopia docs check
threetopia docs push
```

`pull` refuses to overwrite a local file. Use `--force` only to replace it.
If another editor saved first, `push` stops. Keep your local edits, pull the
current page, merge the text, and push again. Commit `package-docs.json`.
Do not add it to the immutable manifest file list. Ignore
`.threetopia-docs-state.json`; it tracks the last page revision you read or saved.

The server requires a complete page before publication or world acceptance.
Existing published versions stay available. Their original README remains
downloadable from **Source** until their sections are filled in.

## One source for each fact

The platform already shows the title, description, version, install command,
preview, dependencies, and changelog. Do not repeat them as text sections.
Dependencies come only from the selected version's manifest. Source URL, source
revision, and license also come from that manifest.

A README can stay in the package for local use. It is not the package page.
Move install requirements to **Requirements**, use examples to **Usage**, and
component connections to **Composition**. Split quality checks from license
credits. Put settings beside their defaults and preview controls.

Page changes create numbered revisions for one exact package version. They do
not change package files, accepted runtime hashes, or existing installations.
The API can read any saved page revision. See [API reference](/api).

## Card image

Open a package version that you own. Use **Card image** to upload an image from
its preview. Check the crop, then select **Save image**. You can use PNG, JPEG,
or WebP files up to 10 MB. The site makes a 1000 × 625 WebP image.

The image appears in All packages, My packages, and creator profiles. Each
version has its own image. Draft images stay private. Images are page content;
they do not change the package files or prove scene compatibility.
