tik.yaml
The file that describes your tik as a published thing: title, category, tags, visibility, permissions and options.
tik.yaml sits at the root of the tik and never ships with it: it describes the tik as a published thing, while package.json travels with the source. The CLI writes the fields it owns (id, category, grants) into the file without losing your comments, so use codetik set and codetik permissions rather than editing those by hand.
id: 0093acd2-2e05-4cef-b702-ca756931e4a9 # written by the CLI; never change ittitle: Snakedescription: The classic snake. Swipe to steer, and it gets faster with every bite.category: - games - arcadetags: - snake - arcadevisibility: publicpermissions: {}options: {}Fields
| Field | What it is |
|---|---|
id | The tik's id on Codetik. Written by new, dev or the first publish. |
title | Required. Up to 40 characters. |
description | Up to 300 characters. Generated at the first release when left out. |
category | A slug, or a [parent, child] pair. Required to go live. |
tags | Up to 6, lowercase and hyphenated. Generated when left out. |
visibility | What publish --live releases at: public, unlisted or private. Default public. |
permissions | What the tik may reach. See Permissions. |
options | Backend switch, fork and favourite toggles, app colours. See below. |
summary | The brief someone forking the tik starts from. Generated when left out. |
suggestions | Up to 3 fork ideas. Generated when left out. |
suggestionsRegen | false keeps your summary and suggestions as written, with up to 40 suggestions. |
slides | Per-slide options for a multi-screen tik. |
model | A note on which model wrote the tik. Not sent. |
Anything else is refused, so a typo fails early. There is no author: the API key decides whose account the tik lands in.
category and tags
category must exist; codetik manifest lists the tree. A pair names the parent too, and the parent is checked against the real tree:
category: arcade # the child slugcategory: [games, arcade] # the same, with its parentA release needs a category, from tik.yaml or one the tik already has. The CLI asks at the first publish --live, or pass --category. Unknown tags are created, but prefer the ones codetik manifest lists.
visibility
| Value | Who sees a released tik |
|---|---|
public | Everyone, in the feed. Cannot be republished from the CLI afterwards. |
unlisted | On your profile and by link, never in the feed |
private | Only you |
The file never chooses a draft: before the first release, a draft is what codetik publish pushes without --live.
summary and suggestions
The fork brief, and the chips offered to someone forking your tik. Leave them out and Codetik writes them from your source at the first release. Write them yourself when you know the code better than a single read would.
summary: |- ### IDEA What the tik is and how it behaves. ### TECH Stack, loop, storage. ### STYLE The look worth keeping. ### LAYOUT What each file owns, where the tuning knobs are. ### GOTCHAS What would cause a wrong edit.suggestions: - title: Wrap-around walls subtitle: Exit one edge, appear on the other instructions: Change the collision rules so the snake wraps around the edges.summary has those five ### sections, in that order. A suggestion has a title (up to 40 characters), a subtitle (up to 60) and instructions.
options
| Option | What it does |
|---|---|
spacetimedb.enabled | The backend switch. Set by codetik backend. |
disableForks | true hides the fork action. |
disableFavourites | true hides the save action. |
publicUsers | true lets every viewer call tik.users.search, not only you. Needs auth. |
appStyleOverwrite | Recolours the app's bars around the tik. |
appStyleOverwrite takes bottomNavbar, infoBar and statusBar, each with colors: auto or a background and foreground pair. Pairs below a 3:1 contrast are refused.
options: appStyleOverwrite: bottomNavbar: colors: background: '#0b1026' foreground: '#e8eaf2'slides
A multi-screen tik declares its screens in tik.config.json, which ships with the source. slides in tik.yaml holds one entry per screen, to recolour the app's bars per slide:
slides: - {} - options: appStyleOverwrite: infoBar: colors: background: '#ffffff' foreground: '#111111'The list must match the slide count in tik.config.json.