# Publish a Kandins wallpaper

Use this kit when a creator wants to turn their own artwork into a Studio listing. The single upload is a UTF-8 JSON file ending in `.kandinswall` with `format=kandins-wallpaper`, `version=1` and `edition=submission`. The same validator runs in the kit and on Studio. Deliver the package to the creator, or submit it when they authorize publication.

## Prepare the artwork

1. Save a self-contained UTF-8 HTML scene, a JS/TS browser entry, or a video locally. For Git projects, check out the intended commit. Include redistribution rights and notices for all code, art, audio and libraries. Set a price only with the creator's instructions.
2. Create a local recipe using `golden-line.project.json` as the template. Replace the title, public creator name, description, rights, scene path and prices. Use integer KRW amounts. Zero means free. A null offline price disables the optional offline edition. Remove `source` and `notice_files` if there is no Git source. If provided, the source URL names a GitHub repository and the SHA names the exact revision. Keep content self-contained. Browser fetches from remote servers are unavailable during offline playback.
3. Provide a meaningful screenshot in `poster` and a short recording from the actual scene in `preview`. Both paths are relative to the recipe. Omit the poster to extract a frame from the footage. Omit preview for video works to extract the clip from the video. For HTML with no recording, the converter uses a fresh, network-isolated Chromium context to capture the actual scene. Set `warmup_seconds` between 0 and 120 if it needs startup time. Inspect the result to catch loading screens, black frames and static clips.
4. Use a trusted local copy of Node.js 22.18+ and FFmpeg with libx264. JS/TS entries require a project-local esbuild installation. Automatic HTML captures additionally require project-local Playwright and its Chromium browser. Trusted multi-file projects may use their normal build to produce a self-contained HTML entry. The converter consumes the finished entry. Do not run downloaded project hooks with credentials present.

## Convert, check, upload

Extract the kit in one directory. Keep `convert.mjs` and `submission.ts` adjacent. Run from your own project:

```sh
node path/to/kit/convert.mjs build project.json release.kandinswall
node path/to/kit/convert.mjs check release.kandinswall
```

The output path must be new. A successful check verifies the required public metadata, SHA-256, byte sizes, JPEG dimensions and MP4 track metadata. The public poster is a 640 × 360 JPEG (up to 1 MiB). Its separate 640 × 360 H.264 MP4 preview has one silent video track, lasts 3–6 seconds, runs at up to 30 fps and fits 3 MiB. The converter generates four seconds at 24 fps. The complete paid scene stays in the scene field. HTML can use up to 2 MiB and H.264 video up to 16 MiB.

Run a local playback check, inspect the public cover and animated preview, and check rights, the pinned source and prices. Sign in to the [creator studio](https://studio.kandins.com/wallpapers/creators) and submit the validated package. Check the actual dashboard state before reporting publication. Runtime and offline packages use an edition issued by Studio after acceptance. Keep the locally produced submission for future versions.

## Files

- `submission.schema.json` defines the structural contract. Binary and integrity checks are in `submission.ts`.
- `golden-line.project.json` is a local conversion recipe, not an upload.
- `golden-line.submission.kandinswall` is a valid full package with the actual MIT-licensed Golden Line scene, credits and distinct public preview.
- To rebuild the example, place the upstream prebuilt index.html under the recipe's scene filename. Get the Studio cover, recorded footage and both license files from the links on the [publishing guide](https://studio.kandins.com/wallpapers/publish-guide). The example's source revision and credits belong to Prasenjit (StarKnightt).
