# Publishing on the SolidCraft Workshop This page is the reference for listing a model or a plugin on https://workshop.solidcraft.io. It is written for people and for coding agents: every rule the Workshop checks is here, with the exact error it gives. The same text is at [https://workshop.solidcraft.io/docs/publishing.md](https://workshop.solidcraft.io/docs/publishing.md) (plain Markdown) and in [https://workshop.solidcraft.io/llms.txt](https://workshop.solidcraft.io/llms.txt). The spec and an issue tracker are also on GitHub: [tangency-labs/workshop-docs](https://github.com/tangency-labs/workshop-docs). ## Two ways to publish - **Upload a model** on [https://workshop.solidcraft.io/publish](https://workshop.solidcraft.io/publish): a SolidCraft design (`.sc`), optional previews (.step, .stp, .3mf, .stl) and pictures (.png, .jpg, .jpeg, .gif, .webp). No repository needed. Plugins cannot be uploaded. - **List a GitHub repository** (models and plugins): put `solidcraft-workshop.json` at the root of the repository's **default branch**, tag a release, and enter `owner/name` (or the github.com link) under **List from GitHub** on [https://workshop.solidcraft.io/publish](https://workshop.solidcraft.io/publish). The repository must be public and not archived. ## `solidcraft-workshop.json` ```json { "schema": 1, "id": "gears", "name": "Gears", "kind": "plugin", "version": "1.2.0", "licence": "MIT", "min_app_version": "0.50.0", "summary": "Spur and helical gear generator.", "description": "README.md", "category": "generators", "tags": ["gears", "mechanisms"], "permissions": ["commands:sketch", "files:read"], "files": [ { "asset": "gears-1.2.0.zip", "role": "package" }, { "path": "docs/cover.png", "role": "image" } ] } ``` | Field | Required | Rule | |---|---|---| | `schema` | yes | `1` | | `id` | yes | lowercase letters, digits and dashes, 1 to 64 characters. The item's stable id. Cannot change once listed. | | `name` | yes | 2 to 80 characters. | | `kind` | yes | `model` or `plugin`. Cannot change once listed. | | `version` | yes | `major.minor.patch` (no `-rc` suffix). A tag `v<version>` or `<version>` must exist. | | `licence` | yes | an SPDX id: `MIT`, `Apache-2.0`, `BSD-2-Clause`, `BSD-3-Clause`, `ISC`, `Zlib`, `Unlicense`, `MPL-2.0`, `GPL-3.0`, or `CC0-1.0`, `CC-BY-4.0`, `CC-BY-SA-4.0`, `CC-BY-NC-4.0`, `CC-BY-NC-SA-4.0`, `CC-BY-ND-4.0`, `CC-BY-NC-ND-4.0`, `SolidCraft-Personal-Use`. Must match the repository's licence file when GitHub detects one. | | `min_app_version` | yes | the oldest SolidCraft it runs in, `major.minor.patch`. | | `summary` | yes | one line, 4 to 160 characters. Shown on cards. | | `description` | no | path of a Markdown file shown as the long description. Default `README.md`. Up to 200 KB. | | `category` | no | `brackets`, `enclosures`, `tools`, `organizers`, `mechanical`, `home`, `hobby`, `electronics`, `generators`, `parts`, `importers`, `productivity`, `other`. Default `other`. | | `tags` | no | up to 10; each lowercase letters, digits and dashes, up to 30 characters. | | `permissions` | plugins | `files:read`, `files:write`, `input_folder`, `clock`, `settings` or `commands:<group>`. **No network permission exists**: any permission that names the network is refused. Models take none. | | `files` | yes | 1 to 30 entries; see below. | Unknown fields are refused (`Unrecognized key`). There is no `cover`, `icon`, `image` or `screenshots` field: pictures are entries in `files` with `"role": "image"`. ### `files` Each entry has exactly one of: - `"path"`: a file in the repository, relative to its root (no leading `/`, no `..`; case-sensitive). Read **at the release tag** when a new version is listed. - `"asset"`: the file name of an asset attached to the GitHub release for the tag. and a `"role"`: | Role | Extensions | Rule | |---|---|---| | `package` | .zip | plugins: exactly one. Models: none. | | `design` | .sc | models: at least one. | | `preview` | .step, .stp, .3mf, .stl | optional 3D previews shown in the viewer. | | `image` | .png, .jpg, .jpeg, .gif, .webp | pictures. The first one is the cover on cards and link previews. | Every file's content must match its extension (a `.png` must really be a PNG). Release assets must match the sha256 digest GitHub lists for them. At most 20 files per version. ## Pictures (cover and gallery) - Formats: .png, .jpg, .jpeg, .gif, .webp. **SVG is not taken**; export a PNG. Animated GIF and WebP play on the item page. - Size: up to 10 MB per picture. 1200 x 900 (4:3) or larger looks best; cards crop to 4:3. - The **first** `image` entry is the cover. The others follow in the gallery in the order listed. - Where it is read from: a `path` picture is read at the release tag when a version is listed, and from the **default branch** (falling back to the tag) when you refresh the version that is already listed (see [Refreshing a listing](#refreshing-a-listing)). An `asset` picture is read from the release. - Without a picture: a model uses the thumbnail stored inside its `.sc` design, or a 3D render of its preview. A plugin has no other source, so **a plugin without an `image` entry has no cover**. - **Uploaded cover** (GitHub listings): on the item page, the author can **Upload cover** to set a cover on the site instead of in the repository (.png, .jpg, .jpeg, .gif, .webp, up to 10 MB, sent as a normal file upload). It wins over the manifest's pictures, stays through refreshes and new versions, and is shown first in the gallery. It belongs to the listing, not to a version, so it is not in the signed version manifests. **Remove uploaded cover** brings the manifest's first picture back. - In the description, a Markdown picture (``, or a github.com / raw.githubusercontent.com link into the same repository) shows when its file name matches one of the item's listed pictures. Pictures from other sites are not shown: the page only loads its own files. ## Who can list a repository Its owner (by GitHub login), anyone GitHub reports with **admin** rights on it (for an organization's repository: its admins, or an outside collaborator made admin), or a Workshop admin, signed in with GitHub. Write or maintain rights are not enough. The listing then belongs to the person who listed it; organization admins can also refresh it. ## Refreshing a listing On the item page, **Refresh from GitHub** (author, repository admins, Workshop admins) reads `solidcraft-workshop.json` on the default branch again: - **`version` is newer than the listed one** and tagged: it is listed as a new version (a GitHub release does this by itself, see [Auto-refresh](#auto-refresh)). Every file is read at the new tag, and the page (name, summary, description, category, tags, licence, pictures) is updated. - **`version` is the one already listed**: no new version is made. The page is refreshed from the default branch: name, summary, description, category, tags and pictures. The files that install (package, design, previews), the permissions, `min_app_version` and the licence stay as listed, and the result names any of those you changed: they need a new version and tag. - **`version` is older than the listed one**: refused. So, to add or change a cover without a release: commit the picture and its `files` entry to the default branch, then press **Refresh from GitHub**. ### Auto-refresh You do not have to press Refresh for a new release. About every 30 minutes the Workshop asks GitHub for each listed repository's **latest release** (drafts and prereleases are never "latest"). When its tag is `v<version>` or `<version>` with a `major.minor.patch` newer than the listed version, that version is listed exactly as Refresh from GitHub would, on your behalf: - `solidcraft-workshop.json` on the default branch must already say that `version` (bump it before you tag); - every check above still applies, and files are read at the tag; - if you have not agreed to the current Terms, it waits for you to press Refresh. If a release cannot be listed, the item page shows you (the author) why, and the release is not tried again until the next release or a manual Refresh. Changes that are not a release (a new picture on the default branch, a new summary) still need **Refresh from GitHub**. Every change is in the signed app index within a minute. ## Automatic checks Shown on the item page under each version: 1. `solidcraft-workshop.json` parses and every field follows the rules above; 2. the licence is allowed and matches the repository; 3. the tag exists; 4. every file's content matches its type and is within the size limits (100 MB per file, 10 MB per picture); 5. release assets match the sha256 GitHub lists; 6. plugins: the permissions are known and none asks for the network. ## Common errors | Message (start) | Cause | Fix | |---|---|---| | `<repo> has no solidcraft-workshop.json on <branch>` | the manifest is not at the root of the default branch | commit it there (exact file name) | | `solidcraft-workshop.json has problems: files.N: ...` | a field breaks a rule; the message names the field | fix that field | | `Unrecognized key: "cover"` (or `icon`, `images`...) | pictures are not a top-level field | add `{ "path": "...", "role": "image" }` to `files` | | `"docs/logo.svg": a picture must be .png, ...` | a picture with another extension (SVG, BMP...) | export PNG, JPEG, GIF or WebP | | `has no tag v1.2.0 (or 1.2.0)` | the version is not tagged | push the tag, then list | | `The picture "docs/x.png" is not in <repo> at the tag v1.2.0` | the file was committed after the tag, or the path is wrong | commit it before tagging, or fix the path (case matters) | | `... is not an asset of the GitHub release for v1.2.0` | `asset` names a file the release does not have | attach it to the release, or use `path` | | `x.png is not a PNG image` | the content does not match the extension | save it in the format its extension says | | `The picture x.png is over the 10 MB limit` | picture too large | make it smaller | | `Version 1.0.0 is already listed and 1.1.0 is newer` | the manifest's version is older than the listed one | set a new version and tag it | | `says MIT but the repository's licence file is Apache-2.0` | licence mismatch | make them agree | | `Only an admin of <repo> ... can list this repository` | not the owner or a repository admin | ask an admin to list it | | `GitHub didn't show the Workshop your rights` | the GitHub sign-in token expired | sign out, sign in with GitHub, retry | The **Check** button on the Publish page runs every check without listing anything and shows the problems. ## For agents - The source of the Workshop is not public. This page, [https://workshop.solidcraft.io/llms.txt](https://workshop.solidcraft.io/llms.txt), the public docs repository [tangency-labs/workshop-docs](https://github.com/tangency-labs/workshop-docs) (see its AGENTS.md) and the public API are the reference. - Read an item: `GET https://workshop.solidcraft.io/api/items/at/<kind>/<username>/<name>` (JSON: `cover`, `versions[].files[]` with each file's `role`, `checks`). A listing whose `cover` is `null` has no picture. - Limits in force: `GET https://workshop.solidcraft.io/api/config` (`limits`). - The signed app index: `GET https://workshop.solidcraft.io/api/index.json`. - Listing and refreshing need a signed-in person; there is no token API for them. ## Reporting a problem - Open an issue: https://github.com/tangency-labs/workshop-docs/issues (pick **Listing problem**). Give the item's address, the repository and tag, and the exact message the site showed. - Or ask in the SolidCraft Discord: https://discord.gg/FtU4NQNVDH. - Bugs in SolidCraft itself (installing or running a plugin): https://tickets.solidcraft.io. - Content that breaks the rules: the **Report** button on the item page.